Message Boards Message Boards

0
|
5215 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Simplify simple expression

Posted 9 years ago

Hello

I've a problem with this semplification .. I have this expression:

6 + c (3 + c)

as a result, I want the expression:

6 + 3c + c^2

What can I do ?

Thanks

Galasi

POSTED BY: Massimo Galasi
4 Replies
Posted 9 years ago

Sorry .. I solved this way:

String total = ml.evaluateToInputForm("Expand[6 + c (3 + c)]", 0);

Thanks

G

POSTED BY: Massimo Galasi
Posted 9 years ago

I get the output:

total = [           2
6 + 3 c + c]

after executing with jlink:

String total = ml.evaluateToOutputForm("Expand[6 + c (3 + c)]", 0);

System.out.println("total = ["+total+"]");

I think there is a problem interpreting the exponential in the correct way..

Thanks again

Galasi

POSTED BY: Massimo Galasi
Posted 9 years ago

It Works! :-)

Very Thanks

POSTED BY: Massimo Galasi
Posted 9 years ago

Hello Galasi,

You can expand your expression using

Expand[6 + c (3 + c)]

Cheers, Xavier

POSTED BY: Xavier Roy
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract