MaplePrimes Questions

Hello everyone,

                       I have a par.mw file which contains a list of parameters. Now I have another reac.mw file in which I have to use some of those paramters. My question is what is the way for this without searching par.mw for those specific parametes values and then putting manually in reac.mw.

Following an earlier thread (Collect-And-Sqrt) where a solution using applyrule was proposed (and that solution works), I tried to use applyrule to implement some of the trig half-angle relationships. Immediately I ran into trouble:

Say I want to use the rule

r:=cos(th::algebraic)=2*cos(th/2)^2-1;

so I say

applyrule(r,cos(alpha));

and Maple promptly goes into an...

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 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.

I have come across a missing rule that Syllable length does not take into account.

with(StringTools):

SyllableLength("raked")
                 2
SyllableLength("rakes")
                 2
SyllableLength("baked")
                 2

While looking over some old Maple 9.5 applications I came across two applications requiring the HPC Grid computing toolbox for maple. 

Now that parallel computing is becoming the norm and parallel code tools are included with newer Maple versions.  Has this toolbox just been integrated into Maple?  or are they two totally different entities altogether.  I am sensing the toolbox is to deal with multiple computer systems as the parallel code tools...

First 1648 1649 1650 1651 1652 1653 1654 Last Page 1650 of 2428