Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

JavaScript, 39 bytes, SLuck49 SLuck49

x=>(l=Math).cbrt(l.exp(l.log(x)*7.5))

or similarly

x=>(l=Math).exp(l.log(l.cbrt(x))*7.5)

Test:

alert((
x=>(l=Math).cbrt(l.exp(l.log(x)*7.5))
)(prompt()));

JavaScript, 39 bytes, SLuck49

x=>(l=Math).cbrt(l.exp(l.log(x)*7.5))

or similarly

x=>(l=Math).exp(l.log(l.cbrt(x))*7.5)

Test:

alert((
x=>(l=Math).cbrt(l.exp(l.log(x)*7.5))
)(prompt()));

JavaScript, 39 bytes, SLuck49

x=>(l=Math).cbrt(l.exp(l.log(x)*7.5))

or similarly

x=>(l=Math).exp(l.log(l.cbrt(x))*7.5)

Test:

alert((
x=>(l=Math).cbrt(l.exp(l.log(x)*7.5))
)(prompt()));

Source Link
GOTO 0
  • 822
  • 5
  • 14

JavaScript, 39 bytes, SLuck49

x=>(l=Math).cbrt(l.exp(l.log(x)*7.5))

or similarly

x=>(l=Math).exp(l.log(l.cbrt(x))*7.5)

Test:

alert((
x=>(l=Math).cbrt(l.exp(l.log(x)*7.5))
)(prompt()));

AltStyle によって変換されたページ (->オリジナル) /