Differences between revisions 8 and 9
Revision 8 as of 2008-08-12 12:52:22
Size: 441
Editor: was
Comment:
Revision 9 as of 2008-08-12 13:57:03
Size: 657
Editor: was
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
= The Symbolic Benchmark Challenge Suite = = The Symbolic Benchmark Suite =
Line 5: Line 5:
 1. SETUP: Let $f = (x+y+z+1)^{15}$. COMPUTATION: Compute all coefficients of all monomials of $f\cdot (f+1)$, i.e., expand that expression. The conditions for something to be listed here: (a) it must be resemble an ''actual'' computation somebody actually wanted to do in Sage, and (b) the question must be precisely formulated with Sage code that uses the Sage symbolics in a straightforward way (i.e., don't cleverly use number fields).
Line 7: Line 7:
 1. SETUP: Define a function $f(z) = \sqrt{1/3}\cdot z^2 + i/3$. COMPUTATION: Compute the first 5 digits of the numerator of the real part of $f(f(f(...(f(i/2))...)$ iterated $10$ times. == PROBLEM 1 ==
Line 9: Line 9:
  SETUP: Define a function $f(z) = \sqrt{1/3}\cdot z^2 + i/3$. COMPUTATION: Compute the real part of $f(f(f(...(f(i/2))...)$ iterated $10$ times.
{{{
def f(z): return sqrt(1/3)*z^2 + i/3
timeit('real(f(f(f(f(f(f(f(f(f(f(i/2)))))))))))')
}}}

See also [:SymbolicBenchmarks: this other page].

The Symbolic Benchmark Suite

The conditions for something to be listed here: (a) it must be resemble an actual computation somebody actually wanted to do in Sage, and (b) the question must be precisely formulated with Sage code that uses the Sage symbolics in a straightforward way (i.e., don't cleverly use number fields).

== PROBLEM 1 ==

SETUP: Define a function f(z) = \sqrt{1/3}\cdot z^2 + i/3. COMPUTATION: Compute the real part of f(f(f(...(f(i/2))...) iterated 10 times.

def f(z): return sqrt(1/3)*z^2 + i/3
timeit('real(f(f(f(f(f(f(f(f(f(f(i/2)))))))))))')

symbench (last edited 2022-10-20 07:50:33 by chapoton)