Skip to main content
GameDev.net gamedev.net
🔒 Locked

i

Started by aeleneski Sep 7, 2003 at 6:36 PM 0 replies 400+ views
Original Post
aeleneski
aeleneski
i [Edited by - aeleneski on April 24, 2006 11:19:37 PM]
Beer Hunter
Beer Hunter
I found this with Google. Basically:

For ax³ + bx² + cx + d = 0:
Let p = -b/(3a), q = p³ + (bc-3ad)/(6a²), r = c/(3a), s = sqrt(q² + (r-p²)³)
A solution for x is given by: x = cbrt(q + s) + cbrt(q - s) + p

This is about 0.453398 in your example.

[edited by - Beer Hunter on September 7, 2003 8:13:30 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.