Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

int(a(t)*b(t)+2*(diff(a(t), t))*(diff(b(t), t)), a(t));
Error, (in int) integration range or variable must be specified in the second argument, got a(t)
 

do not understand this error message,

how to integrate it?

Hello people in mapleprimes,
I have a question.
I appended two pictures where from the same code, two different orders of
expression appear.
How can I do for this so as not to get error messages?
The cause of this is simplify(%,symbolic) brings different order of term a__0^(-k)*F__D ahead of a parenthesis in a jpg.file and F__D*a__0^(-k) after
that parenthesis in another jpg.fine both in the line above that of  "dairihensu1."

In this case, What I can do?
Please help me.
Best wishes.

taro

my_code.mw

Original code is

e7_4:=F__D*(Omega+1)*beta/(beta-1) = F__I*a__D^(-k)*a__0^k+T^((sigma-k-1)/(-1+sigma))*F__D*phi^(k/(-1+sigma))+F__D;

a1:=beta=k/(sigma-1);
subs_free:=
  proc(a,b,c)
    local b1;
    b1:=isolate(b,c);
    subs(b1,a);
  end proc;
isolate(e7_4,a__D^(-k));simplify(%,symbolic);dairihensu1:=subs_free(%,a1,sigma);e7_5:=applyop(simplify,[2,4,1,3,2],dairihensu1);

A case without error.

A case with a error.

 

Hi everybody,

So today is 10-28-2016 and I explored Leyland Numbers for the first time, on Maple.  Please see my example file and let me know what your impression is.

x_to_the_yth_power_and_y_to_the_xth_power_take_4.mw

x_to_the_yth_power_and_y_to_the_xth_power_take_4.pdf

I have included a .pdf file so that the caual internet observer can also be aware of this information.

Regards,
Matt

 

Dear all,

I am creating an animation, and I was wondering if I can add a multiplier to my equation in a specific range.  So starting from z:=0.2 add a multiplier (z+1). The code I have so far is added. Does anyone know a code for this?

Kind regards

restart; 
with(plots); 
a := -1/2; b := 1/2; c := -2; d := 2; n := 20; 
g := proc (x) options operator, arrow; value(Int(sigma(t), t = 0 .. x)) end proc; 
sigma := proc (z) options operator, arrow; 2*sqrt(2*h^2-4*z^2)*z/h^2 end proc; 
h := i/n; 
for i to n do 
an2[i] := plot(sigma(z), z = -(1/2)*h .. (1/2)*h, view = [a .. b, c .. d], color = AQUAMARINE); 
an3[i] := plot(2*g(x), x = 0 .. (1/2)*h, view = [a .. b, c .. d], color = RED) 
end do; 
p := plots[display]([seq(an2[i], i = 1 .. n)], insequence = true); 
q := plots[display]([seq(an3[i], i = 1 .. n)], insequence = true); display(p, q)

 


 

restart; with(plots); beta := 0.1e-1; Bi := 1; Pr := 3.0; L0 := 1; w = 0.2e-1

Eq1 := diff(f(eta), eta, eta, eta)+f(eta)*(diff(f(eta), eta, eta))-(diff(f(eta), eta))^2+beta*H(eta)*(F(eta)-(diff(f(eta), eta))) = 0

diff(diff(diff(f(eta), eta), eta), eta)+f(eta)*(diff(diff(f(eta), eta), eta))-(diff(f(eta), eta))^2+0.1e-1*H(eta)*(F(eta)-(diff(f(eta), eta))) = 0

(1)

Eq2 := G(eta)*(diff(F(eta), eta))+F(eta)^2+beta*(F(eta)-(diff(f(eta), eta))) = 0

G(eta)*(diff(F(eta), eta))+F(eta)^2+0.1e-1*F(eta)-0.1e-1*(diff(f(eta), eta)) = 0

(2)

Eq3 := G(eta)*(diff(G(eta), eta))+beta*(f(eta)+G(eta)) = 0

G(eta)*(diff(G(eta), eta))+0.1e-1*f(eta)+0.1e-1*G(eta) = 0

