Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Symbolic Math: Combining Equations
Replies: 2   Last Post: Feb 15, 2013 2:29 AM

 Messages: [ Previous | Next ]
 bartekltg Posts: 55 Registered: 12/11/12
Re: Symbolic Math: Combining Equations
Posted: Dec 14, 2012 5:05 PM

W dniu 2012-12-14 21:53, cypher pisze:
> How do I combine equations symbolically? For example:
>
> f1 = sym('ax +b')

> f2 = sym('cx+d')
> f3 = f1*f2
> I'm looking for an output like f3 = 'acx^2+bcx+adx+bc'

f4 = expand(f3)
f5 = collect(f3,'x')

Maybe you should read "simplifications and substitutions",
there is more functions provided to manipulate symbolic expression.

> I am working on an extremely large set of equations and unfortunately
> they don't fit on paper.
> Thanks for the help!

If equations are only polynomial, check:
polyval, conv, polyfit, roots...

bartekltg

Date Subject Author
12/14/12 cypher
12/14/12 bartekltg
2/15/13 Christopher Creutzig