the way to get natural logarithm of x is l(x)
When you start bc type bc -l or mc --mathlib to make the math library
available.
Also type
man bc
to get more about the capabilities of bc.
Hope this helps.
Sebastian Canagaratna
Department of Chemistry
Ohio Northern University
Ada, OH 4581
OK. Thank you everybody, now I can do divisions. But now I'm getting a
bit more complicated... how can I do logarithms (eg. ln 5 = 1.6094...) ?
thanks again
joerg
Or you could just use:
'bc -l' on invocation to get bc to treat numbers as 'longs'
HTH
-Daniel
> From: Christoph Simon <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: debian-user@lists.debian.org
> Subject: Re: bc - calculator
> Message-Id: <[
On Fri, 17 Nov 2000, Christoph Simon wrote:
> On Fri, 17 Nov 2000 13:39:21 +0100
> Joerg Johannes <[EMAIL PROTECTED]> wrote:
>
> > This was really great and saved me hours of time. The problem is now,
> > that I have to do the same thing with divisions, meaning 3/4 = 0.75. But
> > bc spits out 3/
Hi:
Re using bc.
Start bc.
then type scale=5 ( for five decimal places for example)
Then you can do your divisions.
Hope this helps.
Sebastian Canagaratna
Department of Chemistry
Ohio Northern University
Ada, OH 45810
[EMAIL PROTECTED] wrote:
>This was really great and saved me hours of time. The problem is now,
>that I have to do the same thing with divisions, meaning 3/4 = 0.75. But
>bc spits out 3/4 => 0 and 4/3 => 1. Any Idea how I can change this
>behaviour to get the real results? Would save me some more h
On Fri, 17 Nov 2000 13:39:21 +0100
Joerg Johannes <[EMAIL PROTECTED]> wrote:
> This was really great and saved me hours of time. The problem is now,
> that I have to do the same thing with divisions, meaning 3/4 = 0.75. But
> bc spits out 3/4 => 0 and 4/3 => 1. Any Idea how I can change this
> beh
Hi all
I have a lot of data that has to be processed, means 100 numbers having
to be divided by another 100 numbers. I did a job like this for adding
numbers to others by
bc < input-file > output-file
with input-file:
one # eg. 199+243
operation # 198+392
per
8 matches
Mail list logo