Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am a retired engineer reviving my knowledge of programs.

Cubic equation a=2,b=-3,c=-3,d=2
I get D=729, sqrt(D)=27 p=-2.25, q=0

I know the roots from the graph to be -1;0.5;2 but using the code in your paper with Basic I get different answers.
Please let me have suggestions where I am going wrong. Is your code Java or Javascript?

What I have tried:

I am still learning Java Script so I used Basic to compute the answers. Perhaps there is something about basic which screws up cude roots??
Posted
Updated 13-Oct-17 8:43am
Comments
Patrice T 13-Oct-17 14:32pm    
There is a forum at the end of articles, should be the place to start with.
to get help in this forum, show your code.

1 solution

Don't post this under Quick Answers - if you got the code from an article, then there is a "Add a Comment or Question" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.

Posting this here relies on them "dropping by" and realising it is for them - the rest of us have no idea what article of the hundred thousand or so article on this site, written by any of 13,000,000 members you are referring to...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900