#java math

18 messages ยท Page 1 of 1 (latest)

spring drum
#

how to write formula in java language

neon cipherBOT
#

โŒ› This post has been reserved for your question.

Hey @spring drum! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

spring drum
#

S=SP/12Math.pow((1+P/12), N) / Math.pow(((1+PP/12),N) -1)

#

is it true ?

eager perch
#

make sure you're using doubles to get accurate results

spring drum
#

is my formula valid ?

eager perch
#

try it

spring drum
#

how i implemented that

eager perch
#

you could remove the parens in the first argument of Math.pow btw

fallen bane
# spring drum

se = S * P / 12d * Math.pow(1d+P / 12d, N) / (Math.pow(1+P / 12d, N) - 1)

neon cipherBOT
# neon cipher

Before your post will be closed, would you like to express your gratitude to any of the people who helped you? When you're done, click I'm done here. Close this post!.

eager perch
fallen bane
#

i just do random spacing and go with it

eager perch
#

it's horrible to read lmao

real sapphire
#

Can also use BigDecimal which has equation stuff built in and also gives you greater control over precision.