Skip to main content
1-Visitor
July 18, 2011
Solved

Using a solver in programming

  • July 18, 2011
  • 2 replies
  • 2794 views

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?

Best answer by wayne

See attached, in green, for a different way

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

Wayne

2 replies

24-Ruby III
July 18, 2011

My solution (in Mathcad 15):

Solution.JPG

wayne12-AmethystAnswer
12-Amethyst
July 18, 2011

See attached, in green, for a different way

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

Wayne