%---------------------------------------------------------------------------- % % Authors: Cesar Munoz (NIA) % This theory implements an algorithm to compute the natural part and the % real part of a logarithm. This algorithm is analogous to the Euclidean ELSE n+1 ENDIF % Date: March 28 2005 % %---------------------------------------------------------------------------- BEGINlog_nat_itjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
nat
p
IMPORTING(elseletny (/p +,y)
log_nat(x,p): RECURSIVE [n:natendif(xp): k | ifIFxp= THEN
n) (x,)in,) endif MEASURE floor(x)
log_nat_bounds (n,)=log_natxp let (n,y)=log_nat^ < THEN
ND<^njava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
least_pow_2_ge(xp:posreal): {k:int |
<=^ ANDFORALL(:int) < 2i<} java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53 IF xp>=1THENLET(,)=log_nat_it,2IN LET ()=log_nat_it,) java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 IF=1THEN ELSE+ ENDIF ELSIF xp>ELSELETn= log_nat_it(1xp)1IN- ENDIF ELSELET n = log_nat_it(1/xp,2)`1IN -n ENDIF
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.