ai-content-maker/.venv/Lib/site-packages/sympy/series/benchmarks/bench_order.py

11 lines
207 B
Python
Raw Permalink Normal View History

2024-05-03 04:18:51 +03:00
from sympy.core.add import Add
from sympy.core.symbol import Symbol
from sympy.series.order import O
x = Symbol('x')
l = [x**i for i in range(1000)]
l.append(O(x**1001))
def timeit_order_1x():
Add(*l)