POV-Ray : Newsgroups : povray.general : Square Root problem : Re: Square Root problem Server Time
30 Jul 2024 00:25:50 EDT (-0400)
  Re: Square Root problem  
From: Vincent Le Chevalier
Date: 16 Mar 2010 08:15:19
Message: <4b9f7657$1@news.povray.org>
gharryh wrote:
> From a triangle from whom i know the length of both legs (A and B) i want to
> calculate the longest leg (C).
> As i remember from school its C*C=A*A+B*B where A=62.5 and B=17.
> Translated into PovRay its C=sqrt(pow(A,2)+pow(B,2)) but the result is much
> smaller. The correct result for C should be +/-32.596

I don't know where you get your C=32.596 from but this is impossible, in 
this case A would be bigger than B+C, which means that no triangle will 
have sides of these lengths, no matter what the angles are...

-- 
Vincent


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.