Nuprl Definition : proportional-round

proportional-round(r;k;l) ==  let r' ⟵ in if isint(r') then (r' k) ÷ else let p,q r' in (p k) ÷ fi 



Definitions occuring in Statement :  callbyvalueall: callbyvalueall ifthenelse: if then else fi  bfalse: ff btrue: tt isint: isint def spread: spread def divide: n ÷ m multiply: m
Definitions occuring in definition :  callbyvalueall: callbyvalueall ifthenelse: if then else fi  isint: isint def btrue: tt bfalse: ff spread: spread def divide: n ÷ m multiply: m
FDL editor aliases :  proportional-round

Latex:
proportional-round(r;k;l)  ==
    let  r'  \mleftarrow{}{}  r
    in  if  isint(r')  then  (r'  *  k)  \mdiv{}  l  else  let  p,q  =  r'  in  (p  *  k)  \mdiv{}  q  *  l  fi 



Date html generated: 2016_05_15-PM-10_37_19
Last ObjectModification: 2015_09_23-AM-08_26_51

Theory : rationals


Home Index