Recent content by #define

  1. D

    Calculate RPM of 100m Diameter Space Habitat for Simulated Gravity

    Centripetal force due to spinning = mrw^2 m = mass r = radius w = angular velocity (rad/sec) Force we experience due to gravity = mg m = mass g is acceleration from them: g = rw^2 this will give you the required angular velocity of the spinning station
  2. D

    C/C++ How would I go about defining pi in C++?

    Many thanks. I didn't even know the precision thing exist(fairly new to all this) but a quick google search sorted all that out. Thanks again Hurkyl. edit:dduardo, I figured I don't really need it to be so accurate, so I settled with just 15 digits. Thanks for your reply.
  3. D

    C/C++ How would I go about defining pi in C++?

    How would I go about defining pi (and using) as 3.1415926535897932384626433832795? I've tried using double, long double and #define pi 3.1415926535897932384626433832795 but it, instead, takes 3.14159. Is there any way to get it more accurate?
Back
Top