Items tagged with function function Tagged Items Feed


I'm trying to define a simple forward difference operator Δ to act on a function f(n). I have defined, in a number of ways, Δ(f(n)) = f(n+1) - f(n). This works fine but I want Maple to calculate powers of Δ. e.g Δ2 (f(n))= f(n+2) - 2f(n+1) + f(n). As it stands, Maple returns (f(n+1) - f(n))2 seemingly however I define the functions.
What am I doing wrong? Help much appreciated.


I have a collection of functions defined either in terms of a single variable - call it r - or in terms of (r and) the other functions of r.

To be more specific, there are two free functions B(r) and N(r), a function theta defined in terms of N(r) and B(r) (and their derivatives) and r, and a free function V(theta).

Finally I have a function, call it f, written in terms of B(r) and N(r) (and their derivatives), r, and V(theta) and its derivatives with respect to both theta and r.

In the LinearAlgebra packet, I use the command MatrixFunction to calculate a function with respect to a matrix J as follow:

> restart; with(LinearAlgebra);

> J := Matrix(3, 3, {(1, 1) = 2, (1, 2) = 1, (1, 3) = 0, (2, 1) = 0,
 (2, 2) = 2, (2, 3) = 1, (3, 1) = 0, (3, 2) = 0, (3, 3) = 2});

> M := MatrixFunction(J, ln(1+x), x);

Then I got the answer:

Matrix(3, 3, {(1, 1) = ln(3), (1, 2) = 1/3, (1, 3) = -1/18, (2, 1) = 0, (2, 2) = ln(3...

Hi guys, I'm trying to solve the following function:



>invlaplace (15/(s3 + 6s2 + 15s + 15), s, t)

but I'm not getting a viable answer - can maple answer this?


I've also simplified the above function a bit to: H(s) = 15/[(s + 2.3222)(s2 + 3.6778s + 6.4594)] and then tried to find it's inverse laplace but still don't get an answer.

Using Maple for Functions of a Random Variable


How to make a query is made to F (t) at each iteration of the dsolve command?...

a random force :
nd := Statistics:-Sample(Uniform(-100, 100)):
F:=proc(t) ;   
if not type(evalf(t),'numeric') then      


I have created a for loop in which I call often the same function let's say w(x).

Is it processed faster if I call each time the function, or if I apply the function to another variable, let's say W and call W each time?


Hi i have difficulty to obtain the function of theta(eta) and diff(theta,eta) form the matrix. Every time i have to take the values from the matrix inorder to make the function of theta(eta) and diff(theta(eta),eta) which is very difficult.

Can you please make a code in MAPLE so that i may get the direct fuction of theta(eta) and diff(theta(eta),eta)from the matrix gernerated by MAPLE.


i would like to nknow how can i eval a function wiith a matrix?

> restart; with(ArrayTools); with(LinearAlgebra); with(MTM);
 varhi := 10; 
varlo := 0; 
npar := 2; 
popsize := 9; 
par := (varhi-varlo)*RandomArray((proc (A) local i; 
if A::(rtable[column]) then 
seq(A(i), i = 1 .. NumElems(A)) else
end if 

is there a maple function or does anyone have a proc that will return the number of significant figures given a number? For example, when given 0.38, the proc will return 2, or when given 2.897, the proc will return 4.

I just purchased Maple16 and am working on a problem where I need to solve for variables which are imbedded in non-trivial equations. When I first began using Maple16 to solve for these symolic variables, the solve function worked; however, after about 45 min of using the solve command, on non-trivial equations, it would output nothing and the cursor would move down to the next line. A simple equation such as: f(x)^2-g(x)f(x)=s(x) it will still solve. Has anyone ever experienced...

Hi friends
This is strange for me, but Maple could not solve the below integral. I tried with online version
of Mathematica and it solved for me. The solution is Hypergeometry function. 
> f := ((1/2)*r+1/r)^(1/n);

> int(f, r);
What is the problem?

Hey there,

i have an System in the form below.

I try to plot s over the angle t which is used in the functions (S,DS and DDS) but because maple uses t in the functions (s, v and a) as the time the calculated eigenfrequency doesnt fit to the System.

The eigenfrequency should be omega:=sqrt(c[0]/m[1])=1035 (over 360 degrees) but because of the angle time switch the eigefrequency is 1035 (over 1).

Has someone an idea how i can tell maple that t is an angle in degree? ...

Dear All:

 I have a curve about mosfet  Coss Vs. Vds . the detail math relationship can be found in the following picture: 


 Can anyone fitting this picture by simple math function.

 PS: pls don't considering piecewise function 

I used to work with Matlab and recently I've started to use Maple. In Matlab you can make a function with several commands that does some calculations and calculates one parameter and you can call that function in another function. I need to the same in Maple (i.e. define a function with several commands that calculates a parameter and use the result of that function in another function). Any suggestion?

Hi! I have 4 function. I wanna plot two of them in x=-0.5..0 range; the other two in x=0..0.5 range. How can I display that four function in one plot? Thanks!

First 12 13 14 15 16 17 18 Last Page 14 of 25