Finding Pi - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Finding Pi (/showthread.php?tid=1127) Pages:
1
2
|
Finding Pi - PhilOfPerth - 11-16-2022 One for the Math (or ”outside-the-box-thinking”) gurus: Given an isoscles triangle ABC, with sides b and c (the sides opposite B and C) both 5 units in length, and with angle A=45degrees, is there a (simple?) way to find the length of side a, without resorting to pre-determined trig tables like sin, cos and tan, or pi? The reason I don’t want to use these is I’m trying to demonstrate how pi relates to the circumference of a circle, so I don’t want to involve anything that relies on pi – that would be “bootstrapping”, sort of like lifting oneself up by the bootlaces. RE: Finding Pi - SMcNeill - 11-16-2022 Sure. In this case, it's the simple old a ^ 2 + b^ 2 = c ^2 formula 5 ^ 2 + 5 ^ 2 = c ^ 2 25 + 25 = c ^ 2 SQR(50) = c 7.07 = c (OR in this case you can also remember the old ratio for 45% triangles... 1 to 1 to SQR(2). ) RE: Finding Pi - Pete - 11-16-2022 To me it looks like you are describing a pyramid shape triangle. 45 degree angle tot he top. Pop a line down the center and you get two right triangles, each with a hypotenuse of 5 unites. Now right triangles you can plug that into the Pythagorean Theorem then you should be good to go. Just did the math.. 3.53553 = 5√2/2 and just multiply by 2 = 7 .07106 Pete When Steve and I agree, the poles generally shif..........................................t RE: Finding Pi - SMcNeill - 11-16-2022 Or, if I read the problem wrong (as it seems Pete and I have two different interpertations of the problem), you might want: Formula for the Base of an Isosceles Triangle If you know the side length and height of an isosceles triangle, you can find the base of the triangle using this formula: b = SQR(a ^ 2 - h ^ 2), where a is the length of a side and h is the height. how to find the third side of a triangle: formula for the base of an isosceles triangle where a is the length of one of the two known, equivalent sides of the isosceles. RE: Finding Pi - Pete - 11-16-2022 Or Screw the triangle and try and find the volume of a cone. I just pour out the ice cream into a measuring cup, and wait until it melts to measure that. Pete RE: Finding Pi - bplus - 11-16-2022 I get this: '45 /2 = 22.5 'sin(_d2r(22.5) = a/5 ' Update: actually (1/2 of a) /5 = sin(22.5 degrees) Print "a ="; 2 * (5 * Sin(_D2R(22.5))) ' 3.8268... The only way you might avoid a trig table is if you can somehow use the fact that 22.5 is 1/3 of 67.5 the base angles of the iso tri. My trig not that good. Here it is illustrated in QB64pe: Code: (Select All) Screen _NewImage(800, 600, 32) RE: Finding Pi - Pete - 11-16-2022 Trig? Hey this look like a job for triggered! You know I once asked Bill, Hey Bill, if a boson farts in the forest, but no one is there to observe it, does anyone really give a squark? I still haven't head back. Pete RE: Finding Pi - bplus - 11-16-2022 @PhilOfPerth are you attempting this: https://www.google.com/search?client=opera&q=Archimedes+way+to+estimate+pi&sourceid=opera&ie=UTF-8&oe=UTF-8#kpvalbx=_nkd0Y8-RN-CZptQPl-SbaA_70 RE: Finding Pi - PhilOfPerth - 11-16-2022 (11-16-2022, 01:06 AM)SMcNeill Wrote: Sure. In this case, it's the simple old a ^ 2 + b^ 2 = c ^2 formulaBut that doesn't account for the angle; if A is wide, side a will be large, but if A is narrow, side a will be small. RE: Finding Pi - bplus - 11-16-2022 This might be better: https://www.youtube.com/watch?v=DLZMZ-CT7YU |