Community login and other support tools will be unavailable Saturday May 3rd 9:00 am to 3:00 pm (EST) due to planned maintenance. Learn More

Translate the entire conversation x

Using a solver in programming

ptc-1743905
1-Visitor

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?

ACCEPTED SOLUTION

Accepted Solutions
wayne
12-Amethyst
(To:ptc-1743905)

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

wayne
12-Amethyst
(To:ptc-1743905)

See attached, in green, for a different way

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

Wayne

Announcements

Top Tags