float power(int x, struct Fraction k) { reduce(&k); if(k.denominator==1) { int intPower(float x,int y); return intPower(x,k.numerator); } return decimalValue(k)*logbase(x,10); }
main() { int x=0; printf("Enter a number:: "); scanf("%d",&x); printf("%.4f\n",logbase(x,10)); printf("Continue:: (Y/N) "); scanf("%s",&x); if((x == 'y') || (x == 'Y')) return main(); return 0; }
double log(double x) { return logbase(E, x); }
int SListViewItemLocatorFlex::GetIndexDeep() const { if(!m_adapter) return 0; if(m_adapter->getCount()==0) return 0; return (int)ceil(logbase((m_adapter->getCount()+SEGMENT_SIZE-1)/SEGMENT_SIZE,INDEX_WIDTH)); }
double log10(double x) { return logbase(10, x); }