Post Reply 
Example of a symbolic equation
08-17-2023, 05:38 AM
Post: #1
Example of a symbolic equation
I need an equation in symbolic mode (CAS) for testing purposes that will be relatively easy to input but will take a while to compute on the Prime G1. Ideally, the computation should last more than 10 seconds, but less than 30 seconds.
Can someone provide such an example?
It doesn't even have to be an equation, it can be any type of calculation, but it must be symbolic, not numeric.

Piotr Kowalewski
Find all posts by this user
Quote this message in a reply
08-17-2023, 03:04 PM (This post was last modified: 08-17-2023 03:08 PM by Albert Chan.)
Post: #2
RE: Example of a symbolic equation
There is a (undocumented?) @@ operator, (f @@ 3)(x) = f(f(f(x)))
You can generate huge mess easily Big Grin

Cas> f(x) := (x-1)/(x+1)
Cas> normal(atanh(f(x))      → 1/2 * ln(x)
Cas> normal(f @@ 2)           → (_x) -> -1 / _x

--> normal(f @@ 4n) will produce identity function.

Another example, to give a trig work-out

Cas> g(t) := 2t/(1-t*t)
Cas> simplify(g(tan(x/2))-tan(x))      → 0

--> simplify((g @@ n) (tan(x/2^n)) - tan(x)) = 0
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)