Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Add property to object
JSON parse
example for node promises
Holyboi
Union of two sorted arrays
Tree Structure
lodash
Include object in a query string
RFID TEST
problem_name
Please log in to post a comment.