logarithm


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting logarithm
# 1  
Old 06-05-2008
logarithm

Hi Guys,
Is it possible to do Logarithm of a number in Unix?? i dunno how to handl logarithm operation
# 2  
Old 06-05-2008
assuming gnu bc:
Code:
echo "l(100)" | bc -l

l (ell) is natural logarithm.
# 3  
Old 06-05-2008
is there any way to do log(100) which is equal to 2
not the natural logarithm. log of base 10
# 4  
Old 06-05-2008
nevermind i got it
# 5  
Old 06-05-2008
thanks alot for your help
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Binary logarithm

Hi all, I wonder how I can use binary logarithm in Solaris shell. I'm aware of the natural logarithm as discussed on the following post: https://www.unix.com/shell-programming-scripting/68175-logarithm.html Do you have any idea ? Thanks in advanced, Yigal (4 Replies)
Discussion started by: ydekel
4 Replies
Login or Register to Ask a Question