Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

limit value on functions

Status
Not open for further replies.

blckwtr

Mechanical
Oct 30, 2006
204
How do I do this in Mathcad?

Example.:

f(x)=x^3+3 for x<10
g(x)=x for x>=10

Then plot it to get one single value for one single parameter?

 
Replies continue below

Recommended for you

f(x):if(x<10,x^3+3,x)


Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
I am not very familiar with the condition notation in Mathcad...

Thanks, Greg...:)
 
Does it work, that looks an awful lot like excel on second thoughts?

Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
It works. It is just like the Excel function.

if(cond, x, y)
Returns x if logical condition cond is true (non-zero), y otherwise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor