15 May 22:11
complex function works only after defining it twice
From: Christoph Sarnowski <pixelbrei <at> h3c.de>
Subject: complex function works only after defining it twice
Newsgroups: gmane.comp.mathematics.maxima.general
Date: 2008-05-15 20:12:53 GMT
Subject: complex function works only after defining it twice
Newsgroups: gmane.comp.mathematics.maxima.general
Date: 2008-05-15 20:12:53 GMT
First of all i want to say hello, as i am new to this mailing list,
and new to maxima.
I have defined a (programming) function, which take a mathematical
function as an argument, and should give me a new (mathematical)
function:
-8<-------------------------------------
/* the error is defined as
| df | | df |
error(f(x,y, ...)) = | -- | * delta_x + | -- | * delta_y + ...
| dx | | dy |
and is a function of all arguments to f() plus all deltas of its arguments:
df(x, y, ...., dx, dy, ...) */
error(fun, ret) :=
block(
[
dep:dependencies,
N:length(dependencies),
vars:[],
all_vars:[],
dvars:[],
num_vars,
reservoir: [d1, d2, d3, d4, d5, d6, d7, d8, d9, d10]
],
/* find out what arguments fun() takes via dependencies */
(for i:1 step 1 while i<=N
do if (part(dep[i], 0) = fun) then
(Continue reading)
RSS Feed