What is the coordinate of a point on a circle from a different perspective?

AI Thread Summary
The discussion centers on determining the coordinates of a point on a circle from a different perspective. Given a circle centered at (h, k) with radius R, the coordinates of a point on the circle from the center's perspective are expressed as (R cos(theta), R sin(theta)). When converting these coordinates to the standard (x, y) system, the correct transformation is (h + R cos(theta), k + R sin(theta)). This solution successfully resolved a bug in an astrology program, prompting humorous reactions about the nature of the program.
ad_bose
Messages
5
Reaction score
0
I've a small Query.
Suppose a circle is plotted with its center at distance h,k (from x=0, y=0) with radius R. If theta is an angle from h,k to any point over the circle, we know that the co-ordinate of that point, from (h,k) perspective, will be Rcos(theta),Rsin(theta). In such a case, what shall be the co-ordinate of the SAME POINT, if it is taken from x,y.
circle.bmp.gif

Kindly see Attached code written in Delphi.
 

Attachments

Technology news on Phys.org
Well naturally it would be ( h + R cos(theta), k + R sin(theta) ).
 
Thanks Pal, that solved the Astrology program bug.
 
OMG! An Astrology program? uart, what have you done?
 
HallsofIvy said:
OMG! An Astrology program? uart, what have you done?

He looked God in the face, spit into his divine beard and then laughed.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top