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
2 answers

What is the correct way to select real solutions?

Suppose one needs to select the real solutions after solving some equation. Is this the correct and optimal way to do it, or is there a better one? restart; mu := 3.986*10^5; T:= 8*60*60: eq := T = 2*Pi*sqrt(a^3/mu): sol := …
Nasser
  • 12,849
  • 6
  • 52
  • 104
3
votes
4 answers

Which one of C# and Java is more easy and fast when interfacing with Statistics/Simulation Softwares?

First, I know almost nothing about the interfacing of this type and this is the first time, I'm trying it out. I am looking to use one of the Statistics/Simulation software either Maple or Mathematica or R for calculations and use C#/Java to handle…
Elister
  • 1,576
  • 2
  • 10
  • 14
3
votes
3 answers

Grabbing the output of MAPLE via Python

How would I use the subprocess module in Python to start a command line instance of MAPLE to feed and return output to the main code? For example I'd like: X = '1+1;' print MAPLE(X) To return the value of "2". The best I've seen is a SAGE wrapper…
Hooked
  • 84,485
  • 43
  • 192
  • 261
3
votes
4 answers

Checking symbolic computations

I have to do some computations where long formulae, mainly involving derivatives of polynomials with variable coefficients come up. Unfortunately the results I obtain from engines like Mathematica or Maple are represented in a way that is very…
3
votes
1 answer

Maple - How to make a loop of 4 variables suitable for an array

Say I have two lists: M=(0,1,2,3) and N=(0,2,4,6) And I wish to put into a list all the combinations of Mi,Mj,Ns,Nt (where i,j,s,t are subscripts so for i=1 M=0, i=2 M=1 etc.) such that: C = a^(Mi+Mj) + b^(Ns+Nj) First in the list would…
2
votes
1 answer

Get all cubic roots from an expression

I need to extract all cubic roots from an expression (without manual selection). For example, it's easy to extract all quadratic roots this way: f:=a-sqrt(a^2+b+(a+b^2)^(1/3))+(a-b^(1/3))^(1/3); indets(f,sqrt); The result But I'm not sure how to…
2
votes
0 answers

Maple (2023) ShowSolution does not compute the indeterminate limit infinity minus infinity in some cases

In the following I show two functions f and g where ShowSolution(Limit(..)) works for f but not for g. Any idea why? with(Student[Calculus1]); f := x^2 + x: limit(f, x = -infinity); infinity ShowSolution(Limit(f, x = -infinity), maxsteps = 100); //…
infcs.ltd
  • 21
  • 2
2
votes
1 answer

How to sort a list of vectors in alphabetical order in maple

Given a list of vectors, I want to sort these vectors in a certain (alphabetic like) order. For example, the vectors are [5/4, 5/2, 1/3, 2], [1, 5/2, 3/5, 1.5], [5/4, 5/4, 3/5, 1.5] and [5/4, 5/2, 1/4, 2]. We would like to sort them as [1, 5/2, 3/5,…
panmd
  • 21
  • 2
2
votes
2 answers

Is there a way to add multiple conditions while doing the product in Maple?

Note: I've searched for the answer to this already but I can't find what I need. I may have overlooked something or maybe this is referred to in a different way. I'll delete this if someone points out that it is a duplicate, please let me…
Rahul P
  • 2,493
  • 2
  • 17
  • 31
2
votes
1 answer

Is it possible to plot from inside a procedure in Maple?

I was hoping the procedure below would create a plot. It does not xsquared := proc() plot(x^2); return ; end proc xsquared() Is there a reason, and is there a workaround for automating plot creation?
evianpring
  • 3,316
  • 1
  • 25
  • 54
2
votes
1 answer

Check if indexed variable has a value assigned somewhere

Part 1 If we have this [> restart; a[5]:=23: a[7]:=41: then [> about(a); whattype(a); a: nothing known about this object symbol but [> print(a); table([5 = 23, 7 = 41]) and [> convert(a,list); …
Robai
  • 197
  • 9
2
votes
2 answers

How to verify solutions for Logic functions having ampersand symbol (used in Logic package)

For example, if we have a logic function F = (x1 or x2) and (not x2) then we can verify a solution [x1=true, x2=false] of equation F = true this way: [> F:=(x1 or x2) and (not x2): subs({x1=true,x2=false},F); …
Robai
  • 197
  • 9
2
votes
1 answer

Maple basic: transform the maple results

I was running diff(abs(2*x + 5), x), maple gives me an answer of 2*abs(1, 2*x + 5) I actually dont know what that means. But I know the answer is (4*x + 10)/abs(2*x + 5). How could I transform the answer from 2*abs(1, 2*x + 5) to (4*x + 10)/abs(2*x…
user9508949
2
votes
2 answers

How to setup amazon to use Grid computing with maple software that is in existing EC2?

I have one maple license in EC2 How to setup amazon to use Grid computing with maple software that is in existing EC2? I am not sure Grid computing whether is supercomputer. I just have a for loop program to run grid computing that would like to run…
Ho Yeung Lee
  • 453
  • 1
  • 3
  • 14
2
votes
2 answers

How to convert a number into a string in Maple?

I want to have something like this code from Python num=3 res=str(num) but in Maple. I couldn't find any appropriate constructors for this. Are there any?
83demon
  • 47
  • 5
1 2
3
42 43