问题描述
我是一名退休工程师,重振了我对程序的了解。
立方方程a = 2,b = -3,c = -3,d = 2
我得到D = 729,sqrt(D)= 27 p = -2.25,q = 0
我知道图中的根为-1; 0.5; 2但是使用基本的论文中的代码我会得到不同的答案。
请让我知道我哪里出错了。你的代码是Java还是Javascript?
我尝试过:
我还在学习Java Script,所以我使用Basic来计算答案。也许有一些基本的东西搞砸了cude root ??
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??
推荐答案
这篇关于立方根的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!