Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
simplify eqns with some symbols

Subject: simplify eqns with some symbols

From: Yi

Date: 7 Mar, 2008 22:58:02

Message: 1 of 2

If we have such a long equation:

277/137*pi*a*b^2+5555/5553*a^2*b

how I can use matlab to transfer them into decimal fraction?

I am really crazy to get so many fraction like
277/137*pi,5555/5553 etc.

format long doesn't work when our formula with some
simbols.

Who can help me? Thanks

Subject: simplify eqns with some symbols

From: us

Date: 7 Mar, 2008 23:19:02

Message: 2 of 2

"Yi ":
<SNIP does not read CSSM regularly...

> 277/137*pi*a*b^2+5555/5553*a^2*b
> how I can use matlab to transfer them into decimal
fraction...

as seen in another recent thread

     s=sym('277/137*pi*a*b^2+5555/5553*a^2*b');
     f=vpa(s,5)
% f = 6.3520*a*b^2+1.0004*a^2*b

us

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us