Skip to main content
Commonmark migration
Source Link

#Python 2 - 56 bytes

Python 2 - 56 bytes

The first actual answer, if I'm correct. Uses Newton's method.

n=x=input();exec"x-=(x**n-n)/(1.*n*x**-~n);"*999;print x

#Python 2 - 56 bytes

The first actual answer, if I'm correct. Uses Newton's method.

n=x=input();exec"x-=(x**n-n)/(1.*n*x**-~n);"*999;print x

Python 2 - 56 bytes

The first actual answer, if I'm correct. Uses Newton's method.

n=x=input();exec"x-=(x**n-n)/(1.*n*x**-~n);"*999;print x
added 3 characters in body
Source Link
Maltysen
  • 25.8k
  • 4
  • 55
  • 127

#Python 32 - 5356 bytes

The first actual answer, if I'm correct. Uses Newton's method.

lambda n,x=1:execn=x=input("x);exec"x-=(x**n-n)/(n*x**1.*n*x**-~n);"*999)and;"*999;print x

#Python 3 - 53 bytes

The first actual answer, if I'm correct. Uses Newton's method.

lambda n,x=1:exec("x-=(x**n-n)/(n*x**-~n);"*999)and x

#Python 2 - 56 bytes

The first actual answer, if I'm correct. Uses Newton's method.

n=x=input();exec"x-=(x**n-n)/(1.*n*x**-~n);"*999;print x
Source Link
Maltysen
  • 25.8k
  • 4
  • 55
  • 127

#Python 3 - 53 bytes

The first actual answer, if I'm correct. Uses Newton's method.

lambda n,x=1:exec("x-=(x**n-n)/(n*x**-~n);"*999)and x