Brian Dunning's FileMaker Custom Functions

Quartic_Solver ( a, b, c , d, e, which_x )

Finds Real Roots of Quartic Equation a*x^4 + b*x^3 + c*x^2 + d*x + e = 0

  Average rating: 3.5 (2 votes) Log in to vote

Dr. Ronald W. Satz   Dr. Ronald W. Satz - Show more from this author
Transpower Corporation
http://www.transpowercorp.com

Share on Facebook Share on Twitter

  Sample input:
Let
(
[
a = -20 ;
b = 5 ;
c = 17 ;
d = -29 ;
e = 87 ;
which_x = 1
] ;

Quartic_Solver ( a ; b ; c ; d ; e ; which_x )
)
  Sample output:
1.48758311...

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

You can, of course, change the precision to whatever you want (or even take it off altogether). If the x you want is complex, you'll simply get a "?" for the result. For most problems in physical science, you will want a real root. But you may have to run the program up to four times to get the root which makes physical sense. Ref.: Wikipedia ("Quartic Function")

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: