1
rat Scilab Group Scilab Function rat
3
rat - Floating point rational approximation
9
x : real vector or matrix
11
n : integer vector or matrix
13
d : integer vector or matrix
15
y : real vector or matrix
18
[N,D] = rat(x,tol) returns two integer matrices so that N./D is close tox
19
in the sense that abs(N./D - X) <= tol*abs(x). The rational
20
approximations are generated by truncating continued fraction expansions.
21
tol = 1.e-6*norm(X,1) is the default. y = rat(x,tol) return the