0
Equations in java
Can anyone write (4/3)(2^ (√5/2.34^3)) in Java please this is what I have so far: double spiceEqu = (4/3) * Math.pow(2,((Math.sqrt(5))/(Math.pow(spice,3)))); Ps:spice =2.34
1 Antwort
+ 2
You are good, just have to take care about integer division (4/3)
You can cast it to double like ((double)4/3) or even simpler use double instead int (4.0/3).
That should work. And here is the code, too.
https://code.sololearn.com/c2DF2cOdzL0M/?ref=app