Feb 21, 2007 #1 blckwtr Mechanical Joined Oct 30, 2006 Messages 204 Location NO 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?
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?
Feb 21, 2007 #2 GregLocock Automotive Joined Apr 10, 2001 Messages 23,891 Location Orbiting a small yellow star 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. Upvote 0 Downvote
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.
Feb 21, 2007 Thread starter #3 blckwtr Mechanical Joined Oct 30, 2006 Messages 204 Location NO I am not very familiar with the condition notation in Mathcad... Thanks, Greg... Upvote 0 Downvote
Feb 21, 2007 #4 GregLocock Automotive Joined Apr 10, 2001 Messages 23,891 Location Orbiting a small yellow star 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. Upvote 0 Downvote
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.
Feb 21, 2007 #5 jghrist Electrical Joined Jul 16, 2002 Messages 4,226 Location US 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 Upvote 0 Downvote
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