On Saturday, January 27, 2018 at 10:29:22 PM UTC-6, oldk1331 wrote:
>
> On Sun, Jan 28, 2018 at 12:22 PM, 'Nasser M. Abbasi' via FriCAS - 
> computer algebra system <[email protected] <javascript:>> wrote: 
> > I could not find, or know what to search for, to turn on tracing in 
> Fricas. 
> > 
> > For example, Fricas hangs on this 
> > 
> >        integrate((4*x^4+3)^(1/4)/x^2,x) 
> > 
> > And was just curious why that is. 
>
> First, if you use "setSimplifyDenomsFlag(true)", 
> then this integral returns in 2 seconds. 
>
>
The problem is that I do not know when to turn the above on or off.

If I do "setSimplifyDenomsFlag(true)" at start of the script, then now this 
integral hangs

       integrate((A*x+B)/(5*x^2-18*x+17)/(10*x^2-22*x+13)^(1/2),x)

But  integrate((4*x^4+3)^(1/4)/x^2,x)  does not hang (it takes about 20 
seconds
to finish on my Linux, but I am running VBox).

And If I do "setSimplifyDenomsFlag(false)" then now 

   integrate((A*x+B)/(5*x^2-18*x+17)/(10*x^2-22*x+13)^(1/2),x) 

does not hang any more, but integrate((4*x^4+3)^(1/4)/x^2,x)  hangs.

How is a user supposed to know what to set it to? Given I have no idea
what this flag does also. I have to decide at top of the script what to set 
it to.

 

> > I see there is a )trace command, but did not know how to use it 
> > for the above.  Is possible to give simple example of how to use 
> > )trace to see the call flow for the above integrate command? 
> > 
> > Using 1.3.2 
> > 
> > Thanks 
> > --Nasser 
>
>
> You can see the help of ')trace' by ')help trace'. 
>
> It is more difficult to use because you need to know which 
> Domain/Package/functions to trace. And it can generate 
> a lot of output. 
>
> On the other hand, you can use 'Ctrl-C' to interrupt and 
> check its backtrace, by using ')set break break' first. 
> The backtrace may also be long and difficult to read. 
>

Ok, thanks

--Nasser 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to