(3)

Eq4 := H(eta)*F(eta)+H(eta)*(diff(G(eta), eta))+G(eta)*(diff(H(eta), eta)) = 0

H(eta)*F(eta)+H(eta)*(diff(G(eta), eta))+G(eta)*(diff(H(eta), eta)) = 0

(4)

Eq5 := (diff(theta(eta), eta, eta))/Pr+f(eta)*(diff(theta(eta), eta))+(2*beta*H(eta)*(1/3))*(theta[p](eta)-theta(eta)) = 0

.3333333333*(diff(diff(theta(eta), eta), eta))+f(eta)*(diff(theta(eta), eta))+0.6666666667e-2*H(eta)*(theta[p](eta)-theta(eta)) = 0

(5)

Eq6 := G(eta)*(diff(theta[p](eta), eta))+L0*beta*(theta[p](eta)-theta(eta)) = 0

G(eta)*(diff(theta[p](eta), eta))+0.1e-1*theta[p](eta)-0.1e-1*theta(eta) = 0

(6)

bcs1 := f(0) = 0, (D(f))(0) = 1, (D(theta))(0) = -Bi*(1-theta(0)), (D(f))(5) = 0, F(5) = 0, G(5) = -f(5), H(5) = w, theta(5) = 0, theta[p](5) = 0

f(0) = 0, (D(f))(0) = 1, (D(theta))(0) = -1+theta(0), (D(f))(5) = 0, F(5) = 0, G(5) = -f(5), H(5) = w, theta(5) = 0, theta[p](5) = 0

(7)

p := dsolve({Eq1, Eq2, Eq3, Eq4, Eq5, Eq6, bcs1}, numeric)

Error, (in dsolve/numeric/process_input) system must be entered as a set/list of expressions/equations

 

odeplot(p, [eta, f(eta)], 0 .. 10);

odeplot(p, [eta, f(eta)], 0 .. 10)

(8)

``

 

 


 

Download from_net.mw

Pressure_loss.mw

Hey all, could someone pls help me with how i can setup the equation for f in my worksheet. It should look like v and Rey with 45 data points. I've tried alot but i can't seem to solve it mysefl. Is it because i solve and map at the same time?

Thanks

I want to run a specific color red outside and yellow inside on my equation here using MAPLE 8.00:

plot3d([(0.5+cos(5*u))*sin(2*v),(0.5+cos(5*u))*cos(2*v),0.5*(cos(5*u)-0.3*cos(15*u)+0.02*cos(25*v))],u=0..2*Pi,v=0..2*Pi,axes=FRAMED);

is there some one here can help me? thanks...here is the example of color I want Eg: 

I got a set like this one:

g:={{3, 4, 5}, {5, 12, 13}, {6, 8, 10}, {7, 24, 25}, {8, 15, 17},

  {9, 12, 15}, {9, 40, 41}, {10, 24, 26}, {12, 16, 20},

  {12, 35, 37}, {14, 48, 50}, {15, 20, 25}, {15, 36, 39},

  {16, 30, 34}, {18, 24, 30}, {20, 21, 29}, {21, 28, 35},

  {24, 32, 40}, {27, 36, 45}}

And i want to count how many time a number apper in this set. Like an example:

3 appear 1

4 appear 1

5 appear 2.

Thank for your reading, :)

Sorry for my bad english :)

i wrote this problem to solve 

Delta= Sum(j=1 to n)SUM(i=j to n)(pi*hj/Ad(t,ij)*Et,ij))

Where n=70,  G= ftj (t)/(4+0.85*t) , where (t =8, 16, 24,…….up to 8*n), hj= 13 for all j except j1 =18

Ad= (Aj+s(mij-1)), where Aj varies

Mij=ES/E(G),          where E(G)= 57sqrt(1000*G)

 

n := 70;

70

(1)

i := seq(1 .. n, 1);

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70

(2)

t := proc (i) options operator, arrow; 8*i end proc;

proc (i) options operator, arrow; 8*i end proc

(3)

j := i;

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70

(4)

F = f(j);

F = f(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70)

(5)

F(1 .. 30) := 8;

8

(6)

F(31 .. 40) := 7;

7

(7)

F(41 .. 70) := 6;

6

(8)

G := proc (F, i) options operator, arrow; F*t/(4+.85*t) end proc;

proc (F, i) options operator, arrow; F*t/(4+.85*t) end proc

(9)

A := f(j);

f(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70)

(10)

A(1 .. 30) := 5184;

5184

(11)

A(31 .. 50) := 3600;

3600

(12)

A(51 .. 62) := 1936;

1936

(13)

A(63 .. 70) := 1024;

1024

(14)

s := f(j);

proc () option remember; table( [( 31 .. 50 ) = 3600, ( 63 .. 70 ) = 1024, ( 1 .. 30 ) = 5184, ( 51 .. 62 ) = 1936, ( 31 .. 40 ) = 3600 ] ) 'procname(args)' end proc

(15)

s(1 .. 10) := 128.0448;

128.0448

(16)

s(11 .. 20) := 63.763;

63.763

(17)

s(21 .. 30) := 79.92;

79.92

(18)

s(31 .. 40) := 64.08;

64.08

(19)

s(41 .. 50) := 47.88:

s(51 .. 62) := 31.944;

31.944

(20)

s(63 .. 70) := 12.49;

12.49

(21)

E := proc (G) options operator, arrow; 57*sqrt(1000*F) end proc;

proc (G) options operator, arrow; 57*sqrt(1000*F) end proc

(22)

Es := 29000;

29000

(23)

m := proc (E) options operator, arrow; Es/E(G) end proc;

proc (E) options operator, arrow; Es/E(G) end proc

(24)

Ad := proc (j, m) options operator, arrow; A+s*(m(E)-1) end proc;

proc (j, m) options operator, arrow; A+s*(m(E)-1) end proc

(25)

P := f(j);

proc () option remember; table( [( 21 .. 30 ) = 79.92, ( 31 .. 50 ) = 3600, ( 41 .. 50 ) = 47.88, ( 63 .. 70 ) = 12.49, ( 1 .. 30 ) = 5184, ( 51 .. 62 ) = 31.944, ( 11 .. 20 ) = 63.763, ( 31 .. 40 ) = 64.08, ( 1 .. 10 ) = 128.0448 ] ) 'procname(args)' end proc

(26)

P(1 .. 68) := 254.7;

254.7

(27)

P(69 .. 70) := 196.8;

196.8

(28)

h := f(j);

proc () option remember; table( [( 21 .. 30 ) = 79.92, ( 31 .. 50 ) = 3600, ( 41 .. 50 ) = 47.88, ( 63 .. 70 ) = 12.49, ( 1 .. 30 ) = 5184, ( 51 .. 62 ) = 31.944, ( 11 .. 20 ) = 63.763, ( 31 .. 40 ) = 64.08, ( 1 .. 10 ) = 128.0448 ] ) 'procname(args)' end proc

(29)

h(1) := 18;

18

(30)

h(2 .. 70) = 13;

h(2 .. 70) = 13

(31)

delta := sum(sum((P.h)/(E(G)*Ad)), i = 1 .. n, j = i)

Error, invalid input: sum uses a 2nd argument, k, which is missing

 

``


 

Download short.mw

Hi All,

I have a fucntion f(x,y,z) = exp(-x^2 -y^2 - z^4) and would like to plot the probabity density in real space. One method would be to randomly sample points in a grid based on f(x,y,z). The function f(x,y,z) is clearly peaked around x=y=z=0, so you would expect many points to lie around there. So the plot would look like a clump near (0,0,0) which gets less dense away from (0,0,0).

In the worksheet below, I sampled points from the Uniform distribution to file in the 3d-plot. I would like these points to be sampled from f instead, but am not sure how to do this.

Any help is appreciated,

restart;

with(Statistics):

R := 10; # x-axis size
N := 100; # Number f points to sample

10

 

100

(1)

# Unnormalized Probability distrubution

f := (x,y,z) -> exp(-x^2 -y^2 - z^2);

proc (x, y, z) options operator, arrow; exp(-x^2-y^2-z^2) end proc

(2)

# Clearly f is peaked at (0,0,0) and decays. Therefore I want a plot a lot of points near (0,0,0), and fewer points away from (0,0,0)

plot3d(f(x,y,0), x = -1..1, y = -1..1);

 

X := Sample(Uniform(-R, R), N):

Y := Sample(Uniform(-R, R), N):
Z := Sample(Uniform(-R, R), N):
XYZ := Matrix([[X], [Y], [Z]])^%T;

XYZ := Matrix(100, 3, {(1, 1) = 9.758694699049908, (1, 2) = 2.6237746853802246, (1, 3) = 5.657441459582465, (2, 1) = -6.591359538862333, (2, 2) = -2.89852696242302, (2, 3) = 3.875752299737945, (3, 1) = -4.844154988559739, (3, 2) = 9.940065432132954, (3, 3) = -9.803954954738758, (4, 1) = -2.0640136273371272, (4, 2) = -5.516570020337457, (4, 3) = 6.864266760210192, (5, 1) = -8.52010460846124, (5, 2) = 3.049021459372298, (5, 3) = 8.446639955925516, (6, 1) = 3.68192133924018, (6, 2) = 2.099812838165187, (6, 3) = 5.41908441347849, (7, 1) = -1.9522333460767616, (7, 2) = -2.2550913703373006, (7, 3) = -9.146802881299026, (8, 1) = 9.65670402787902, (8, 2) = -7.156256814189918, (8, 3) = -2.4362772589956228, (9, 1) = -1.9563202955503058, (9, 2) = -9.497300285795937, (9, 3) = 4.086792489667353, (10, 1) = 2.4134389439915687, (10, 2) = -1.5777549246951743, (10, 3) = 4.590260910092939, (11, 1) = -6.912603890414553, (11, 2) = -6.317994211449776, (11, 3) = -5.514458586709711, (12, 1) = -2.3730959111105605, (12, 2) = 4.515505349389063, (12, 3) = -4.618905364532699, (13, 1) = -6.777320563012783, (13, 2) = -2.592746269696038, (13, 3) = 3.4606233000823785, (14, 1) = 5.162248626548372, (14, 2) = 6.831201749364123, (14, 3) = -.45015604546277466, (15, 1) = 7.422222438307784, (15, 2) = 4.684593823866264, (15, 3) = 2.4743282533488493, (16, 1) = -2.9844651022821473, (16, 2) = 1.4205174564875769, (16, 3) = -5.2711013471817925, (17, 1) = 3.710714174950745, (17, 2) = -6.462898847493945, (17, 3) = -6.457524910033669, (18, 1) = -4.117027324643008, (18, 2) = 9.147680451914468, (18, 3) = 6.592867713951691, (19, 1) = .6125860771377116, (19, 2) = -4.693559276141599, (19, 3) = 5.338433358705297, (20, 1) = 6.648467725703679, (20, 2) = 8.491617904792019, (20, 3) = 8.68956546236539, (21, 1) = 1.9498038374515865, (21, 2) = -5.52459190605918, (21, 3) = -7.842221898312729, (22, 1) = -3.2937733858950775, (22, 2) = -2.5287238471471003, (22, 3) = -6.355449887978885, (23, 1) = -4.015499533337867, (23, 2) = -8.249993008468286, (23, 3) = -8.01809435155083, (24, 1) = -.9481491686135186, (24, 2) = 2.802330964934301, (24, 3) = -.20472396153106232, (25, 1) = -1.5470869355907517, (25, 2) = -6.387662244937832, (25, 3) = -6.13509339062259, (26, 1) = -2.8078736405552878, (26, 2) = -9.098977850528517, (26, 3) = 7.917831475851365, (27, 1) = 1.1663839973859425, (27, 2) = 4.4634695836619045, (27, 3) = -8.01820700636371, (28, 1) = 4.850907314038782, (28, 2) = -3.051247088364198, (28, 3) = -9.116688564746777, (29, 1) = -1.5133043274861873, (29, 2) = 3.2123364900580764, (29, 3) = 1.145903116095237, (30, 1) = -1.4128842284758996, (30, 2) = -2.322627978560572, (30, 3) = 5.449901343752481, (31, 1) = -7.502544825603743, (31, 2) = 2.5469300488693403, (31, 3) = -3.7611988500746225, (32, 1) = -9.511319678992521, (32, 2) = -9.567003707393871, (32, 3) = -6.420350413713298, (33, 1) = -4.196294697385456, (33, 2) = 8.21139977046057, (33, 3) = -3.220886435045635, (34, 1) = -3.6495883420154733, (34, 2) = 6.011173125576221, (34, 3) = -5.7970872591289595, (35, 1) = 3.0738026793295035, (35, 2) = 4.916949686854423, (35, 3) = .20305039530500402, (36, 1) = 9.138718481413683, (36, 2) = 6.262256272215215, (36, 3) = 8.127286465304294, (37, 1) = 8.71461745569761, (37, 2) = -2.3338736274894156, (37, 3) = 2.578478773046358, (38, 1) = -.8422733229126642, (38, 2) = 2.345584646328984, (38, 3) = -7.969322223753757, (39, 1) = -5.190432063358308, (39, 2) = 1.5098971940562773, (39, 3) = -2.1829049454729077, (40, 1) = 5.277958885729566, (40, 2) = .6010340953003119, (40, 3) = -8.907667695526849, (41, 1) = 5.186547662621926, (41, 2) = -4.498604883561299, (41, 3) = 0.25658264064304603e-1, (42, 1) = 4.812961299572285, (42, 2) = -5.027420806760592, (42, 3) = -1.3655765623150558, (43, 1) = 4.87376682974652, (43, 2) = -.9672245909605444, (43, 3) = 9.951206990243783, (44, 1) = -7.881591665344693, (44, 2) = -5.445743479469048, (44, 3) = 6.232051619906457, (45, 1) = 3.631208609406313, (45, 2) = 6.0889916722614, (45, 3) = -.2869666020396462, (46, 1) = -.7347884281256167, (46, 2) = 9.722084837919404, (46, 3) = 7.888955111347865, (47, 1) = -5.756735894901313, (47, 2) = -9.4001609946122, (47, 3) = -7.249068104658704, (48, 1) = -8.029625246237833, (48, 2) = .7132838133447539, (48, 3) = -2.1999017110942916, (49, 1) = 6.471489478556769, (49, 2) = -8.258455601982153, (49, 3) = 8.547124499962496, (50, 1) = -6.499805252358408, (50, 2) = 6.04182881111608, (50, 3) = 8.34987664832234, (51, 1) = -6.728601804300136, (51, 2) = 9.782898194006798, (51, 3) = 4.271480231886315, (52, 1) = 3.319744328222212, (52, 2) = -8.661074832044998, (52, 3) = 2.3667476724388, (53, 1) = 7.887787507084855, (53, 2) = 8.787967237690697, (53, 3) = -3.1342421951730914, (54, 1) = .33116416702540796, (54, 2) = -9.636449327266085, (54, 3) = 8.720546533795396, (55, 1) = 4.054046139009506, (55, 2) = 3.6767722749271066, (55, 3) = -7.504519186790148, (56, 1) = -6.9281924676119955, (56, 2) = 5.674729601664373, (56, 3) = 4.611707230114142, (57, 1) = 9.069141397724955, (57, 2) = .6827513576545652, (57, 3) = 2.929548648516276, (58, 1) = .8176816248295289, (58, 2) = 7.7071890186228345, (58, 3) = 6.663039713385899, (59, 1) = 3.594677964209339, (59, 2) = 7.980097978122803, (59, 3) = -2.034355435624491, (60, 1) = -9.268739639030944, (60, 2) = 2.518752521609917, (60, 3) = 4.9964441872127185, (61, 1) = 6.184077025875865, (61, 2) = -7.242620151748835, (61, 3) = 6.70441020956261, (62, 1) = 4.972377435523942, (62, 2) = -5.6439681257575085, (62, 3) = -3.5507920527548116, (63, 1) = -7.596259640258387, (63, 2) = -6.357178482191326, (63, 3) = 1.0452323371671, (64, 1) = .5009032952521757, (64, 2) = -9.163602720540913, (64, 3) = 9.582582648677842, (65, 1) = -3.483327424735016, (65, 2) = -7.86116682899586, (65, 3) = .9861706603660547, (66, 1) = .9289887980613702, (66, 2) = 2.328869701713703, (66, 3) = -3.391527807867945, (67, 1) = -2.0223849523360204, (67, 2) = 8.793220203221335, (67, 3) = 2.389431103555598, (68, 1) = -1.6981322677390676, (68, 2) = -2.910885380653423, (68, 3) = -2.7872685799559456, (69, 1) = -6.3852447949041125, (69, 2) = -1.7874181988097213, (69, 3) = 5.130190870038886, (70, 1) = -4.892265190238985, (70, 2) = 9.68698833968903, (70, 3) = -1.7219850261962062, (71, 1) = -9.589284506836309, (71, 2) = 8.911583780705254, (71, 3) = -.15309791230124503, (72, 1) = 8.473512252408145, (72, 2) = 3.532893568670783, (72, 3) = 3.8948646626522017, (73, 1) = 3.073997780165058, (73, 2) = 9.766045246265726, (73, 3) = 9.454677701595681, (74, 1) = 8.652271440971283, (74, 2) = 5.336627744331885, (74, 3) = -3.4449007901318645, (75, 1) = -6.729752629449488, (75, 2) = -3.2660147121704775, (75, 3) = 6.756063661571513, (76, 1) = 8.42194511784395, (76, 2) = 3.2476372079896247, (76, 3) = 4.781444545470562, (77, 1) = 5.893157707775064, (77, 2) = -5.116694264194415, (77, 3) = 9.083489127590862, (78, 1) = 1.5478839341329742, (78, 2) = -4.089854983368064, (78, 3) = -9.361547409920432, (79, 1) = -1.1992880847949277, (79, 2) = 3.6035674246100413, (79, 3) = -2.8626202763491593, (80, 1) = -4.8477252657512455, (80, 2) = .5569366083759579, (80, 3) = 3.25307668574429, (81, 1) = 5.038927877349, (81, 2) = -1.7681297318493083, (81, 3) = -4.369968817030188, (82, 1) = -5.426610357889972, (82, 2) = 2.0527643607279433, (82, 3) = -5.392338653650725, (83, 1) = -8.716258252162028, (83, 2) = 5.010401118474713, (83, 3) = 4.222571023606502, (84, 1) = 5.346590215531489, (84, 2) = 1.6706634852391726, (84, 3) = 2.4914583398661705, (85, 1) = 3.4240437071307106, (85, 2) = 1.0358502987193496, (85, 3) = 1.8121730583927196, (86, 1) = 4.304250295716802, (86, 2) = 1.6714123751542882, (86, 3) = 3.2087593262520375, (87, 1) = 2.8412165686770443, (87, 2) = .236398399169504, (87, 3) = -9.04890653772268, (88, 1) = -1.6190341275023385, (88, 2) = -8.348145460026013, (88, 3) = -3.0243038297988223, (89, 1) = -2.184758355916509, (89, 2) = 4.391402697189795, (89, 3) = -.9731883928851364, (90, 1) = 6.322802057506454, (90, 2) = 9.923122225937387, (90, 3) = -5.181900057597786, (91, 1) = -3.6514427268830074, (91, 2) = -2.909313900861563, (91, 3) = 4.300900265923531, (92, 1) = 6.290795458013026, (92, 2) = 9.425176303668113, (92, 3) = 7.123645840125757, (93, 1) = 5.7814702987791655, (93, 2) = -3.071024773992807, (93, 3) = -4.369846097628933, (94, 1) = 7.045277806876914, (94, 2) = 7.730877235206126, (94, 3) = 4.621016594474829, (95, 1) = .11273235143512395, (95, 2) = -.9061027001618438, (95, 3) = -7.244742149609673, (96, 1) = 2.7132277772275373, (96, 2) = -1.7314542195836946, (96, 3) = 6.734455634994351, (97, 1) = 9.017888307562703, (97, 2) = -5.645358632853991, (97, 3) = -7.2279656851528, (98, 1) = -1.1207168996237922, (98, 2) = -7.486908252747475, (98, 3) = 1.7641877077898727, (99, 1) = -8.799623604410481, (99, 2) = -3.821708128663694, (99, 3) = -2.6768639909012437, (100, 1) = 7.334997939986373, (100, 2) = 4.522088633296637, (100, 3) = 6.135190893222113}, datatype = float[8])

