Maliha Saleem

5 Reputation

One Badge

4 years, 98 days

MaplePrimes Activity


These are replies submitted by Maliha Saleem

thanks all for your help . i have learned alot.

error.mw

ge := diff(u(x, y), `$`(y, 2)) = -epsilon^2*(diff(u(x, y), `$`(x, 2)))

diff(diff(u(x, y), y), y) = -(diff(diff(u(x, y), x), x))

(1)

bc1 := u(x, y)+0

u(x, y)

(2)

bc2 := u(x, y)+0

u(x, y)

(3)

bc3 := u(x, y)+0

u(x, y)

(4)

bc4 := u(x, y)-1

u(x, y)-1

(5)

epsilon := 1

1

(6)

fd1 := (1/2)*(-u[m+2](zeta)-3*u[m](zeta)+4*u[m+1](zeta))/h

(1/2)*(-u[m+2](zeta)-3*u[m](zeta)+4*u[m+1](zeta))/h

(7)

bd1 := (u[m-2](zeta)+3*u[m](zeta)-4*u[m-1](zeta))/(2*h)

(1/2)*(u[m-2](zeta)+3*u[m](zeta)-4*u[m-1](zeta))/h

(8)

cd1 := (1/2)*(u[m+1](zeta)-u[m-1](zeta))/h

(1/2)*(u[m+1](zeta)-u[m-1](zeta))/h

(9)

cd2 := (u[m-1](zeta)-2*u[m](zeta)+u[m+1](zeta))/h^2

(u[m-1](zeta)-2*u[m](zeta)+u[m+1](zeta))/h^2

(10)

bc1 := subs(diff(u(x, y), x) = subs(m = 0, fd1), u(x, y) = u[0](zeta), x = 0, bc1)

u[0](zeta)

(11)

bc2 := subs(diff(u(x, y), x) = subs(m = N+1, bd1), u(x, y) = u[N+1](zeta), x = 1, bc2)

u[5](zeta)

(12)

N := 4

4

(13)

eq[0] := bc1

u[0](zeta)

(14)

eq[N+1] := bc2

u[5](zeta)

(15)

NULL

for i to N do eq[N+1+i] := diff(u[N+1+i](zeta), zeta) = subs(diff(u(x, y), `$`(x, 2)) = subs(m = i, cd2), diff(u(x, y), x) = subs(m = i, cd1), u(x, y) = u[i](zeta), x = i*h, rhs(h^2*ge/epsilon^2)) end do

diff(u[6](zeta), zeta) = -u[0](zeta)+2*u[1](zeta)-u[2](zeta)

 

diff(u[7](zeta), zeta) = -u[1](zeta)+2*u[2](zeta)-u[3](zeta)

 

diff(u[8](zeta), zeta) = -u[2](zeta)+2*u[3](zeta)-u[4](zeta)

 

diff(u[9](zeta), zeta) = -u[3](zeta)+2*u[4](zeta)-u[5](zeta)

(16)

"u[0](zeta):=(solve(eq[0],u[0](zeta)));"

Error, unable to parse

":=(Zeta)->(solve(eq[0],u[0](Zeta)));"

 

"u[N+1](zeta):=(solve(eq[N+1],u[N+1](zeta)));"

Error, unable to parse

":=(Zeta)->(solve(eq[N+1],u[N+1](Zeta)));"

 

``

NULL



Download error.mw

@Maliha Saleem 

@tomleslie 

here i my file.

@Preben Alsholm 

can you tell me your maple version plz..

@Preben Alsholm 

i am exprencing the same problem in new sheet.

on pressing enter a new window opens of title

clerify expression.

parts of expressions are ambigous. please select one of the suggested meanings.

function defination or remember table assignment.

 

Page 1 of 1