Questions tagged [maple]

Programming questions related to the computer algebra system Maple.

Maple is an interactive engineering and scientific programming environment, as well as a high level programming language, from Maplesoft, Inc. It is also the computational engine behind MapleSim.

The following links can be useful:

636 questions
3
votes
1 answer

Stop execution when RAM is filled (i.e. avoid writing to Disk)

I have this problem: I run some large calculations before going to sleep (or work). When I return sometimes RAM is already filled and the program starts writing to Disk, which is a problem since then computer becomes almost non responsive, also the…
Robai
  • 197
  • 9
3
votes
3 answers

Dealing with more than one Optional parameter

I have a procedure f:=proc(x,option1,option2) ... end proc; In my case option1 is always an integer and option2 is either a list or something else (including integer). Both options are optional, so these commands work as…
Robai
  • 197
  • 9
3
votes
2 answers

Maple Error: final value in for loop must be numeric or character

I have this simple procedure in Maple that I want to plot. test:=proc(n) local i,t; for i from 1 to n do t:=1; od; return t; end: The procedure itself works fine. > test(19) 1 When I…
Rolf
  • 84
  • 6
3
votes
2 answers

In Maple, How to divide the numbers of an array (list or vector or matrix) with the numbers of an array of equal number of rows and columns?

In Maple, How to divide the number of data1 by the number of data2? data1:=[1, 2, 3]; data2:=[3, 4, 5]; in order to get something like this: data3:=[0.333, 0.5, 0.6];
Time Step
  • 45
  • 4
3
votes
1 answer

iteration using the secant method with a tolerance

I am trying to find out how many iterations it takes when I run a secant iteration up to a certain tolerance in maple. However, I am receiving an error code, so if someone could point out where the mistake is in my code, I would really appreciate…
3
votes
1 answer

size of a set in Maple

Sorry for my dumb question, but how can I get the size of a set (the max index number)? Is there a built in function, or i have to count it in a loop?
user408141
3
votes
1 answer

Nested loop Maple 2016

restart; l: A:=242.5: E:=55000: alpha:=2.3*10^(-5): G:=6.57: upsilon[0]:=25: H[0]:=5000: upsilon[x]: equ := H[x]^2*(H[x]-H[0]+E*A*G^2*l^2/(24*H[0]^2)+E*A*alpha*(upsilon[x]-upsilon[0])) = (1/24)*G^2*l^2*E*A; for l from 20 by 5 to 60 do for…
3
votes
1 answer

Maple incorrect calculation with ShowSolution function

Maple solves the following problem incorrectly when using ShowSolution function which is in student.calculus1 package. It's works fine when the power of x variable is odd or when I write sin(n*x) but when I wrote x^(even number)cos(nx) it's…
3
votes
1 answer

Maple - Substituting into equation

I am having difficulty setting up a function where I substitute x1[1] and x2[1] into it. Any help would be greatly appreciated. My code is: restart; with(LinearAlgebra); x1[1] := -2+1606*alpha; x2[1] := 2+400*alpha; f := proc (alpha) options…
Student201
  • 143
  • 8
3
votes
0 answers

error when uploading a package in maple

I want to upload a package called "APECS" on maple , but when i do it, it sends me an error:" Error, (in with) package numtheory does not export isolve" and "Error, unable to read biraF or legen or f or cat " but when i upolad them , the problem is…
user371596
  • 75
  • 3
3
votes
1 answer

Polynomial regression in Maple

In Maple I have two lists A:=[seq(i, i=1..10)]; B:=[10, 25, 43, 63, 83, 92, 99, 101, 101, 96]; Is it possible to do polynomial or power regression in Maple? I want to fit a trend line as a 3rd order polynomium where each point is (A[i], B[i]).
Jamgreen
  • 10,329
  • 29
  • 113
  • 224
3
votes
3 answers

Factoring matrices into elementary matrices

Is there a package in MATLAB, Maple or Mathematica which does this?
3
votes
1 answer

Maple messed up my MuPAD Matlab integration

I have installed a trial version of Maple recently, it has expired and I've already uninstalled it. But today, for my surprise, Matlab symbolic tool is not working properly anymore, I was able to find using google that Maple changes the symbolic…
Pedro77
  • 5,176
  • 7
  • 61
  • 91
3
votes
1 answer

Maple: RNG is not random

i was "finding Pi" with Monte Carlo Method, but the answer was incorrect. The oryginal code was: RandomTools[MersenneTwister]: with(Statistics): tries := 10000: s := 0; for i to tries do if GenerateFloat()^2+GenerateFloat()^2 < 1 then s :=…
Z-DNA
  • 133
  • 1
  • 10
3
votes
1 answer

how to export expression to image file such that size is adjusted to expression size automatically?

I am using this original code posted by Maple expert Acer sometime ago on usenet, which allows one to export an expression to image file. It works well, but I am not able to figure how to modify it to solve this problem: One has to tell the code the…
Nasser
  • 12,849
  • 6
  • 52
  • 104
1
2
3
42 43