(3)

ScatterPlot3D(XYZ, color = blue, symbolsize = 20);

 

 

 

 

 


 

Download Sample_Test.m

 

I have the following code in Maple 13:

SYS := {diff(T(x, t), t) = diff(T(x, t), x, x)};
IBC := {T(1, t) = 0, T(x, 0) = 1, (D[1](T))(0, t) = -exp(t)};
SOL := pdsolve(SYS, IBC, numeric, time = t, timestep = 1/10);
R := SOL:-value(output = listprocedure); temperature := subs(R, T(x, t));

It integrates the heat equation in the interval x=0..1 and it seems to work ok.
However, I have problems trying to obtain the temperature derivative at the boundaries (this is at x=0 and x=1). I'm using different commands and it seems the derivative is evaluated ok inside the domain but not at the boundaries.
If I try
fdiff(temperature(x, t), [x], {x = 1,t=0.5});

or

evalf((D[1](temperature))(1, .5));

I don't get any numerical answer. Any idea how I could obtain the value of the derivative at the boundaries?

Thanks in advance,

Javier

 




 

Hi!

Is there any possibility for taking the negative sign outside a function, like factorization of -1?

Say I have. 

2*Pi^2*(-1+delta)/r^(1+delta),

How do i get this output?

-2*Pi^2*(1-delta)/r^(1+delta)

