Group Abstract Group Abstract

Message Boards Message Boards

0
|
11.3K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Text output from calculations and text

Posted 11 years ago
Attachments:
2 Replies

Thanks for the response, that did seem to fix the issue. However, the goal was to no just enter the answer, but allow mathematica to compute an expression then output it in the cell with text. Not quite sure why Row[] seems to solve the issue.

Either way thanks!

Try the following simpler code:

In[95]:= function = Integrate[b x^2, x];
out = Row[{"The answer is: ", TraditionalForm[function]}];
TextCell[out, CellFrame -> True]

Out[97]= TextCell[
Row[{"The answer is: ", 
TraditionalForm[Rational[1, 3] b x^3]}], CellFrame -> True]
POSTED BY: S M Blinder
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard