Re: [fricas-devel] [WIP] Functor, or "MapCategory"

2016-10-30 Thread Bill Page
On 30 October 2016 at 19:40, Waldek Hebisch wrote: > > Before using a function Spad runtime first has to compute > types appearing in function signature. So before call to 'ap' > we have to compute 'A(S->S)' with 'A' replaced by 'AMaybe'. > The problem is that constructors (in particular 'AMaybe'

Re: [fricas-devel] get type of object as a fricas object

2016-10-30 Thread Kurt Pagani
Am 31.10.2016 um 02:42 schrieb Bill Page: > On 30 October 2016 at 19:14, Waldek Hebisch wrote: >> ... >> OTOH: >> >> (2) -> typeOf(Integer) >> >>(2) Type >>Type: Category >> (3) -> typeOf(typeOf(Integer)) >> >>(3) Categor

Re: [fricas-devel] get type of object as a fricas object

2016-10-30 Thread Bill Page
On 30 October 2016 at 19:14, Waldek Hebisch wrote: > ... > OTOH: > > (2) -> typeOf(Integer) > >(2) Type >Type: Category > (3) -> typeOf(typeOf(Integer)) > >(3) Category >

Re: [fricas-devel] [WIP] Functor, or "MapCategory"

2016-10-30 Thread Waldek Hebisch
Bill Page wrote: > > On 28 October 2016 at 22:32, Waldek Hebisch wrote: > > Bill Page wrote: > >> > >> The following code compiles (requires bootStrapMode) and seems to work: > >> > >> -- > >> )abbrev category APPL Applicative > >> Applicative(S : Type, A: (Type->Type)) : Category == Type with >

Re: [fricas-devel] get type of object as a fricas object

2016-10-30 Thread Waldek Hebisch
Bill Page wrote: > > 10) -> typeOf(SetCategory) > >(10) Category >Type: Type > > (11) -> typeOf(Category) > >(11) Variable(Category) >Type: Type > >

[fricas-devel] [BUG] "Polynomial is not a single variable" when setSimplifyDenomsFlag(true)

2016-10-30 Thread oldk1331
(1) -> f := cosh(x)*(-cosh(2*x)+tanh(x))/(sinh(x)^2+sinh(2*x))/sinh(2*x)^(1/2) cosh(x)tanh(x) - cosh(x)cosh(2x) (1) 2 ┌┐ (sinh(2x) + sinh(x) )\│sinh(2x) Type