axiom-mail
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Axiom-mail] Using a polynomial inside a function
From
:
Alasdair McAndrew
Subject
:
[Axiom-mail] Using a polynomial inside a function
Date
:
Tue, 17 Nov 2015 11:39:53 +1100
Here's a minimum (non)-working example: I have a function which returns a polynomial:
mult(xs)==
return(reduce(*,[x-z for z in xs]))
and I have another function which needs such a polynomial:
intm(xs,a,b)==
g:=(x:Float):Float+->mult(xs)
return(numeric(integrate(g(x),x=a..b)))
which doesn't work. I've tried replacing the second line with
function(mult(xs),g,x)
which works on the command line, but not in a function. Any ideas as to how I can get over this hump?
ever confused,
Alasdair
--
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Axiom-mail] Using a polynomial inside a function
,
Alasdair McAndrew
<=
Re: [Axiom-mail] [fricas-devel] Using a polynomial inside a function
,
Bill Page
,
2015/11/16
Prev by Date:
[Axiom-mail] Drawing two curves simultaneously, two different colours?
Next by Date:
Re: [Axiom-mail] [fricas-devel] Using a polynomial inside a function
Previous by thread:
[Axiom-mail] Drawing two curves simultaneously, two different colours?
Next by thread:
Re: [Axiom-mail] [fricas-devel] Using a polynomial inside a function
Index(es):
Date
Thread