Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

In some cases if not always, "fi" can be used to close an "if" clause, instead of "end if" and "od" can be used to close a "do" clause, instead of "end do".

These short forms are intuitive and can save a lot of space; for instance say you have 5 "do" clauses to be closed, it is a lot shorter to type "od:od:od:od:od:" than  "end do:end do:end do:end do:end do:"

Yet for some reason it does not seem to be a recommended short form. The Advaced Programming Guide (dated 2008...

HI folks ! I'm new to this forum and I have a problem with the Euler Method to solve equations.

In the method, there are 3 variables, x, v and t. I need to save the result from every step from the method of the 3 variables and then create a matrix with 3 columns (one for each variable) and any amount of lines.
Is is the best way to do it ? I'm having a lot of trouble at storing data into vectors. 

To clarify my problem, here is my program:

Based on past releases, after Dec 31 any hope of a 16.03 update becomes very very slim. 

You see, any last issued updates (back to Maple 11) have all happened before the turn of the new year.  And should we make it into the new year without one last update then we can almost be certain that Maplesofts focus is all on the next major release, Maple 17.

There is always hope, that a few more loose ends can be tied up before the next major release, however...

Hello,

 

I am working on a project where Maple's output is fed to another software which requires all it's input in specific format. So, I want to print this expression,say

y=+2.*x+.2, in this software, but it takes input as

y=2*x+0.2, So now I have to change

+2. to 2.0 or 2 (if it's starting of the equation)

-2. to -2.0

.2 to 0.2

 

Is there any way to convert all the numbers in the equation to...

Hi all,

 

Toy example

myproc:=proc(a,b,c) a*b*c; end proc;

myproc(1,3,4);

myproc(2,3,4);

myproc(5,2,1);


is there a way to input all these together? say myproc({1,3,4},{2,3,4},{5,2,1});

and then get an ouput in the end (list, Vector, array or whatever sensible format)

I remember seeing an example of doing that somewhere, but couldnt find it again...

 

Thanks!

 

Casper

Hi all,

Is there an easy way to find first and last entries of a vector which is non zero?

 

fa:=proc(x)
local i;
while x[i]<>1 do
i:=i+1;
end do;
end proc;

 

fa(<1|0|0|1|0|0>);

 

That does not work. I have also tried to use

while 'x'[i]<>1 do

 

keeps getting error saying: Error, (in fa) bad index into Vector

 

What's the best way to get result 1 (in this case...

Hi,

I know all the necessary computational steps to create a Linear Regression line, but I am having trouble making it into a succient procedure. I have to make a 3 procedures for three methods, minimizing Vertical distance, Horizontal, and lastly, Diagonal. 

I uploaded an example of my work to compute a linear regression line, minizming vertical distance. I have all the necessary steps for horizontal and diaganol as well. 

 

 

Is it possible to define a variable and using a superscribt in the variable name?

Another question: Is it possible to define a variable with using a subcribt of 2 thetas besides each other?

if i write sigma[rr]:= it has no problem, but if i write sigma[thetatheta] then it only writes thetatheta as the subscribt and not the 2 symbols besides each other. Is there a way to fix this?

see picture for clarification:

My mathematics computation relies on a loop.

That loop is heavy and takes very long time to finish.

I try to split some undetermined functions outside the loop so that the work inside the loop will be easier.

I don't know how to use proc or module. Is there any tutorial that can help me as a beginner on this part?

Basically i need maple algorithm that enables user to call a user-defined function from another function.

And also how can...

I would like to be able to look at the maple video tutorials with the MaplePlayer on the Ipad. Hope that this is made possible.

I have to write a procedure that finds four positve numbers with a two decimail digits such that their sum and product is equal to 7.11. i.e a+b+c+d=a*c*b*d=7.11

I know i have to use loops but I have no idea how to start

please help , my deadline is near

Hi

I am trying to model the change in lifetime versus mass and have the formula;

> T := 6.58*10^38*10^(-25)/x^3;

> plot(T, x = 10^10, 10^9, 10^8, 10^7, 10^6, 10^5, 10^4, 10^3, 10^2, 10, 10^0);
Error, (in plot) unexpected options: [x = 10000000000, 1000000000, 100000000, 10000000, 1000000, 100000, 10000, 1000, 100, 10, 1]
I want to plot for values between x=10^-11 and 0, i have this error and i am not sure why.

mech_problem.mw

Hi

I solve a mechanical exercise but i had a problem.

I know M (mass) and S (stifness) matrices (6x6).

I want to solve the (λ2M+S)v=0  eigenvalue problem, where λ are the eigenvalues and

Hi, this  must have been asked numerous time, but I cannot find it in MaplePrimes:

How does one "collect" sqrt terms? collect(expression,sqrt) does not work because sqrt is actually represented as ^(1/2) in  Maple. collect on '^' does not work either... ??

Mac Dude

 

Hey guys..

I need some help on determining the correlation coefficient between my data points for an Influenza epidemic and the SIR model, with my estimated parameters Beta and Alpha. The initial conditions for the equations are defined at the beginning of my worksheet:

SIR_model.mw

Hope someone can help me ;)

 

 

 

First 1518 1519 1520 1521 1522 1523 1524 Last Page 1520 of 2224