Skip to main content
3-Newcomer
July 8, 2026
Solved

use the result of the quadratic function

  • July 8, 2026
  • 3 replies
  • 98 views

I would like to use the result of a quadratic function for another mathematical operation. Example: F(x)=4x^2+x-3 gives the results -1.0 and 0.75. I would like to use the value 0.75 for another operation. Please give me some tips on how to write this in Mathcad.

Best answer by Werner_E

In case you are interested in the positive solution only you could use the “assume, x>0” modifier and assign the result a variable (and you may use “x” as variable name or anything else):

But you don’t need to use Primes symbolics. Alternatively you may use the “root” function or a solve block with “find”.

You may use the root function by providing a meaningful interval for the solution

or by providing a guess value (a negative guess will give you the result -1)

You cannot add an additional constraint if you use the “root” function, but you can if you use a solve block:

Note that this examples were done in legacy Mathcad 15 and a solve block looks quite different in Prime (“Given” is not needed and you have to insert the solve block like a separate component (Menu: Math - Solve block, or Ctrl+7)

3 replies

ttokoro
21-Topaz I
July 8, 2026

 

t.t.
Werner_E25-Diamond IAnswer
25-Diamond I
July 9, 2026

In case you are interested in the positive solution only you could use the “assume, x>0” modifier and assign the result a variable (and you may use “x” as variable name or anything else):

But you don’t need to use Primes symbolics. Alternatively you may use the “root” function or a solve block with “find”.

You may use the root function by providing a meaningful interval for the solution

or by providing a guess value (a negative guess will give you the result -1)

You cannot add an additional constraint if you use the “root” function, but you can if you use a solve block:

Note that this examples were done in legacy Mathcad 15 and a solve block looks quite different in Prime (“Given” is not needed and you have to insert the solve block like a separate component (Menu: Math - Solve block, or Ctrl+7)

TomaszSz3-NewcomerAuthor
3-Newcomer
July 11, 2026

Thanks a lot for the help, now everything is clear