## "assume", "type" and "if"...

Can anyone tell me why "type" answers "false" and why do I get an error message, from the following simple code sequence (Maple 10)?

Thanks

restart;
> testp:=proc(m);
> if (m=0) then 0;
> elif (m>0) then 1;
> elif (m<0) then -1;
> end if;
> end proc;
> assume(n,posint);
> type(n,posint);
> is(n,posint);
> testp(n);
> testp(-1);

testp := proc(m)
if m = 0 then 0
elif 0 < m then 1
elif m < 0 then -1
end if
end proc

Originally n, renamed n~:
is assumed to be: AndProp(integer,RealRange(1,infinity))

false

## Can't find Animation slider...

Hello, I'm a complete Newbie. The first thing I did was to take the "10 Minute Tour" which is accessed through the help file. One of the things this tour has you do is to create an animated plot, which I did. However, the doc says "Clicking on the plot enables the animation toolbar.". Well, I click on the plot and my cursor turns into a curvey arrow, which let's me twist the plot around, but I don't get any animation toolbar. Could someone tell me exactly where and how to click to bring up the animation toolbar. The doc also mention an "animation slider". How do I get that? -Thank

## Plotting Discontinuities...

#1 Typically, on plots, removable discontinuities are represented by a small cicle at the discontinuity. How can such an object (i.e. the circle) be generated, preferrably automatically, by Maple at these points. #2 Also, if, for example, the signum function is plotted (i.e. a step discontinuity at x=0). How is an open circle plotted at (0,-1) and a closed circle plotted at (0,1)? Thanks in advance.

## Translating a List of Lists with arbitrary nesting...

Hello everyone, I asked yesterday a question in the newbies section. I have found a partial answer which I detail further down but still have some questions and errors. I hope someone can give me a hand. Thanks. The question is more or less the following: Given the parameter k. One declares a nested list like the following: ``` L[n,n,...n[k],m,m,.... m[k] ], ``` where all 'n' and 'm' indexes run in the interval: ``` n[i] =0,1,.. ,d-1 m[i] =0,1,.. ,d-1 ``` QUESTION: How can we translate this list into a square matrix of dimension d^k that has the indexes:

## Index of dae...

Hi I need to find out the index of a dae, is there a maple command that does this for me?

## Nested lists whose number of nestings depend on a ...

Hello everyone, I am trying to create a procedure to translate a matrix into a nested list. (in Maple 10) I actually want to transform the matrix A[i,j] whose indexes are in the interval i,j=1,2,... d^k in a list: L[n1,n2,...,n2k] whose indexes are in the intarval n1,n2,...n2k = 0,1,2...,d. For instance, a transformation of indexes could be: for i from 0 to d do for j from 0 to d do for k from 0 to d do for l from 0 to d do L[i, j, k, l] := DM*([1+(sum(d^(i-1)*n[i], i = 1 .. k)), 1+(sum(d^(i-1-k)*n[i], i = k .. 2*k))]) od: od: od: od: But I would actually like to indtroduce k and d as parameters of the procedure. My problem is then how to say:

## Plotting Removable Discontinuities...

#1 Typically, on plots, removable discontinuities are represented by a small cicle at the discontinuity. How can such an object (i.e. the circle) be generated, preferrably automatically, by Maple at these points. #2 Also, if, for example, the signum function is plotted (i.e. a step discontinuity at x=0). How is an open circle plotted at (0,-1) and a closed circle plotted at (0,1)? Thanks in advance.

## NLPSolve...

Hi.

I am trying to debug a small piece of code I've written.

I have a procedure for solving some quite complex equations. For single points in space.

I have a procedure that:

has some quantities passed to it,
brings in a 2 by 80
Does a for loop for each of the rows in the data, to take the first col value, and puts that along with the vars passed to it into the first procedure. It then works out the difference between the value given by the first procedure and the second col. Squares this and adds it to the total.

I'd like to use the NPLSolve minimize function to minimise this total squared sum of differences, by passing differnt values to the second function.

## Three variable function in plot3d

by: Maple
Being new to Maple I can't figure out how to do a 3d plot of a function w/ 3 variables. I want to be able to also do a space curve to show the constraints. Anyway, here's the function. f := proc (x1, x2) options operator, arrow; (339+(-1)*0.1e-1*x1+(-1)*0.3e-2*x2)*x1+(399+(-1)*0.4e-2*x1+(-1)*0.1e-1*x2)*x2-400000-195*x1-225*x2 end proc I am not able to show it. Thanks, Bill

## getting unevaluated value of a maple variable (in ...

Hello, I have a problem with using JSP on MapleNet platform.

Suppose I have a HTML document with forms (the form calls itself for evaluation) and in that document an input text filed:

<input type="text" name="eq1">

At the beginning of the page I can assign a value in the text field to a maple variable:

<maple:assign param="eq1" variable="eqn1" default="sin(x)" />

but imagine that user fills the textfield with the text:

sum(n,n=1..4)

If I use something like this:

<maple:statement>print(eq1)</maple:statement>

There will be 10 on the output. How can I get an unevaluated input ( sum(n,n=1..4))?

## Solving questions.....

solve(y(x)+3, x) solve(y(x)+3, y) solve(int((x+3)*y(t), t = 0 .. 2) = x^2+1, y)

## 3D trapezoidal interpolation, or another suggestio...

Hi All, I'm wondering if anyone can advise me on ways to perform 3D trapezoidal interpolation in Maple. Using 40 experimental data points View 2213_090606_PleaseHelp.mw on MapleNET or Download 2213_090606_PleaseHelp.mw, my goal is to generate a figure like the one on the right here: That figure was generated manually by a colleague of mine (he drew in the triangles himself), but I'm wondering if Maple can do something like this. Thank you very much for your time!