MaplePrimes Questions

Hey, everyone!

Given the following equation: 

f:=x->x*exp(-x^2); 

 I need to plot the graph when x= 0.4.. How can I do that?

I managed to plot f(x) just fine, just not sure how to plot Newton'sMethod at x= 0.4.

Thanks in advance! :)

 

 

ex4_lista_CSTR.mw

Variáveis

 

``

restart;

F[A][0] := 43, 4;

43, 4

 

802, 8

 

0

 

71, 87

(1.1)

C[P][A] := 35;

35

 

18

 

46

 

19, 5

(1.2)

deltaC[P] := -C[P][A]-C[P][B]+C[P][C];

-7

(1.3)

V := 40, 1

40, 1

(1.4)

v[A][0] := 46, 62;

46, 62

 

46, 62

 

233, 1

(1.5)

v[0] := v[A][0]+v[M][0]+v[B][0];

325, 125

(1.6)

H[A][ref] := -66600;

-66600

 

-123000

 

-226000

(1.7)

deltaH[R][ref] := -H[A][ref]-H[B][ref]+H[C][ref];

-36400

(1.8)

deltaH[R] := deltaH[R][ref]+deltaC[P]*(T-T[ref]);

-36400-7*T+7*T[ref]

(1.9)

``

k := 16, 96*10^12*exp(-32400/(R_*T));

16, 96000000000000*exp(-32400/(R_*T))

(1.10)

R_ := 1, 987;

1, 987

(1.11)

C[A][0] := F[A][0]/v[0];

(43, 4)/(325, 125)

(1.12)

T[0] := 75;

75

(1.13)

T[ref] := 68;

68

(1.14)

 

Balanço Molar

 

r[A] := -k*C[A][0]*(1-X[MA](T));

-(16, 96000000000000*exp(-32400/((1, 987)*T)))*(43, 4)*(1-X[MA](T))/(325, 125)

(2.1)

``

EQ1 := X[MA](T) = V*k/(V*k+v[0]);

X[MA](T) = (40, 1)*(16, 96000000000000*exp(-32400/((1, 987)*T)))/((40, 1)*(16, 96000000000000*exp(-32400/((1, 987)*T)))+(325, 125))

(2.2)

``

Balanço de Energia

 

r[A] := -k*C[A][0]*(1-X[EA](T));

-(16, 96000000000000*exp(-32400/((1, 987)*T)))*(43, 4)*(1-X[EA](T))/(325, 125)

(3.1)

``

EQ2 := X[EA](T) = 1-(C[P][A]*F[A][0]+C[P][B]*F[B][0]+C[P][C]*F[C][0])*(T-T[0])/(deltaH[R]*V*k*C[A][0]);

X[EA](T) = 1-(15941, 284)*(T-75)*(325, 125)/((-35924-7*T)*(40, 1)*(16, 96000000000000*exp(-32400/((1, 987)*T)))*(43, 4))

(3.2)

``

``



Download ex4_lista_CSTR.mw

 

 

 

 

E     Average
number
Fermi-
Dirac
 0      1.8
 1      1.6
 2      1.2
 3      0.8
 4      0.4
 5      0.2
 6      0
 7      0
 8      0
 9      0

 

E=0   f(E)=1.8  = 1/A+1    A=-0.444    kt is unknown. Hence I try many numbers.

This is my code

plot(1/(-0.444*exp(x/3)+1),x=0..9);

 

I have a problem.  A is negative. The denominator would be zero.

This is the theory.

http://hyperphysics.phy-astr.gsu.edu/hbase/quantum/disfdx.html#c2

