Help needed with programmed function using symbolics
- November 7, 2010
- 2 replies
- 6430 views
As Mathcad seems to offer no possibilities for solving differential equations symbolically other than using the Laplace transform I tried to write my own function.
I succeded, but the independent variable was fixed to "x".My efforts to make that variable selectable failed completely.
The main problem (as I see it now) seems to be the passing of a function as a paraneter of a self written function, but maybe I am missing a point.
I tried to simplified the problem by writing a simple function which should yield the derivative of its argument function. I'd liked to call it Diff and I wanted the following results:
Diff(sin(x),x) --> cos(x)
Diff(sin(a),a) --> cos(a)
but
Diff(sin(a),b) --> 0
I found no way of achieving this. Maybe someone could be so kind and help me out.
A second question about a plot which doesnt work as expected is in the attached worksheet at the end.
I am using Mathcad 14 M030 and the file was saved in MC11-Format
Thanks in advance
Rager

