Post Reply 
logging a function's argument
09-28-2022, 04:44 PM
Post: #7
RE: logging a function's argument
(09-27-2022 09:21 AM)parisse Wrote:  If you quote the function as argument of e.g. romberg or gaussquad, you will see the values.
Code:
argx(a):=begin l.append(a); return a; end;
l:=[];
romberg('sin(cos(argx(x)))',x,-1,1);

Thanks, that's just what I was looking for.

It works with romberg() and int() with finite limits, but not int() with infinite limits. Is there a way to call gaussquad() directly on the Prime like you can in XCAS?

I still couldn't get fsolve() to work, but I am pleased to get integration working.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
logging a function's argument - Wes Loewer - 09-25-2022, 07:40 PM
RE: logging a function's argument - Wes Loewer - 09-28-2022 04:44 PM



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