Re: bc - calculator going further

2000-11-20 Thread Sebastian Canagaratna
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

bc - calculator going further

2000-11-20 Thread Joerg Johannes
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

Re: bc - calculator

2000-11-17 Thread Daniel Freedman
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: <[

Re: bc - calculator

2000-11-17 Thread Mario Olimpio de Menezes
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/

Re: bc - calculator

2000-11-17 Thread Sebastian Canagaratna
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

Re: bc - calculator

2000-11-17 Thread Colin Watson
[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

Re: bc - calculator

2000-11-17 Thread Christoph Simon
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

bc - calculator

2000-11-17 Thread Joerg Johannes
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