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

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

# How to set the third and fourth arguments of root function?

No ratings

Hi Expert,

Here is a piecewise continuos function. I can get the two root by root function. But the third root with an error "The function values on the end points must be of opposite signs." How can I set he third and fourth arguments of root function?

Comments

Three options, 1) symbolic,  2) ployroot  3) try finding root of M(x)/M'(x), but I guess root has trouble because the function does not cross the axis.

Hi Wayne,

Thanks for your help.

About the piecewise function, we know M(200)=0. The root x=200 is existing. But the root(f,x,a,b)  should be monotonic function in the neighbourhood of the root value. So we can use ployroot function resolving the special root.

Thanks again.

Version history
Last update:
‎Mar 19, 2012 10:10 PM
Updated by:
Tags (1)