summaryrefslogtreecommitdiff
path: root/1322/CH5/EX5.7.a/48sampleex1.sce
blob: d46605594e6865fdb59cc78bb26eacd8938b1b72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

//f(x):x->3x;g(x):x->x-2;fg(5)
clear;
clc;
close;
x=poly(0,'x');
f=3*x;
g=x-2;
// fg= f(g(x))=f(x-2)=3*(x-2)
x=5;
fg=3*(x-2)