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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. 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