Differences between revisions 4 and 9 (spanning 5 versions)
Revision 4 as of 2008-08-11 17:15:52
Size: 385
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 1: Line 1:
= The Symbolic Benchmark Challenge Suite = See also [:SymbolicBenchmarks: this other page].
Line 3: Line 3:
 1. SETUP: Let $f = (x+y+z+1)^20$. COMPUTATION: Compute all coefficients of all monomials of $f\cdot (f+1)$, i.e., expand that expression. = The Symbolic Benchmark Suite =
Line 5: Line 5:
 1. SETUP: Define a function $f(z) = \sqrt(1/3) 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. 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:
 2. == 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)))))))))))')
}}}

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)