Skip to main content
1-Visitor
March 17, 2013
Question

Lengthy symbolic equations

  • March 17, 2013
  • 3 replies
  • 2432 views

I have to evaluate two fairly messy equations,

in terms of several radii and pressures, which I only know symbolically. I have solved these by hand and, as expected, get my sigmas in terms of the radii and pressures. But the expressions are lengthy and I need to use them in other equations. Is there a way I can write expressions which maintain the symbolic placeholders for my varibles?

3 replies

1-Visitor
March 17, 2013

I tried to post the equations in the body of the first post, but here are the expressions I am using.

25-Diamond I
March 17, 2013

Stuart Daniel wrote:

I have to evaluate two fairly messy equations,

in terms of several radii and pressures, which I only know symbolically. I have solved these by hand and, as expected, get my sigmas in terms of the radii and pressures.

Why didn't you let Mathcad do the work?

But the expressions are lengthy and I need to use them in other equations. Is there a way I can write expressions which maintain the symbolic placeholders for my varibles?

Not sure but I think what you need is to make them functions of all variables. See if the attached would help.

problem2.png

1-Visitor
April 11, 2013

This was extremely helpful, thank you for the thorough response. Now I am wondering how I may be able to assign arbitrary variables into my functions (i.e. ri=R_0, 1.25R_0...)

25-Diamond I
April 11, 2013

Stuart Daniel wrote:

This was extremely helpful, thank you for the thorough response. Now I am wondering how I may be able to assign arbitrary variables into my functions (i.e. ri=R_0, 1.25R_0...)

Not really sure what the problem is.

Just define R_0:=2ohm and use it as parameter when calling sigmar(R_0,...)=

What results are you after?

1-Visitor
April 11, 2013

I am solving this entire problem symbolically. I know my radii only in terms of r_0. I am seeking the pressures P_1 and P_2, which will be in terms of P_0 (which I also only know symbolically).That is why I am wondering if there is a way to go from:

sigma_r(r, r1, r2, p1, p2)

to:

sigma_r(r, 1.25*r_0, 1.5*r_0, p1, p2).