×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Quartic Equation Solution Help

## Quartic Equation Solution Help

(OP)
Hi,

I have currently developed a VB script that produces 4 coefficients e.g (A1,A2,A3,A4). These four coefficients make up the constants of a quartic equation.

A1x^4 + A2x^3 + A3x^2 + A4x = 0

Where I need to solve for x.

I am not strong in visual basic and was thinking the Newton Raphson method may be appropriate to solve this. However I am not proficient enough to write this code in vb. Does anyone have a suitable VB script that may solve this equation for me or any advice on an alternative method.

Any help would be greatly appreciated.

Cheers,

M

### RE: Quartic Equation Solution Help

Well I love advanced math and programming but the math involved in solving this one may be over my head.  I did, however, find a useful description on Wikipedia at http://en.wikipedia.org/wiki/Quartic_equation ...if you go about two thirds of the way down the page there is a section called [bold]Summary of Ferrari's method[/bold] that looks like it would lend itself very well to adapting into a complex function.

It looks to me as if those equations could be incorporated into a VB function that would also be able to handle the special cases and return some roots for you.  It looks like it would take some work and testing but if those equations work for your purposes it should be possible.  Otherwise is there any chance you could send those variables to Matlab (or similar) for processing?

I hope that is any help at all, and I'd be happy to help with VB function construction suggestions too.

Eric

### RE: Quartic Equation Solution Help

Do you need only the real roots or real and imaginary roots?
Do you have an estimate of where the roots are that you want to find?
The answers to the above questions will help determine which method to use.

For some reading on numerical methods go to www.nr.com it is the numerical recipies site, they have some useful info and algorithms.

### RE: Quartic Equation Solution Help

(OP)
I only needed to find the real roots with no estimate of where the roots are.

However, I was able to solve this using a quartic solution formula I found on the web.

For anyone who is interested there is a helpful solution for a quartic polynomial which can be found at

http://www.1728.com/quartic2.htm.

This steps out a process that isn't too bad to put into vb.

M.

### RE: Quartic Equation Solution Help

It just happens I've just finished some custom functions to do the same thing (also find complex roots, and solve cubics and quadratics).

http://www.interactiveds.com.au/software.html

It's open source, any comments on the code are welcome.

Doug Jenkins
Interactive Design Services
www.interactiveds.com.au
dougjenkins@interactiveds.com.au

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

#### Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a partâ€™s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!