If I type in a function in 2D Math, the text disappears. for example, if I type fsolve(), until fsolve, the text appears, but after i type (, the whole text disappears. How should I solve this? Thanks.

Hello,

I am very new to programming and currently i am taking a course in numerical methods which allows me to get some exercise programming mathematical functions using maple. I am trying to plot a graph and it gives me an error. If anyone can guide me i would really appreciate it.

Also if there are any helpful advise for me to start using this language, it would be a big help.

 

Thank you

Just got Maple 18 on academic license. I've used Maple 15, 16 and 17 before this.

It wont write simple math symbols as + - * and := 

I have tried both document- and worksheet, reinstalling and so on...

 

What is the problem?

Thanks

I am running under Windows 7 and using the following command in a MAPLE .mw file to convert a group of .mw files to WWW format:

MapleWWWW:-Install("S:/MRBwork/Phd/SOFTWARE/MAPLE/R4&5/Conversions to MAPLE WWW/Input/","S:/MRBwork/Phd/SOFTWARE/MAPLE/R4&5/Conversions to MAPLE WWW/Output/","http://digi-area.com/light/MapleWWW/js/maple-www.js");
Error: FileTools:-Text:-ReadFile("file or directory does not exist: %1")
Error: FileTools:-Text:-ReadFile("file or directory does not exist: %1")

As you can see I am getting an error return. I believe I have placed the module in the right directory. As a test I ran the following:

FileTools[IsReadable]("S:/MRBwork/Phd/SOFTWARE/MAPLE/R4&5/Conversions to MAPLE WWW/Input/"); FileTools[IsReadable]("S:/MRBwork/Phd/SOFTWARE/MAPLE/R4&5/Conversions to MAPLE WWW/Output/");
true
true

So both folders are recognised by MAPLE.

Can anyone help debug this please?

MRB

Attached is my sheet.

On my system if just execute the whole worksheet maple return the last statement's integral un evaluated, however at this point if re-execute the statements from the definition of L2, it looks that maple has evaluated the last statement's integral.

 

What am I missing here, any help?

Regards!!

Strange_beh.mw

Consider the following two variable funtion:

f(x,y)=x^2+y^2-5

then we want to draw a contourplot:

contourplot(f,x=-10..10,y=-10..100)

My problem is that I want maple to diplay the value of the function "f" relating to each curve on the contour plot!
How can I do this?

Please see the following code.

Example.mw

I am using Maple 12 in Win 64. I have some difficulties in evaluating expressions in Maple. For example simply writing cos(x) then differentiating it w.r.t x. After writing cos(x) in 2D Math mode, I do right click for selecting diff but it does not work. The pointer turns in to busy mode and nothing comes to select. Also, I tried this operation in the tutorial file teaching differentiation, however problem persists.

Hello,

I'm looking to export the results of calculated variables to cells in a excel sheet.

For that purpose, I have used this code

with(ExcelTools);
Fichier:="Z:\2_Boulot\tabledeparametrage.xls";
Feuille:="Feuil1";
Export(xA1_Fus, Fichier, Feuille, "B3");

The error message is the following :

ExcelTools:-Export called with arguments: Array(1..1, 1..1, {(1, 1) = .3182057489}), Z:2_Boulot tabledeparametrage.xls, Feuil1, B3
#(ExcelTools:-Export,6): streamcall(INTERFACE_EXCEL_EXPORT(R,_params[2 .. -1]))
Error, (in ExcelTools:-Export) file I/O error La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte
locals defined as: d = d, R1 = R1

Do you have idea why I didn't manage to export a result to a cell in excel ?

I think that it is probably because I don't define well the adress of my file. How do you define a the adress of a file which is contained in a folder on a harddrive in Maple?

Thanks a lot for your help.

Dear all,

restart:with(plots):
eq1:=diff(f(y), y$4)-(diff(f(y), y$2));

bcs:=f(h1) = (1/2), f(h2) = -(1/2), (D(f))(h1) = -1, (D(f))(h2) = -1:

h1:= 1+cos(x):h2:=-1-cos(x+g):

db:=eq1,bcs:
d1 := subs(g=1,[db]):
P1:= eval(diff(diff(f(y),y$2)-f(y),y));

for x from 0 to 1 by 0.1 do
F2[x]:=dsolve(d1, numeric,maxmesh=25500,output=listprocedure): 
P2[x]:=subs(F2[x],P1); # subing values into P1 
end do:
Vls:=Vector([seq(P2[x],x=0..1,0.1)]):
XX := `<|>`(`<,>`(seq(x, x = 0..1, 0.1))):
plot(<<XX>|<Vls>>, color=red);

I'm trying to plot P1 vs x but getting empty plot. Please help me out. 

Thanks

 

There was a command that allowed a user to convert a decimal to a fraction, I cannot remember and I cannot find it with help...

Let's say I have 2 functions, the first being y=sin^2(x) and the second one is y=e^(-x)cos(x). When I try to solve on Maple, it only gives me one intersecting point, while I would like to see ALL intersections between the 2 functions. How would I go about doing this?

Good day, can any one help in writing maple programme for the finite difference (FD) formulae define to solve this coupled non-linear  ODEs. See it here FDM_programme.mw Thank you

NOTE: please disregard the earlier link.

First 1376 1377 1378 1379 1380 1381 1382 Last Page 1378 of 2429