## 45 Reputation

11 years, 251 days

## plotting graph in 2d...

`Hi friends. Am trying to plot a graph that shows the difference between cubic spline, crank `
`nicolson and exact soution in 2d through this command but am not able to get it. `
`Whereas table is mentioned below at t=0.05`
`x	cubic	 crank	  exact0.05	0.0879	0.0855	0.07560.15	0.2514	0.2446	0.21940.25	0.3807	0.3708	0.34170.35	0.4625	0.4512	0.43050.45	0.4928	0.4815	0.47730.55	0.4747	0.4646	0.47330.65	0.4151	0.4609	0.4305`

## finding exact solution through maple...

Can we find exact solution of PDE with help of maple?

If it is yes the please let me how to write commands for parabolic pde

ut=k uxx with boundary conditions u(0,t)=u(l,t)=0 and initial condition u(x,0)=e-x

## plotting tables in one graph...

hey all..
i want to plot graph for two tables.

Table1 shows value for crank nicolson method at different x and t

`t╲x  0.05	0.15	0.25	0.35	0.45	0.55	0.65	0.75	0.85`
`0.05	0.0855	0.2446	0.3708	0.4512	0.4815	0.4646	0.4609	0.3160	0.2001`
`0.15	0.0283	0.8214	0.1277	0.1607	0.1779	0.1776	0.1599	0.1267	0.08130.25	0.0112	0.0310	0.0474	0.0597	0.0662	0.0662	0.0597	0.0474	0.03060.35	0.0073	0.0128	0.0174	0.0222	0.0246	0.0246	0.0222	0.0175	0.0119`

## column vector in maple...

hi
am writing code and i need to  insert a column vector in maple  of n x 1 order. For specific n i know how to insert it but what if we want for n rows

May be some loop is used or some other commands.

## how to write tridiagonal matrix...

I need to define a tridiagonal matrix in maple in such a way that

[b(1) a(1) . . . . .      . . . . . . .  . 0]

[a(2) b(2) a(2) 0 0 .  . . . . . . . . .0]

[0  a(3) b(3) a(3) 0 0 0 .     . . . .0]

[0 0     a(4)  b(4) a(4) 0 0  .       . 0]

[0 . . . . . . . . . . . . . . . . . . . . .  . .]

[. . . . . . . . .a(m-1) b(m-1) a(m-1)]

 5 6 7 8 Page 7 of 8
﻿