Discussion:
[fricas-devel] [PATCH] make integration test run much faster
oldk1331
2018-10-22 10:53:27 UTC
Permalink
This integration takes 1 second, but differentiates back takes
38 seconds and "normalize" verification takes 80 seconds.

By skipping the verification, the test can run much faster.


=======================
make integration test run much faster

--- a/src/input/integ.input
+++ b/src/input/integ.input
@@ -652,7 +652,9 @@
-- used to fail since we need to factor Trager resultant over complex
-- numbers
testIntegrate("cos(x)^2/sqrt(cos(x)^4 + cos(x)^2 + 1)", "x", "alg")
-testIntegrate("sqrt(tan(x)^2 + 2*tan(x) + 2)", "x", "alg")
+
+-- the integration is fast, but to verify it takes too much time
+testTrue("(integrate(sqrt(tan(x)^2 + 2*tan(x) + 2), x); true)")

t1 := exp(x)
t2 := exp(1/(1 + t1))
--
You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+***@googlegroups.com.
To post to this group, send email to fricas-***@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.
Waldek Hebisch
2018-10-22 18:25:12 UTC
Permalink
Post by oldk1331
This integration takes 1 second, but differentiates back takes
38 seconds and "normalize" verification takes 80 seconds.
By skipping the verification, the test can run much faster.
Much of the point of this test is verification. There
is always problem if we should include long running tests.
When possible, I am trying to make fast-running test.
For this one I see no way to test the thing cheaper,
except for producing simpler result (which should be
possible) and generally speeding up expression handling.
--
Waldek Hebisch
--
You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+***@googlegroups.com.
To post to this group, send email to fricas-***@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.
Loading...