Robert M. Corless
Department of Applied Mathematics
University of Western Ontario
London, Canada

Copyright 2001 by Robert M. Corless
All rights reserved

Programming in Maple 

Программирование в Maple

 Sample Maple programs 

Пример программ Maple

Solution of y'(t)=ay(t-1) 

Решение уравнения y'(t)=ay(t-1)

> restart;

> plots[setoptions](colour=BLACK);

> read "D:/books/ess/programs/NHFS.mpl";

> ans := NHFS( t, -Pi/2, exp(-t) );

> residual := diff(ans,t) - (-Pi/2)*eval(ans,t=t-1):

> plot( residual, t=1..5 );

> plot( ans-exp(-t), t=0..1 );

> plot( ans, t=0..5 );

> ramp := NHFS( t, -1, t, initial=0, lower=-6, upper=5 );

> plot( {t,ramp}, t=0..2, scaling=CONSTRAINED );

С официального разрешения                    © 2002 Waterloo Maple, Inc

 
Hosted by uCoz