Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

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 ;)

 

 

 

How to successfully deploy Matlab function [B, IX] = sort (A, ...)
IX is a permutation vector of the corresponding column of A

M := Matrix(6, 3, [2, 3, 3, 5, 7, 8, 12, 5, 9, -3, 4.1, 7, 7, 7, -3, 9, 3, 8]):
M;
L := <(seq(op(convert(sort(M[() .. (), j]), list)), j = 1 .. op(M)[2]))>;
L := ArrayTools[Alias](L, [op(M)[1 .. 2]], Fortran_order);
P := Matrix(op(M)[1 .. 2],  (i, j)-> ListTools[Search](L[i, j], M[() .. (), j]));
# from Matlab

I had MAPLE 12 on WINDOWS VISTA machine and the harddrive crashed.  Now I have a newer WINDOWS 7 machine & would lke to put my individually licensed MAPLE 12 on this machine.  I do not have a DVD because the original installation occurred via MAPLESOFT website if I recall correctly.

Can anyone direct me as to what I need to do?

 

THANKS

Hi,

I'm having some problems with the generation of the typical stiffness matrices seen in FEA formulations. I have got an elementary matrix that is looped through the entire stiffness matrix to generate it. As there is juxtaposition between the elementary matrices, there is some recursive assignment involved that I can't handle properly. Here is the code for a 6x6 elementary matrix with a 3x3 juxtaposition. n is the nombre of recursions needed to fill the stiffness matrix. M is the elementary matrix

First 1556 1557 1558 1559 1560 1561 1562 Last Page 1558 of 2262