Overview
| Comment: | New way of computing Euler |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
76bdb5bcaa932f561849593ba1cb0cf8 |
| User & Date: | gawthrop@users.sourceforge.net on 1998-08-15 13:48:11.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
1998-08-15
| ||
| 13:48:35 | New update methods check-in: 6f4b578e7c user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 13:48:11 | New way of computing Euler check-in: 76bdb5bcaa user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 13:47:36 | Initial revision check-in: 34e5e7402c user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/m/mtt_update.m
from [37893fe9f3]
to [d664b9210d].
|
| | > > | > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 |
function [x] = mtt_update(dx,x,AAx,AA,dt,STEPFACTOR,Nx,METHOD);
if (METHOD==1) #Euler
ddt = dt/STEPFACTOR;
x = x + dx*ddt;
elseif ((METHOD==2)||(METHOD==3))#Linear implicit or Implicit
x = AA\(AAx + dx*dt);
else
error("Method %i is not defined", METHOD);
endif;
endfunction;
|