Skip to main content
Commonmark migration
Source Link

#Python, 78 72 66 bytes

Python, 78 72 66 bytes

Pretty much a direct implementation of the algorithm provided in the challenge description.

lambda T,r,w:T+.0201465*r*2.7182818284**(17.27*T/(237.7+T))-.7*w-4

Try it online

This was specifically tested with the maximum value of T to find how many digits of Euler's constant were required for the error to be within the allowed amount.

#Python, 78 72 66 bytes

Pretty much a direct implementation of the algorithm provided in the challenge description.

lambda T,r,w:T+.0201465*r*2.7182818284**(17.27*T/(237.7+T))-.7*w-4

Try it online

This was specifically tested with the maximum value of T to find how many digits of Euler's constant were required for the error to be within the allowed amount.

Python, 78 72 66 bytes

Pretty much a direct implementation of the algorithm provided in the challenge description.

lambda T,r,w:T+.0201465*r*2.7182818284**(17.27*T/(237.7+T))-.7*w-4

Try it online

This was specifically tested with the maximum value of T to find how many digits of Euler's constant were required for the error to be within the allowed amount.

deleted 2 characters in body
Source Link
mbomb007
  • 23.5k
  • 7
  • 63
  • 135

#Python 2, 78 7272 66 bytes

Pretty much a direct implementation of the algorithm provided in the challenge description.

import math
lambda T,r,w:T+.0201465*r*math0201465*r*2.exp7182818284**(17.27*T/(237.7+T))-.7*w-4

Try it onlineTry it online

This was specifically tested with the maximum value of T to find how many digits of Euler's constant were required for the error to be within the allowed amount.

#Python 2, 78 72 bytes

Pretty much a direct implementation of the algorithm provided in the challenge description.

import math
lambda T,r,w:T+.0201465*r*math.exp(17.27*T/(237.7+T))-.7*w-4

Try it online

#Python, 78 72 66 bytes

Pretty much a direct implementation of the algorithm provided in the challenge description.

lambda T,r,w:T+.0201465*r*2.7182818284**(17.27*T/(237.7+T))-.7*w-4

Try it online

This was specifically tested with the maximum value of T to find how many digits of Euler's constant were required for the error to be within the allowed amount.

deleted 2 characters in body
Source Link
mbomb007
  • 23.5k
  • 7
  • 63
  • 135

#Python 2, 78 72 bytes

Pretty much a direct implementation of the informationalgorithm provided in the challenge description.

import math
lambda T,r,w:T+.0201465*r*math.exp(17.27*T/(237.7+T))-.7*w-4

Try it online

#Python 2, 78 72 bytes

Pretty much a direct implementation of the information provided in the challenge description.

import math
lambda T,r,w:T+.0201465*r*math.exp(17.27*T/(237.7+T))-.7*w-4

Try it online

#Python 2, 78 72 bytes

Pretty much a direct implementation of the algorithm provided in the challenge description.

import math
lambda T,r,w:T+.0201465*r*math.exp(17.27*T/(237.7+T))-.7*w-4

Try it online

deleted 3 characters in body
Source Link
mbomb007
  • 23.5k
  • 7
  • 63
  • 135
Loading
Source Link
mbomb007
  • 23.5k
  • 7
  • 63
  • 135
Loading