symbolic math typesetting

  • Follow


Hello,

I just started using the MuPad notebook interface for matlab.  I have a question about the formatting of the equations after they are entered.  For example, if I enter the equation

p = A*(D/2)^2*(S/4)

it prints p=ASD^2/16 (in a nice typeset way)

is there a way to keep it from simplifying the equation, or a way to get the nice typesetting without reducing the formula?  Basically, I would like to have in the notebook a nice, typeset version of my original formula for reference.

thanks,
Melissa
0
Reply Melissa 8/26/2010 6:53:21 PM

On 10-08-26 01:53 PM, Melissa wrote:
> I just started using the MuPad notebook interface for matlab. I have a
> question about the formatting of the equations after they are entered.
> For example, if I enter the equation

> p = A*(D/2)^2*(S/4)

> it prints p=ASD^2/16 (in a nice typeset way)

> is there a way to keep it from simplifying the equation, or a way to get
> the nice typesetting without reducing the formula? Basically, I would
> like to have in the notebook a nice, typeset version of my original
> formula for reference.

No, there is no way to do that. MuPad automatically simplifies some 
expressions, and automatically moves constant multipliers and dividers.

You might be able to work around the issue by using hold() or freeze(),
http://www.mathworks.com/access/helpdesk/help/toolbox/mupad/stdlib/freeze.html
but it can be messy to prevent constants from being merged.
0
Reply roberson (2852) 8/26/2010 7:00:01 PM


On Aug 26, 3:00=A0pm, Walter Roberson <rober...@hushmail.com> wrote:
> On 10-08-26 01:53 PM, Melissa wrote:
>
> > I just started using the MuPad notebook interface for matlab. I have a
> > question about the formatting of the equations after they are entered.
> > For example, if I enter the equation
> > p =3D A*(D/2)^2*(S/4)
> > it prints p=3DASD^2/16 (in a nice typeset way)
> > is there a way to keep it from simplifying the equation, or a way to ge=
t
> > the nice typesetting without reducing the formula? Basically, I would
> > like to have in the notebook a nice, typeset version of my original
> > formula for reference.
>
> No, there is no way to do that. MuPad automatically simplifies some
> expressions, and automatically moves constant multipliers and dividers.
>
> You might be able to work around the issue by using hold() or freeze(),ht=
tp://www.mathworks.com/access/helpdesk/help/toolbox/mupad/stdlib/fr...
> but it can be messy to prevent constants from being merged.

hmmm....  I was afraid of that.  I will look into those functions.  I
was just playing around with it and found that I can cut and paste
images into a notebook.  If nothing else,  I suppose I could just add
a reference equation as an image in the notebook.

thanks for the quick reply!
melissa
0
Reply mln 8/26/2010 7:12:50 PM

2 Replies
243 Views

(page loaded in 0.048 seconds)

Similiar Articles:







7/16/2012 12:19:55 AM


Reply: