|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I am new to bc, i just tried 2/5, but it returns 0. I think somehow I should turn on some decimal setup, but I do not see how to do it. I also tried 2.0/5.0, it does the same. Any pointer? Thanks. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Sun, 11 Nov 2007 19:27:44 -0800, linq936 wrote:
> Hi, > I am new to bc, i just tried 2/5, but it returns 0. I think somehow > I should turn on some decimal setup, but I do not see how to do it. I > also tried 2.0/5.0, it does the same. > > Any pointer? > > Thanks. bc -l from the command line, or scale=8 inside bc. This sets up the number of decimal places it uses/ |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On 12 Nov, 05:00, Icarus Sparry <use...@icarus.freeuk.com> wrote:
> On Sun, 11 Nov 2007 19:27:44 -0800, linq936 wrote: > > Hi, > > I am new to bc, i just tried 2/5, but it returns 0. I think somehow > > I should turn on some decimal setup, but I do not see how to do it. I > > also tried 2.0/5.0, it does the same. > > > Any pointer? > > > Thanks. > > bc -l > from the command line, or > scale=8 > inside bc. This sets up the number of decimal places it uses/ So how can i use bc to solve some radical problem ,like this expression a(ab-xb)/axb= |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
franzi wrote:
> On 12 Nov, 05:00, Icarus Sparry <use...@icarus.freeuk.com> wrote: > >>On Sun, 11 Nov 2007 19:27:44 -0800, linq936 wrote: >> >>>Hi, >>> I am new to bc, i just tried 2/5, but it returns 0. I think somehow >>>I should turn on some decimal setup, but I do not see how to do it. I >>>also tried 2.0/5.0, it does the same. >> >>> Any pointer? >> >>>Thanks. >> >>bc -l >>from the command line, or >>scale=8 >>inside bc. This sets up the number of decimal places it uses/ > > > So how can i use bc to solve some radical problem ,like this > expression a(ab-xb)/axb= > A calculator is not the best tool to implement a computer algebra system. Janis |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On 13 Nov, 00:14, Janis Papanagnou <Janis_Papanag...@hotmail.com>
wrote: > franzi wrote: > > On 12 Nov, 05:00, Icarus Sparry <use...@icarus.freeuk.com> wrote: > > >>On Sun, 11 Nov 2007 19:27:44 -0800, linq936 wrote: > > >>>Hi, > >>> I am new to bc, i just tried 2/5, but it returns 0. I think somehow > >>>I should turn on some decimal setup, but I do not see how to do it. I > >>>also tried 2.0/5.0, it does the same. > > >>> Any pointer? > > >>>Thanks. > > >>bc -l > >>from the command line, or > >>scale=8 > >>inside bc. This sets up the number of decimal places it uses/ > > > So how can i use bc to solve some radical problem ,like this > > expression a(ab-xb)/axb= > > A calculator is not the best tool to implement a computer algebra > system. > > Janis- Nascondi testo tra virgolette - > > - Mostra testo tra virgolette - ok |
|
![]() |
| Outils de la discussion | |
|
|