Hi,
I am having a problem running nested loops on Mac.
The task is:
Let a,b,c be logical statements, each of which can take the value true or false. I need to write a Maple program which shows the value (true or false) of the statement:
(a and not(b)) or (b and not(c)).
the program is:
for a in [true, false] do
for b in [true, false] do
for c in [true, false] do
print(a, b, c, evalb((a and not(b)) or (b or not c))));
end do;
end do;
end do;
When I run is in Windows, the output is:
true, true, true, true
true, true, false, true
true, false, true, true
true, false, false, true

Hello everybody,
I guess this is a pretty basic question but couldn't find how to do it ...
So I have some functions that I would like to plot with n as a variable and putting some fix values for the other parameters.
So for instance I have below functions :
[IMG]http://img.photobucket.com/albums/v200/ArthurHff/maple.jpg[/IMG]
And I would like to plot them on the same diagram with n ranging from 1 to 20, C=100, e=1, and h=2.8
How do I do that ? :?

Hi
I want to create different functions using a loop.
> for n from 1 to 3 do f:=x^n end do:
> plot(f,x);
Now i see 3 different graphs, but I'd really like to have them all 3 in one.
Is this possible?
Koen

Hello Maple Users,
Excuse me if this appears twice (computer illiterate). I am using Maple 11 in the standard worksheet interface in text (not document) mode, and wish to insert graphs (previously plotted) into the text region, then click below the graph and continue in text mode; it is important the flow of argument with text, graph, text, is maintained. In the Classic worksheet this can be done, but not, it appears, in the standard worksheet. Can anyone help? Thank you.
Sincerely,
A. Kirfoot.

I read and re-read the manual on using spell check but can not get it to work. For example, I open maple to a fresh worksheet, and at the prompt type in now is the qoittja. Then I go to tools and select spell chek. Instantly I get a small popup message that says spell check complete but it didn't find the obvious mistake (quoittja is not a word). What in the world is going on here? How do I use spell check? Could you offer an example please? Thanks.

I have written a loop that should create an array, but because I am solving a polynomial both solutions are given in the array. Is there a way to just select out the positive root so that I can plot with this array later? Any help would be greatly appreciated.
Nick

Hello, I am working on a problem that I cannot solve for several days. Any help is welcomed :)
I have a differential equation
y''(x) = a * y'(x) + b * y(x) + c
I have two vectors X = (x1, ..., xn) and Z = (z1, ..., zn)
y(x1) = z1
y(xm)=zm
I have to solve the problem by determining the 'a', 'b' and 'c' by using least square method.
I am trying to use dsolve to get a solution of the differential equation and then the Optimization package to use the least square method, but I cannot get it right.
Thank you very much for any help.

How can I create a 3D images in Maple 11 without entering any expression?Is it by using the new drawing tools?

hi...
can any one give me general source code for random generator?
i need to use the source code for my project...
thank you..

Is it possible to produce a file of something like tab delineated data via a 2D plot object? Basically all I want to do is create a data file using the points stored in the plot structure for use in a METAPOST file, and I haven't been able to come up with anything. Any help would be greatly appreciated. Thanks a lot.
Keenan

I'm working on a problem for class that requires me to use dsolve but, I'm getting a generic error when I try to use dsolve the exact same way they use it in the example.
my code is:
A:=matrix([[-1,0],[1,-2]]);
B:=matrix(2,1,[1,-1]);
ics:=x(0)=matrix(2,1,[1,0]);
equ:=diff(x(t),t)=A*x(t)+B;
dsolve({equ,ics},{x(t)});
Error, (in solve) invalid arguments
I don't know what's wrong with this since its almost exactly like the example they give for dsolve.

My class was given this question as a final homework but we can't figure out how to solve it. We have talked to the professor on multiple occasions but he will not provide any help. If anyone knows how to solve this using maple, please help. The question is below...
solve x(t) = Ax(t)+B where
B=[1
-1]
A=[-1 0
1 2]
and x(0) = (1 0)
Sorry for the matrix formatting but, I don't know how to use the math equations here.

I downloaded the files for this app but I did not see any instructions on installing this. Can anyone help me install this library?
Thanks

Maple Professionals:
I wish to prgramm a greedy heuristic in maple and would be more than grateful, if someone could help me, since I am no expert in programming.
The problem is a simple stocking problem. There are two parts I wish to stock in my warehouse. I know their demand, delivery time and item cost. From the demand and the delivery time I can calculate the expected backorders given a specified number of units in stock based on a poisson distribution.
In the greedy heuristic step by step I increase the stock of all items by 1 and then calculate the reduction in expected backorders divided by the item cost (some kind of "bang per buck"). I then compare the reduction over all items and increase the stock by one for the item with the highest reduction.

Hi ! Sorry for my english... I'm finding roots of polynoms like X²+ aX + b, a and b can be very complicated, with a lot of square roots inside. When maple gimme the roots, or when i assign some variables, it try to simplifie the output, creating "subsections" named %1 or %2 etc... For example : Or How can i get the output without theses "simplifications" ?