×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • 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.

Students Click Here

Quartic Equation Solution Help

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.

Thanks for your help

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).

Anyone interested can download from:

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

The file should be self explanatory, but if not please ask.

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.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


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
Design for Additive Manufacturing (DfAM)
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:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close