cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Help rewriting an equation

Faris
2-Explorer

Help rewriting an equation

Hello everyone 

 

I'm very new to Mathcad and I'm trying to learn my way through it so excuse me if my question seems kinda obvious.

I've been trying to make Mathcad rewrite an equation for me.

FA_10099921_0-1635689002061.png

Here I want to rewrite the equation in terms of l but I can't figure out how, could someone help with that please?

19 REPLIES 19
VladimirN
24-Ruby II
(To:Faris)

Please attach your Mathcad Prime worksheet.

Faris
2-Explorer
(To:VladimirN)

I've attached it here.

VladimirN
24-Ruby II
(To:Faris)

Pic-1.png

 

Faris
2-Explorer
(To:VladimirN)

Thanks. But how can I rewrite the equation of f to make it l = the rest of the variables?

VladimirN
24-Ruby II
(To:Faris)

Pic-2.png

Faris
2-Explorer
(To:VladimirN)

Hi, thanks for your quick reply. I don't think that I made my question quite clear.

Refer to the photo attached.

I wanted to ask if Mathcad can rewrite the equations from 1 to 2 but without me rewriting it manually.

FA_10099921_0-1635690268772.png

 

 

Werner_E
25-Diamond I
(To:Faris)

Would this be of help?

Werner_E_0-1635696350387.png

 

 

Faris
2-Explorer
(To:Werner_E)

Yes, perfect thanks!

However for some reason it's not showing the same results you got and outputs the complex as well.

Faris_0-1635700558871.png

 

Werner_E
25-Diamond I
(To:Faris)

Which version of Prime are you using?

BTW, you should use clear.sym and not clear as otherwise you would clear the varaibles for numeric evaluation, too, which would make it senseless to define it in first place 😉

clear.sym makes the variables "unknowns" for the symbolic engine only and thats the reason we can still evaluate l numerically and see the result 9,845 cm.

 

My screenshot was done with Prime 6 using the new symbolic engine.

When I switch to the older symbolic engine (muPad, the one also in Prime 5 and below), I get the message of the result being too large to display.

So I can't duplicate what your screenshot  shows.

Anyway, in my case with muPad it helped to to state "assume,ALL>0" instead of "assume, ALL=real".

The result isn't that nice looking, though:

Werner_E_0-1635701636548.png

and its not getting significantly better using "simplify"

Werner_E_1-1635701680176.png

 

EDIT: As my version could not open the Lab7 worksheet you posted, I assume you are using Prime 7. I tried "assume,ALL>0" in Prime 6 with the new symbolic engine (the only one available in Prime 7) and got a strange error.

Werner_E_2-1635702757529.png

 

I assume that PTC had worked on the new symbolics and changed one thing or another and that being the reason, you still see all three solutions while I don't, even though I use the same engine, but in P6.

I can't try as I don't have P7 installed, but you can experiment with "=real" and/or ">0" either with "ALL" or using single variables, like "assume, l>0, f=real" etc.

Controlling the way symbolic results are presented has always been a challenge in Mathcad, and it doesn't seem to have changed to this day 😉

 

Faris
2-Explorer
(To:Werner_E)

7.0.0.0

@Werner_E 

 

Can you upload your worksheet?

Faris
2-Explorer
(To:VladimirN)

Sure thing.

Werner_E
25-Diamond I
(To:VladimirN)


@VladimirN wrote:

@Werner_E 

 

Can you upload your worksheet?


Sure! Here it is. Its Prime 6 using the new symbolic engine.

I edited my answer above as I realized that the OP was using P7 and added some comments.

My sheet is in P6 and while I used already the new symbolic engine there, things seem to have changed from P6 to P7.

Maybe ALL>0 works in P7 even though it doesn't in P6.

Taming the symbolic evaluation can be very tricky (and often enough impossible) and usually degenerates into trial & error attempts.

Maybe instead of "assume, ALL=real" using only "assume, l=real" does the job (at least P6 is happy with it).

Interestingly, in version 7.0 I have a different error with "ALL>0" 🤔.

Werner_E
25-Diamond I
(To:VladimirN)


@VladimirN wrote:

Interestingly, in version 7.0 I have a different error with "ALL>0" 🤔.


Too bad! So its looks like in P7 we cannot achieve the desired output as demanded by Faris?

I guess R&D is working just a lot on the symbolic engine as at the time being the old muPad still is superior in many cases. But there also are situations where the "new" engine performs better.  And when many changes were made, not everything is going better 😉 If R&D really is scanning the forum, as Stuart sayd, they will hopefully take notes.

Whish we could still have Maple under the hood as was the case in MC11 😞

Here is the result (in PDF file) that I got when I just opened the worksheet in Prime 7 version and completely recalculated it. When I change "All=real" to "l=real" I get the same result unchanged. If I assign "l>0", then I get an error - "The result of this symbolic operation is too long to display...".

 

Pic-3.png

 

Werner_E
25-Diamond I
(To:VladimirN)

Too bad, so the hope is on Prime 8++

There are different things to fix and improve for future releases 😉!

Faris
2-Explorer
(To:Faris)

Hey everyone, so yeah non of these attempts worked with me. I guess their symbolic engine is not there yet, but thank you for your help.

Announcements

Top Tags