|
|
last edited 10 years ago by test1 |
1 2 3 4 | ||
Editor: kratt6
Time: 2007/12/20 02:31:05 GMT-8 |
||
Note: |
added:
From kratt6 Thu Dec 20 02:31:05 -0800 2007
From: kratt6
Date: Thu, 20 Dec 2007 02:31:05 -0800
Subject:
Message-ID: <20071220023105-0800@axiom-wiki.newsynthesis.org>
Category: Axiom Compiler => Axiom Interpreter
Status: open => fix proposed
When trying this code (that is probably buggy on some level), axiom simply crashes on me without any comment. I'm using the Debian (Ubuntu) build of 20050201
u := operator 'u;
multidiff(expr,variable, count) == if count > 0 then D(multidiff(expr, variable, count-1), variable) else expr
maketaylor(expr) == series( n +-> multidiff(expr,x, n), x=0)
Can't run this one:
\begin{axiom} make_taylor(u(x)) \end{axiom}
In fact, series
doesn't work as soon as it is wrapped in a function, no matter whether declared or not. While
series( (n:INT):EXPR INT +-> a^n,x=0)$GenerateUnivariatePowerSeries(INT, EXPR INT)
![]() | (1) |
works alright, the following fails:
\begin{axiom} maketaylor(x:Symbol):ANY == series( (n:INT):EXPR INT +-> a^n, x=0)$GenerateUnivariatePowerSeries(INT, EXPR INT) \end{axiom}
Cheers
Sorry, this code works with or without this patch if you compile the functions:)set function compile on
maketaylor(x:Symbol):UnivariateTaylorSeries(Expression Integer,x, 0) == aa:=series( (n:INT):EXPR INT +-> a^n, x=0)$GenerateUnivariatePowerSeries(INT, EXPR INT) aa::UnivariateTaylorSeries(Expression Integer, x, 0)
Function declaration maketaylor : Symbol -> UnivariateTaylorSeries( Expression(Integer),x, 0) has been added to workspace. 1 old definition(s) deleted for function or rule maketaylor
maketaylor(x)
Cannot compile conversion for types involving local variables. In particular,could not compile the expression involving :: UnivariateTaylorSeries(Expression(Integer), #1, 0) FriCAS will attempt to step through and interpret the code.
Compiling function maketaylor with type Symbol -> UnivariateTaylorSeries(Expression(Integer),x, 0)
![]() | (2) |
Cheers
Category: Axiom Compiler => Axiom Interpreter Status: open => fix proposed