Thanks!

> restart;

with(plots);

pr := .72; p := 0; n := [.5, 1, 1.5]; s := 0; a := .2; b := 0; L := [red, blue, green]; l := 0; k := 1;

for j to nops(n) do R1 := 2*n[j]/(1+n[j]); R2 := 2*p/(1+n);

sol1 := dsolve([diff(diff(diff(f(eta), eta), eta), eta)+f(eta)*(diff(diff(f(eta), eta), eta))+R1*(1-(diff(f(eta), eta))^2) = 0, diff(diff(theta(eta), eta), eta)+pr*k*f(eta)*(diff(theta(eta), eta))+R2*pr*k*(diff(f(eta), eta))*theta(eta)+(2*(a*(diff(f(eta), eta))+b*theta(eta)))/(1+n[j]) = 0, f(0) = 1, (D(f))(0) = b*((D@@2)(f))(0), (D(f))(1.8) = 0, theta(0) = 1+s*(D(theta))(0), theta(1.8) = 1], numeric, method = bvp);

fplt[j] := plots[odeplot](sol1, [eta, diff(diff(f(eta), eta), eta)], color = L[j], axes = boxed); tplt[j] := plots[odeplot](sol1, [[eta, theta(eta)]], color = L[j], axes = normal) end do; plots:-display([seq(fplt[j], j = 1 .. nops(n))]);

