Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Solve equations witch contains absolute values

Status
Not open for further replies.

Bossebo

Structural
Joined
May 12, 2010
Messages
5
Location
SE
Hi

(I apologise for my bad english!)

I have a question about mathcad. I have a equation loking something like this:

f(x)=N/A+M*(x-y)/W

witch I like to solve for f(x)=0
with other words, I like to find the x for witch f=0

The problem is that the term (x-y) should be the absolute value and to me it looks like mathcad cant solv the equation using f solve,x-> when it contains absolute values

I then tried to rewrite the term like this:

squarrot( (x-y)^2)

witch of corse is the same but I thought this way to write it maight help but NOP it dident. Matchad was unable to solve the equation so my question is:

How do i get Mathcad to solve equations witch contains absolute values?
 
You can't, in general. Such functions are highly discontinuous, and the only solution is to partition the problem and solve each partition separately.

TTFN

FAQ731-376
 
Hi again

Thanks for quick answers!

Unfortunately I cant tell whether zero, one or two of M, W, A and N will be negative. I guess I have to find another way too get around the problem.

Thanks anyway!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top