how we can write initial and boundary conditions in C++,given below
ρ(L, t) = ρmin + (ρL − ρmin)e−kt, ρ(x, 0) = 0 for 0 ≤ x < L, ρ(L, 0) = ρL n(0, t) = 0, n(L, t) = nLe−kt, n(x, 0) = 0 for 0 ≤ x < L, n(L, 0) = nL
c(0, t) = c0, c(L, t) = 0, c(x, 0) = c0(x) for 0 < x ≤ L
ρ(L, t) = ρmin + (ρL − ρmin)e−kt, ρ(x, 0) = 0 for 0 ≤ x < L, ρ(L, 0) = ρL n(0, t) = 0, n(L, t) = nLe−kt, n(x, 0) = 0 for 0 ≤ x < L, n(L, 0) = nL
c(0, t) = c0, c(L, t) = 0, c(x, 0) = c0(x) for 0 < x ≤ L