Question on bc - basic calculator
Question on bc - basic calculator
am 12.11.2007 04:27:44 von linq936
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.
Re: Question on bc - basic calculator
am 12.11.2007 05:00:32 von Icarus Sparry
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/
Re: Question on bc - basic calculator
am 12.11.2007 12:56:29 von franzi
On 12 Nov, 05:00, Icarus Sparry 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=
Re: Question on bc - basic calculator
am 13.11.2007 00:14:15 von Janis Papanagnou
franzi wrote:
> On 12 Nov, 05:00, Icarus Sparry 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
Re: Question on bc - basic calculator
am 13.11.2007 08:09:20 von franzi
On 13 Nov, 00:14, Janis Papanagnou
wrote:
> franzi wrote:
> > On 12 Nov, 05:00, Icarus Sparry 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