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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Using a solver in programming

ptc-1743905
1-Newbie

Using a solver in programming

I have a simple solver in the format

y:=guess Given

formula1=0

y:Find(y)

However the formula is dependent upon a boolean criteria so I want this format:

y:=guess Given

if criteria 1

Formula1=0

else

Formula2=0

y:Find(y)

I can solve the two formulas then check the criteria then select the correct solution but this seems longwinded or unelegant, see attached!

How can I do this in a compact way?

1 ACCEPTED SOLUTION

Accepted Solutions

See attached, in green, for a different way

(put the two criteria in an if statement = 0)

Wayne

View solution in original post

2 REPLIES 2

My solution (in Mathcad 15):

Solution.JPG

See attached, in green, for a different way

(put the two criteria in an if statement = 0)

Wayne

Top Tags