u(i,end) = u(i,end-1)+10*(log(10*exp(-0.0001*u(i,end))))*(1-(log(10*exp(-0.0001*u(i,end))))/100)*dx;
that is the line that is giving me problems. Basically, when I run this simulation I get peaks occurring at the boundaries - instead, I want peaks to occur in the centre. Can I do this by the...
1. In the below code, I need to know how to ensure that the peaks end up near the middle. I also want to know how to calculate the end value of "u". Thanks!
2.
clear all
close all
clc
u = 1000*ones(1,200);
dt = 0.01;
dx = 1/201;
for i = 2:10/dt
dudt = diff(u(i-1,:));
Du =...
[b]1. How do you prove, using SD, that ((A>B)>A)>A?
[b]3. I tried to first assume (A>B)>A. Then I made a sub-derivation, assuming ~A. In this sub-derivation, I need to derive a contradiction. How?