File r37/lisp/csl/html/r37_0089.html artifact 2087cda335 part of check-in 3c4d7b69af



<A NAME=LOGB>

<TITLE>LOGB</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>



<B>LOGB</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>operator</B><P>
<P>
 
 <P>
<P>
 <P> <H3> 
syntax: </H3>
<em>logb</em>(&lt;expression&gt;,&lt;integer&gt;) 
<P>
<P>
<P>
&lt;expression&gt; can be any valid scalar REDUCE expression. 
<P>
<P>
The <em>logb</em> operator returns the logarithm of its first argument using 
the second argument as base. However, unlike 
<A HREF=r37_0088.html>log</A>, there are no 
algebraic rules associated with it; it will only evaluate when 

<A HREF=r37_0330.html>rounded</A> is on, and the first argument is a real number
. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>
logb(x,2); 

  LOGB(X,2) 


logb(4,3); 

  LOGB(4,3) 


logb(2,2); 

  LOGB(2,2) 


df(logb(x,3),x); 

  DF(LOGB(X,3),X) 


on rounded; 

logb(4,3); 

  1.26185950714 


logb(2,2); 

  1

</TT></PRE><P>

REDUCE Historical
REDUCE Sourceforge Project | Historical SVN Repository | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]