plots:-display([seq(tplt[j], j = 1 .. nops(n))]);

 

staganation_point1.mw
 

can we chage the axis sir ?? like  f'' vs eta to f'' vs lambda.

``

restart

l := 1:

1

 

1.5

 

.5

 

[blue, green, red, yellow]

(1)

``

for j to nops(p) do R1 := 2*n/(n+1); R2 := 2*p[j]/(n+1); R3 := 2/(n+1); sol1 := dsolve([diff(diff(diff(f(eta), eta), eta), eta)+f(eta)*(diff(diff(f(eta), eta), eta))+R1*(1-(diff(f(eta), eta))^2)-M*(diff(f(eta), eta)) = 0, diff(diff(theta(eta), eta), eta)+pr*f(eta)*(diff(theta(eta), eta))-R2*pr*(diff(f(eta), eta))*theta(eta)+R3*(A*(diff(f(eta), eta))+B*theta(eta)) = 0, f(0) = 1, (D(f))(0) = L+b*((D@@2)(f))(0), (D(f))(7) = 1, theta(0) = 1+s*(D(theta))(0), theta(7) = 0], numeric, method = bvp); plots[odeplot](sol1, [eta, ((D@@2)(f))(eta)], color = red); fplt[j] := plots[odeplot](sol1, [eta, f(eta)], color = K[j], axes = boxed); tplt[j] := plots[odeplot](sol1, [[eta, theta(eta)]], color = K[j], axes = normal); fplt[j] := plots[odeplot](sol1, [eta, diff(f(eta), eta)], color = K[j], axes = boxed) end do:

 

 

