Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
horsevalue
function getPrice( R, T ) { var e = 2.71828; var price = ( ( ( e ) ** ( -R/T ) ) * T/35 ) * ( 10 ** 5 ); return price; } var x = {}; for( var i=50000; i>=0; i-- ){ x[i] = getPrice( i, 50000 ) } console.log( JSON.stringify( x ) );
run
|
edit
|
history
|
help
0
problem_name
apply
Sort based on keys
Count digits
example for node promises
myfirstmodule.js
Tree Structure
Find the missing number in array
lodash
JS - check 2 arrays, add 1 or 2, logical operations