# Homework Help: Heat equation, initial and boundary numerical conditions

1. Jan 22, 2008

### LMZ

Hello to all!
1. The problem statement, all variables and given/known data
for testing my program i need a heat equation with numerical initial and boundary conditions:
Derivative[2, 0][f][x, t] == Derivative[0, 1][f][x, t]

f[x, 0] == numerical
f[0, t] == numerical, f[numerical, t] == numerical

PS. to moders: please, if you delete my message, PM me what I've done wrong, thanks!

2. Jan 22, 2008

### HallsofIvy

It's not clear what you are asking. You know what the heat equation is, I presume. Why can't you just make up arbitrary initial and boundary values yourself?

3. Jan 22, 2008

### LMZ

yeap! i think i know what is heat equation: http://en.wikipedia.org/wiki/Heat_equation#Solving_the_heat_equation_using_Fourier_series

for example if i put these:
Code (Text):
init = f[x, 0] == 1
bc = {f[0, t] == 0, f[1, t] == 0}
in mathematica i got this warning:
A warning is generated in this example because the initial conditions and boundary conditions give two different values for the value of f[0,0].

that's why i need correct example!