plots:-display([seq(fplt[j], j = 1 .. nops(n))]);

 

sol1(0)

sol1(0)

(2)

sol1(.1)

[eta = .1, f(eta) = 1.05958091104306206, diff(f(eta), eta) = .643210624614908300, diff(diff(f(eta), eta), eta) = .881482678165403044, theta(eta) = .623284688471349546, diff(theta(eta), eta) = -.578039450700496560]

(3)

sol1(.2)

[eta = .2, f(eta) = 1.12800452943200891, diff(f(eta), eta) = .722346769554029544, diff(diff(f(eta), eta), eta) = .706526135439307756, theta(eta) = .568123251856343492, diff(theta(eta), eta) = -.525530979400813946]

(4)

sol1(.3)

[eta = .3, f(eta) = 1.20351830506746449, diff(f(eta), eta) = .785511903074783246, diff(diff(f(eta), eta), eta) = .561442941644520022, theta(eta) = .518103974464032668, diff(theta(eta), eta) = -.475257424178228970]

(5)

sol1(.4)

[eta = .4, f(eta) = 1.28466826824405134, diff(f(eta), eta) = .835505660630676662, diff(diff(f(eta), eta), eta) = .442470716586289281, theta(eta) = .472985640642506311, diff(theta(eta), eta) = -.427567049032814172]

(6)

sol1(.5)

[eta = .5, f(eta) = 1.37026161183094430, diff(f(eta), eta) = .874752886901313142, diff(diff(f(eta), eta), eta) = .345911467377074400, theta(eta) = .432494259338694842, diff(theta(eta), eta) = -.382764248064397461]

(7)

sol1(.6)

[eta = .6, f(eta) = 1.36678221814533528, diff(f(eta), eta) = .771028661281065508, diff(diff(f(eta), eta), eta) = .407805382194403932, theta(eta) = .876413930517023876, diff(theta(eta), eta) = -.197648778495384870]

(8)

sol1(2)

[eta = 2., f(eta) = 2.66120522956795602, diff(f(eta), eta) = .991532161353848585, diff(diff(f(eta), eta), eta) = 0.251405465681268682e-1, theta(eta) = .635967939441598018, diff(theta(eta), eta) = -.144641270049362308]

(9)

``

``

``

 

``


 

Download staganation_point1.mw

 

 

 

 

 

dear all,

how can I plot

 u:=(3*x-1)*(1-x):
v:=2*x*(1-2*x):

in (u,v)-plane

where x from 0..1

 

Hello everyone,

I am trying to solve a system of ODE's numerically but the problem is with the condition f(0)+g(0)=1.

Here is the system with the initial conditions,

restart:
ode1:=diff(f(x), x,x)+(f(x)+g(x))*diff(f(x),x)=0;
ode2:=diff(g(x), x,x)+(f(x)+g(x))*diff(g(x),x)=0;
ics:=f(0)+g(0)=1,D(f)(0) =0,D(g)(0) =1;
dsolve({ode1,ode2,ics},numeric);

which give an error

Error, (in DEtools/convertsys) invalid specification of initial conditions

The above system is a simplified form of a very complicated one.

 

First 1030 1031 1032 1033 1034 1035 1036 Last Page 1032 of 2216