But the expression becomes gigantic!

Find the 27th derivative of tan ( x ) \tan (x) at x = 0 x = 0 .


The answer is 70251601603943959887872.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Piotr Idzik
Jun 4, 2020

My sympy/python code is below. A009006 contains some interesting links related to this problem.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
"""
solution of:
    https://brilliant.org/problems/but-the-expression-becomes-gigantic/
"""

import sympy
X = sympy.symbols('x')
F = sympy.tan(X)
for _ in range(27):
    F = sympy.expand(sympy.diff(F, X))
print(F.subs(X, 0))

Lovely. I didn't know sympy can do this.

You're some kind of programming wizard. Respect!

Pi Han Goh - 1 year ago

Log in to reply

Deep respect! I really want to be able to do programming like this 🤞🏻. It's just deadly when you are able to do so.

Mahdi Raza - 9 months, 1 week ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...