blob: d3e7a7aa30290d9c811d4898f48ac89289bbcbf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// let q be the function of t q=f(t)
deff('q=f(t)','q=5*t*sin(4*%pi*t)');
//i is the current at t=0.5seconds in Amperes
derivative(f,0.5);
i=ans;
disp("i=")
disp(i)
units='Amperes A'
i=[string(i) units];
disp(i)
// in amperes A
// the current i is 31.415 Amperes
|