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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

How to tell MathCAD something is constant

ptc-4168940
7-Bedrock

How to tell MathCAD something is constant

In the highlighted integration, I want to tell MathCAD that the c is constant, but have not been able to figure out how to do so. I've seached some, but no luck.

Thanks

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:ptc-4168940)

No need to tell Mathcad so, Mathcad's symbolic treats c as a constant (for MC's numeric c is velocity of light)

I guess you are puzzled as of the huge expression you get in evaluating that integral while you would have expected something like

int01.png

But while Mathcad treats c as a constant it has to consider all possibilities, c could be -v1, it could be complex, etc.

So Mathcad gives you the results with a lot of if's to cope for every eventuality.

Your function has a vertical asymptote at v=-c, so the bounderies of your definite integral have to be both at the left or both at the right of -c, otherwise the integral would have to be infinity. Obviously c must not be -v1 or -v2 or you would get a divison by zero.

Replace c by a number and see that Mahcad still has some ifs, but less as with an unknown c.

You might try to use assume to get a more meaningful result. Unfortunately "assume" very often does not work as expected. E.g. "assume, -c<v1<v2" should do the job, but doesn't.

EDIT: Interestingly enough "assume, -c < v1" does the job - thats crazy!

int02.png

In fact "simplify" would not be necessary here, typing it is just a reflex 😉

View solution in original post

5 REPLIES 5

c:=c

and than the integral

PS

May be this will be interesting for you

http://twt.mpei.ac.ru/TTHB/2/tdceng.html

http://twt.mpei.ac.ru/TTHB/2/Otto-Thermal-Cycle-Mathcad-14.PNG

That is an awesome site. Inspires me to go learn a little Russian.

Samuel Bernstel wrote:

That is an awesome site. Inspires me to go learn a little Russian.

Thanks!

I try to translate the site into English but...

Can You help me?

Point me please pages of the site and I will translate its.

Some my article in English in this area (themogynamic + Mathcad) You can see here http://twt.mpei.ac.ru/ochkov/work2_eng.htm

Werner_E
25-Diamond I
(To:ptc-4168940)

No need to tell Mathcad so, Mathcad's symbolic treats c as a constant (for MC's numeric c is velocity of light)

I guess you are puzzled as of the huge expression you get in evaluating that integral while you would have expected something like

int01.png

But while Mathcad treats c as a constant it has to consider all possibilities, c could be -v1, it could be complex, etc.

So Mathcad gives you the results with a lot of if's to cope for every eventuality.

Your function has a vertical asymptote at v=-c, so the bounderies of your definite integral have to be both at the left or both at the right of -c, otherwise the integral would have to be infinity. Obviously c must not be -v1 or -v2 or you would get a divison by zero.

Replace c by a number and see that Mahcad still has some ifs, but less as with an unknown c.

You might try to use assume to get a more meaningful result. Unfortunately "assume" very often does not work as expected. E.g. "assume, -c<v1<v2" should do the job, but doesn't.

EDIT: Interestingly enough "assume, -c < v1" does the job - thats crazy!

int02.png

In fact "simplify" would not be necessary here, typing it is just a reflex 😉

Werner Exinger wrote:

No need to tell Mathcad so, Mathcad's symbolic treats c as a constant (for MC's numeric c is velocity of light)

c.png

Announcements

Top Tags