Find maximum of a discontinuous function.
Find maximum of a discontinuous function.
(OP)
Hi,
I'm failed to find the maximum of a discontinuous function . Could someone help me?
Thanks
link: https://www.dropbox.com/s/jowg1m1oeh8zfhv/ERROR.xm...
I'm failed to find the maximum of a discontinuous function . Could someone help me?
Thanks
link: https://www.dropbox.com/s/jowg1m1oeh8zfhv/ERROR.xm...





RE: Find maximum of a discontinuous function.
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Find maximum of a discontinuous function.
I tried, but nothing.
I don't know how to do that.
RE: Find maximum of a discontinuous function.
http://files.engineering.com/getfile.aspx?folder=3...
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Find maximum of a discontinuous function.
Given IRStuff's amended worksheet, you can apply the modified Ta to x (which is now in vector form) by using the vectorization operator. If you don't use the vectorization operator, then Mathcad will try to apply Ta to the vector x rather than each element of x (which is what you want). Unfortunately, Mathcad is a bit inconsistent with the use of logical operators and vectors. It automatically vectorizes single comparisons but doesn't allow the upper and lower bounded form of comparison you use; nor does it allow the logical operators and, or, xor or not to directly apply to vectors (or any other type of array) - the vectorize operator must be used.