Question: My first own package

Hi 

 

Hi have made my first package in maple, and need some help. I've got a funktion, and need maple to put something into this function.. 

 

Dams := proc (a, b, c)

local A, f;

 f(x) := a;

printf("\nDin funktion er %a", f(x));

 A := diff(a, b);

printf("\nDen differentierede funktion er %a", A);

use x = c in f(x);

 printf("\n%a i ligningen ", f(x));              ( <- here is the problem i think, but I don't know what to put in )

end use

 printf("\n Funktionen f(x) ser således ud:"); plot(f(x))

end proc

my problem is that if my function is for example x2 and my input is 5 is the output is only f(5) and not 25 like i would like it to be, how can I make i calculate this with any function and any number? 

 

thanks 

Please Wait...