POV-Ray : Newsgroups : povray.advanced-users : Stumped by desk lamp trig equation : Re: Stumped by desk lamp trig equation Server Time
2 Oct 2022 18:42:20 EDT (-0400)
  Re: Stumped by desk lamp trig equation  
From: Cousin Ricky
Date: 6 Aug 2022 17:57:21
Message: <62eee3c1$1@news.povray.org>
On 2022-08-06 13:32 (-4), kurtz le pirate wrote:
> 
> To test your equation, I replaced the a, c, x and y by numerical values.
> Wolfram solve the equation but only numerically because apparently there

Does this imply that I would need to program a numeric solution into my
macro?

> is not only one solution...

I'm only interested in solutions between 0 and pi/2.  The plot of the
solution implies that there can be no more than 2 of these.  With your
example, I'll naturally want the smaller angle, as the larger angle puts
the aim point behind the lamp!

By pushing the aim point farther from the lamp (the bottom plot), I get
only 1 solution.  I'm still trying to work out how to restrict inputs to
the macro to guarantee only scenarios that make physical sense.


Post a reply to this message


Attachments:
Download 'flex_lamp_problem-a.png' (20 KB)

Preview of image 'flex_lamp_problem-a.png'
flex_lamp_problem-a.png


 

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