 |
|
List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] Dynamically creating variables while using assumptions
| [MUG] Dynamically creating variables while using assumptions |
|
Author: Erik Leunissen
Posted: 04/01/2001 17:30:11 GMT
|
>> From: Erik Leunissen
L.S.
I'm trying to create a variable name dynamically, using the procedure in
example 1 below. Performing operations with the duynamically created
variable works as expected, as the same example shows.
However, I'm in a slightly different situation (example 2), where x
itself is a variable bearing an assumption. Now, the trick doesn't work
anymore. I can't perform operations with the dynamically created
variable because it apparently means something different now.
Is it possible in situation/example 2, to create a dynamic variable Dx
using the character x?
If so, can you show me how?
If not, is there a workaround?
Thanks in advance,
Erik Leunissen.
------------------- Example 1 -------------
> restart;
> Dx-D.x;
0
------------------- Example 2 -------------
> restart;assume(x>0);
> Dx-D.x;
Dx - Dx~
------------ End of examples ----------------
|
[View Complete Thread]
Previous by date: [MUG] integration of piecewise function, Stef Pillaert
Next by date: [MUG] Re: Indexed Variables: What is a valid index?, Maple Group
Previous thread: [MUG] The surprise of a trivial equation, Petru Pau
Next thread: [MUG] Indexed Variables: What is a valid index?, Nathan Sokalski
|
|
|