solve code in matlab? [closed]

1

Could anyone help me with this problem?

I need to multiply an expression by 'x' and get the result.

The expression is: A1 - A1 * x + 2 * A2 * x - A2 x ^ 2 + 3 * A3 * x ^ 2 - A3 * x ^ 3 + 4 * A4 * 4 + 5 * A5 * x ^ 4 - A5 * x ^ 5 - 1

I need to multiply it by 'x'. How to do?

    
asked by anonymous 06.11.2017 / 22:02

1 answer

0

Initially you have an error in your expression A2 x^2 , considering it as A2*x^2 , let's go to the problem.

Matlab has a very simple syntax: If you have a and want to multiply a times x , just use

a*x 

If a is something more complex than just a simple variable or number, you may want to use parentheses to do the multiplication correctly, thus:

(a)*x
    
06.11.2017 / 23:28