p = rat ( pi )
drei Terme der Näherung von π durch einen Kettenbruch
p = 3 + 1 / ( 7 + 1 / 16 )
www.mathworks.dep = rat ( pi )
produces three terms in the continued fraction approximation of π
p = 3 + 1 / ( 7 + 1 / 16 )
www.mathworks.deJede Gleitkommazahl Z kann in eine exakte Zahl durch den Befehl rat ( Z ) verwandelt werden.
Die Umwandlung erfolgt durch Kettenbruch-Entwicklung mit einer durch die Variable ratepsilon festgelegten Genauigkeit ( voreingestellt:
).
webuser.fh-furtwangen.deEach floating point number Z can be converted to an exact number using the command rat ( Z ).
The conversion is accomplished by continued fraction expansion with an accuracy determined by the variable ratepsilon ( default:
).
webuser.fh-furtwangen.deVuoi aggiungere una parola, una frase o una traduzione?
Inserisci una nuova voce.