calculating the area of a circle with bc

Steve yorvik.ubunto at googlemail.com
Sun Mar 28 20:04:12 UTC 2010


On Sun, 28 Mar 2010 20:51:20 +0100, Tony Arnold  
<tony.arnold at manchester.ac.uk> wrote:

> Rei,
>
> Rei Shinozuka wrote:
>> The area is proportional to the square of the diameter or radius.
>>
>> Data form www.dominos.com:
>>
>> Domino's 10" pizza is $7.00
>> Domino's 14" pizza is $11.99.
>>
>> The 10" price/diameter is 70 "cents per inch."
>> The 14" price/diameter is 85 "cents per inch."
>>
>> implying that the 10" is a better buy.
>>
>> But price/area shows:
>>
>> The 10" price/area is 8.6 cents per square inch.
>> The 14" price/area is 7.7 cents per square inch.
>>
>> The 14" pizza is 10% cheaper than the 10" pizza.
>>
>> For a pure comparisons, you are correct: coefficients like pi are not
>> needed to compare.  But you need to square the linear size of the pizza.
>
> I stand corrected again. And I thought I was good at maths!
>
Shouldn’t the thickness be taken into account as well ;)


-- 
Steve (Yorvyk)
http://www.lubuntu.net




More information about the ubuntu-users mailing list