Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'help a beginner ;-)' topicStudent Support Forum > General > Archives > "help a beginner ;-)"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
jf
09/26/12 11:52am

There is a function for this, named, surprisingly, FullForm. You will need to wrap the expression in HoldForm to keep Mathematica from simplifying the expression.

In[1]:= FullForm[ -3 * (8 + 9 / 10) * (3 * 2 - 1) ]

Out[1]//FullForm= Rational[-267, 2]

In[2]:= FullForm[ HoldForm[ -3 * (8 + 9 / 10) * (3 * 2 - 1) ]]

Out[2]//FullForm=
HoldForm[Times[-3, Plus[8, Times[9, Power[10, -1]]], Plus[Times[3, 2], -1]]]

or Times[-3, Plus[8, Times[9, Power[10, -1]]], Plus[Times[3, 2], -1]]





URL: ,

Subject (listing for 'help a beginner ;-)')
Author Date Posted
help a beginner ;-) Lolotte 09/26/12 09:49am
Re: help a beginner ;-) jf 09/26/12 11:52am
< Previous CommentHelp | Reply To Comment | Reply To Topic