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

Why won't Maple evaluate this integral?

restart; assume(alph>0); assume(alph,real); f_exp:=exp(-alph*r^2); ff_deriv:=simplify(r^2*f_exp^2); ff:=simplify(int(ff_deriv,r=0..infinity)); It seems to understand what I'm trying to integrate but when I try and find ff it comes up with an awful…
powder-blue
  • 5
  • 2
  • 5
0
votes
1 answer

How to substitute a function f(x) in an expression involving D(f)(x) in Maple?

In Maple, if we want to replace the function f(x) with f(x)+a*f1(x) in the following expression, we can do expr:=f(x)+diff(f(x),x); subs(f(x)=f(x)+a*f1(x),expr); However, if we want to make the same substitution in this…
renphysics
  • 269
  • 1
  • 3
  • 7
0
votes
1 answer

Maple plot of algebraic expression

If I write in Maple AC := Amp*sin(2*Pi/T*t); then I am able to see the expression in algebraic way. But I can't plot it because T is unset (plotting against t, of course). If I write T := 100e-6; AC := Amp*sin(2*Pi/T*t); plot(AC,…
Andrew
  • 201
  • 1
  • 3
  • 10
0
votes
1 answer

Maple 16 : missing operator or ';'

First of all, sorry if I have a bad english : i'm french. Here's my problem : I have the following code : #Méthode de l'interpolation de Hermite hermite:=proc(x,a,b,n,f) local i,q,p,pl1,p2,dq,dp1,df,pl2; #pl = polynôme de lagrange, p =…
YohjiNakamoto
  • 373
  • 2
  • 12
0
votes
1 answer

How to create map (std::map) like structure in maple?

I need a container with API like: addKeyValuePair(containerRef, [key, value]) searchByKey(containerRef, key) #that would return NULL or `value` How to create such thing in Maple (15)?
myWallJSON
  • 9,110
  • 22
  • 78
  • 149
0
votes
1 answer

In maple how to select one solution manually?

After some complicated integration maple gives a list of solutions defined on different domains of variables. I need to select just one of them. Domains are so complicated that assuming is not helpful: maple runs out of memory trying to figure out…
Misha
  • 562
  • 6
  • 21
0
votes
2 answers

Why this program can't work?

I am asked to verify if this function is decreasing or increasing: f(x)=sqrt(2+5x) I am using Maple 15 right now in my class and writing the following commands can't solve the problem. f := x-> sqrt(2+5*x): solve(diff(f(x), x) > 0, x); After…
Mikasa
  • 109
  • 1
  • 1
  • 5
0
votes
1 answer

I'm looking for some assistance with a Maple procedure

I'm trying to write a procedure in maple to that will approximate a function f as a Chebyshev polynomial of degree n on the interval[-1..1] without using any built-in Maple functions relating to Chebyshev…
Stefan
  • 193
  • 1
  • 2
  • 12
0
votes
1 answer

Integral by parts in Maple

I know that under "with(student)" package, I can solve some integral by parts. I applied this to $int(x*sin(x),x)$ for example and got my answer but, couldn't use for $int(exp(x)*sin(x),x)$ . I ask if this rule command packaged under with(student)…
Mikasa
  • 109
  • 1
  • 1
  • 5
0
votes
1 answer

Need a Maple program,

I am New in Maple and have heard that, this maths software is powerful in symbolic calculation. S assume that we have a set of elements like A:={a, aab, b, aba, abbb, abab...} such that #A=20 and moreover, we know that some of these elements…
Mikasa
  • 109
  • 1
  • 1
  • 5
0
votes
1 answer

Maple - converting 1D lists into 2D arrays

This is a question in Maple. I understand in terms of java that I want a count and an increment but my logic doesn't convert as simply to maple code. I have an very long list of numbers LIST (196) that I wish to turn into a 14x14 Array but using the…
0
votes
1 answer

Error attempting to use initial conditions

I'm doing a quick problem in Maple with a differential equation and a few initial conditions, but I'm getting an error message that I can't seem to understand given the context. Can anyone quickly elaborate on what's going on here? How do I fix…
weskpga
  • 2,017
  • 7
  • 29
  • 43
0
votes
2 answers

Why won't Maple 15 graph modulo?

I am trying to graph the function f(x) = x mod 7 The graph should look like a bunch of spiked lines. Instead it is graphing a straight line f(x) = x What am I doing wrong? This seems so basic. Is Maple Bugged?
john k
  • 6,268
  • 4
  • 55
  • 59
0
votes
1 answer

How to find a second number by having first number and distance between these 2 numbers

I am so new to maple and I dont know what to do exactly! I have 10 numbers, for finding k nearest number to any of this number I need to keep distances between all numbers and sort them, based on these distances I can get which x is the nearest x to…
Adrakadabra
  • 591
  • 2
  • 12
  • 23
0
votes
1 answer

Drawing directed planar graph in Maple

I am trying to plot a directed planar graph in Maple but the command only accepts undirected graphs. The documentation does not mention this restriction. Is there a way to plot them in maple? A small working…
Origin
  • 2,009
  • 5
  • 19
  • 19