524 Reputation

18 Badges

15 years, 55 days

MaplePrimes Activity

These are answers submitted by Alger


By using : after end if and print when you want to display

An example

restart:x:=5:if x>0 then x^2; print(x^3):end if:

restart:eq:=Vo= (1/((1/R2+1/(1.5*10^6))*(1/(1/R2+1/(1.5*10^6))+2.45*10^3-R2)));


Look here


A:=y-><3, y, 11-4*y>: seq(A(y),y=0..10);

Dés fois c'est une mauvaise connection des composants lors du dessin ou une mauvaise installation du logiciel.

Sinon, charge le fichier ici sur mapleprimes pour que nous puissions répondre avec précision.



# 3d plot

plot3d(F(r,theta),theta=0..2*Pi,r=-1..1, coords=cylindrical);

2d plot

polarplot(F(0,theta), theta=0..2*Pi);

sol := dsolve({bcs, sys}, numeric,range=0..e);


Pke := Array(indets(plot([A]), listlist)[], datatype = float[8]);

ned := op([2, 1, 2], Pke); med := op([2, 2, 2], Pke);

fd := fopen("C:/Users/Kamel/Desktop/curve.txt", WRITE):

for i to ned do x := Pke[i, 1]; y := Pke[i, 2]; fprintf(fd, "%9.6f %9.6f    \n", x, y) end do:


In matlab,



A simple way with a rule given by maple help:

restart: with(Student[Calculus1]):

ApproximateInt(f(x), x = a .. b, method = trapezoid, partition = n, output = sum); # to get rule of trapezoid

                          1/2*(b-a)/n*Sum(f(a+i*(b-a)/n)+f(a+(i+1)*(b-a)/n),i = 0 .. n-1)

From above formula, write your procedure.

Without writing a procedure example:

ApproximateInt(sin(x), x = 0 .. 5, method = trapezoid);

Use separation of varibles to get general solution with pdsolve as

pdsolve(pde[1], HINT = X(x)*Y(y), build);

Then using boundary conditions to get constants

You should also search documentation for sturn liouville differential equation which help in determining the constants of general solution of laplace equation 

Thanks for answers.

Actually, I'm saving a plot in Array and then write it into a txt or data file with fprintf and for.

Pkr := Array(indets(plot(x^2,x=-1..1), listlist)[], datatype = float[8]); #this can be done with getdata

From Matlab, I load a txt file and plot it again with Matlab to compare. It is not simple.

Matlab figures have formats 'curve.fig'

I will try ImageTools package.

define A as function as:

A := (r,m)->r*sin(m);
 Aval := proc (r, m)
 end proc;
 Aval(1, Pi);


In your example, A is an expression

If I understand, you can do




You should connect the constant current generator to ground

First solution:




There are two solutions:



1 2 3 4 5 6 7 Last Page 1 of 9