## 68 Reputation

14 years, 271 days

## Problems w/ eval...

Maple

Hello,

I'm having a bit of difficulty with the function "eval" I would like it to perform a full evaluation of an expression, but it does not appear to be doing this. When I try to explicitly pass it a value for the evaluation level it doesn't appear to take the integer input, the only way I can get it to work is to nest calls to eval ...[ie eval(eval(exp))]. Below is the code giving me the problem, the problem occurs on the last line...any suggestions would be appreciated

Thank you.

## Display Matrix w/ assigned parameters......

Maple

Hello,

I'd like to declare a Matrix of variables, then assign each to a value, then just display the resulting Matrix...seems pretty simple. Evalm used show the evaluated version, but I guess that is now depricated. How do I do it in Maple 13....for example

a11:=1;
a12:=0;
a21:=0;
a22:=1;

thank you.

## Declare generic function ...f(x,y,z,t) e...

Maple

Hello,

when using Maple to do simple calculus I usually have to explicitly
state the dependence of each variable in the expression....for example

c*(1-cos(x[1](t)))+x[2](t)^2/2

is there a way to declare generic functions of a dependent variable
say

x1 = x1(t) or x2 = x2(x,y,z)

and avoid having to do it repeatedly in an expression?  I know i can use subs to replace patterns, but can you declare somthing like f(x,y,z,t) without giving the details?

Thank you

 1 2 Page 2 of 2
﻿