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
-1
votes
1 answer

Error, too many levels of recursion | Maple

I am writing a program that solves a system of equations using the Gauss method, but I get an error related to recursion, but there is no recursion in my code, how can I fix it? n := 12; k := 2; A := Matrix([[1, 2, 1], [4, 5, 6], [7, 8, n]]); B :=…
Utis
  • 21
  • 5
-1
votes
1 answer

Error (in J) Invalid input: diff recieved .5, which is not valid for 2nd arg

was doing a code in maple for non-linear systems using newtons I struggled a bit with this so my friend showed me his solution. I did exactly the same and I keep getting this error. I apologize for the long code, but I figured I'd add everything…
Jos
  • 127
  • 6
-1
votes
2 answers

Closed form solution for affine transformation matrix between 2 set of 2D points

Given affine transform equation with 6 unknown variables a_11, a_12, a_21, a_22, b_1, b_2 and corresponding 3 pairs of points x1, y1, x2, y2, x3, y3, u1, v1, u2, v2, u3, v3: u = a_11 * x + a_12 * y + b_1 v = a_21 * x + a_22 * y + b_2 Is it possible…
mrgloom
  • 20,061
  • 36
  • 171
  • 301
-1
votes
1 answer

Why definite integral of undefined function returns unevaluated?

Why can Maple yield the result of int(q(t)*diff(q(t),t),t) = (q(t)^2)/2 (indefinite integral) but with int(q(t)*diff(q(t),t),t=0..t) (definite integral) it returns unevaluated? I expect the result of the definite integral to be (q(t)^2 - q(0)^2)/2.
brunoleos
  • 1
  • 1
-1
votes
1 answer

maple code output does not display on the screen

I've just downloaded the Maple 2020 trial version and I have zero experience on Maple programming. My problem is: when I do simple calculations such as 3+5 or 2*3, the result displays on the screen but, for other functions such as …
esra
  • 201
  • 2
  • 8
-1
votes
1 answer

How to convert maple expression into python code?

Is there a better way to convert a Maple expression to Python than the provided convert function in Maple (which seems to not work at all) convert(9 + x, python) Error, (in convert/python) cannot convert to python
Peter Cotton
  • 1,671
  • 14
  • 17
-1
votes
1 answer

Exporting Matrices in Mathematica to Maple 2019

I am trying to export a matrix from Mathematica into Maple. I have tried using the following calling sequence in Maple to no avail with(MmaTranslator): MmaToMaple(); After which I simply select the notebook that I need and am able to translate it…
-1
votes
1 answer

Why is MAPLE not evaluating integrals and derivative inside my equations?

I'm using MAPLE 2019 and trying to insert different equations related with each other in order to evaluate one of them by insertions, integral and derivative calulations, till I get a compact short form where only independent variables appear. Here…
Marvin
  • 37
  • 5
-1
votes
1 answer

How to insert page break through the program in maple?

How should we insert a page break via the code itself in maple program ? Not insert page break? of menu As I want to insert the page break as the code runs and with other outputs. In maple code.
sriram
  • 5
  • 6
-1
votes
1 answer

A procedure that, given n > 2 returns the number of all subsets of {2, . . . , n} of size 3

I'm new to using Maple and am trying to create the procedure above. My code so far: g:=proc(n) local x; local setG; local setG2; for x from 1 to n do setG:={seq(x+1,x=1..n-1)}; setG2:=choose(setG,3); nops(setG2); end do; end proc;…
-1
votes
1 answer

How to solve systems of equations using LU method with Maple?

I'm trying to use LU method to solve Ax=B, and when I do start doing so, using: (P, L, U := LUDecomposition(A)) to create my three different matrices (P, L, U) I get the error Error, cannot split rhs for multiple assignment which doesn't make…
Teresa
  • 1
-1
votes
1 answer

Maple - subscripted variable T_0 isn't evaluated

I have a subscripted variable T_0 in Maple with a value assigned to it T_0 := 1. When I call the variable by entering T_0 in math mode, T_0 is displayed instead of 1. This doesn't happed for non-subscripted variables. Why are subscripted variables…
easytarget
  • 945
  • 2
  • 13
  • 35
-1
votes
1 answer

plotting solid of revolution contained between

I want to plot cylinder contained between planes z=x+1/2 and z= -x-1/2.This cylinder should have radius equal to one. I tried to find something in maple help. But my work was done at this moment : enter image description here So as you see, i get…
Louis
  • 113
  • 3
-1
votes
1 answer

How can I solve BVP for unknown boundary?

I have simple BVP for which one of boundaries is given as "L". My attempts to solve it gives various errors. One of the last attempts clearly shows that Maple "thinks" that L is rather another variable than unknown constant. de := diff(y(x),…
Kelly Shepphard
  • 123
  • 1
  • 6
-1
votes
1 answer

How to rewrite Maple code to Matlab, functions fsolve() and solve()?

I have an ordinary differential equation (ODE) -- Van Der Pol oscillator Problem: y''-2a (1-y^2)y'+y=0, y(0)=0, y'(0)=0.5, x in [0,10], a =0.025. The ODE was solved on Maple Software with the fsolve() function. I need to rewrite the code on Matlab…
Nick
  • 1,086
  • 7
  • 21