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

How to import xml files into Maple worksheet

I have found a bunch of maple worksheets on the internet. However, when you open them they are in XML format like the following:
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
0
votes
1 answer

Plotting cosine wave samples in Maple

I'm having trouble with Maple. I have a cosine wave, which I figured out how to plot, but now I have to take samples from that wave and plot those(as dots) over top of the original cosine wave. Here is the question from the assignment: "Produce the…
0
votes
1 answer

Programming a function in Maple

What is the equivalent to a procedural C function in Maple? Maple tells me that a module cannot except parameters.
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
0
votes
2 answers

Procedure for output, list of primes that divide and integer

I am trying to figure out this question. Write a procedure, primeset, whose input is a positive integer n and whose output is the set of all primes p such that p divides n. I have tried the following so far. This is using maple. primeset:=proc #…
Jamde Jam
  • 11
  • 1
  • 6
0
votes
1 answer

invalid input: qMulZeil uses a 6th argument, N, which is missing

do not know how to solve RE1 := sumtoolshyperrecursion; rsolve(RE1); then change to use qMulZeil get error, already has N, got error Hahn := hyperterm([-n,n+a+b-1,-x],[a,-N],1,k); qMulZeil(Hahn,[a,b],n,N,{}); Hahn := hyperterm([-n, n+a+b-1, -x],…
Jo0o0
  • 531
  • 2
  • 18
  • 31
0
votes
1 answer

How to convert back to transfer function in Maple?

using DiffEquation can transform to diff sys, but if convert back to transfer function, How is it? with(DynamicSystems): sys2 := DiffEquation(sqrt(1-a^2)/(1-a/s)); PrintSystem(sys2); de := [Diff(x1(t),t) = a*x1(t)+a*u1(t), y1(t) =…
Jo0o0
  • 531
  • 2
  • 18
  • 31
0
votes
1 answer

Symbolic limit in Maple with assumption

Here I can't find the limit limit(U0*(r^(n+1)-1)/(-1+r), n = infinity) in Maple with condition |r| < 1 which is obviously -U0/(-1+r). How can I tell Maple that abs(r) <1 so it automatically computes the limit. P.S. I tried >assume(r <1);…
argasm
  • 275
  • 3
  • 15
0
votes
1 answer

Rescuing solutions from Maple's solve

I have something like solutions := solve ( {eqn1=0, eqn2=0, eqn3=0, eqn4=0, ... } ) which returns something like: solutions := {Ax = -.2312688085, Ay = -7.770329620, Bx = -19.76873119, ....} How can I access and save each solution? Is "Ax :=…
sports
  • 7,851
  • 14
  • 72
  • 129
0
votes
1 answer

Variable names in extending Maple code generation

I want to extend the Maple CodeGeneration[C] by a handler for the piecewise function (no idea why it is not included). To this end I did: with(CodeGeneration): with(LanguageDefinition): LanguageDefinition:-Define("NewC", extend="C", …
highsciguy
  • 2,569
  • 3
  • 34
  • 59
-1
votes
0 answers

How to avoid this error when doing integration with maple

assume(theta>0); f:=v->1/2*theta*exp(-theta*v); After I define the function f(v), there is an error if it is integrated from q to inifinity: (in sprintf) insufficient parameters for strig format int(f(v)*v,v=q..infinity); But the following code…
EdisonKIng
  • 35
  • 4
-1
votes
1 answer

Implicitplot with three colors in Maple

I am using implicitplot in Maple using this command: implicitplot(diffr, 0. .. 1, 0. .. 1.0, filledregions = true, coloring = [cyan, yellow]); So, when diffr<0 and diffr>0, I received a diagram with cyan and yellow colors respectively. The issue is…
-1
votes
1 answer

how to transform/stretch/shear a plot in maple with plot3d

here is my question. test:=v^3; plot3d(test,u=0..1-v, v=0..1); How can I transform this plot in the right triangle into an equilateral triangle? So that the three edges of the plot are the same length. I wanna, squish it, or shear? any tools i…
Jun Zhou
  • 5
  • 2
-1
votes
1 answer

Maple is left ''evaluating'' when using the solve command on the following equation

I have used the code in the image, when compiling the entire sheet, it stays in "evaluating" for several hours. Is there a way to speed up the process or fix this problem? Maple code:…
DieGo
  • 1
  • 1
-1
votes
1 answer

Maple produces an error when adding positive constraints

I am testing Maple 2021 on a simple system of equations in x,y,z,t: solve({x = 1, a*z^2 = c*t*x, c*x^2 = a*y*z, d*y^2 = b*t*x, 0 < a, 0 < b, 0 < c, 0 < d}, {t, x, y, z}); The results look correct (sorry for the formatting, this is…
f10w
  • 1,524
  • 4
  • 24
  • 39