Solving Numerically the System: x^2+y^2=1 and xy=1/2

  • Thread starter Thread starter wuyaosi
  • Start date Start date
  • Tags Tags
    System
AI Thread Summary
A user is seeking MATLAB code to numerically solve the system of equations x^2 + y^2 = 1 and xy = 1/2. A suggestion is made to solve the system exactly by substituting y with 1/(2x), leading to a quadratic equation in terms of z (where z = x^2). This approach simplifies the problem, allowing for exact solutions rather than numerical methods. The discussion emphasizes both numerical and exact solving techniques for the given equations.
wuyaosi
Messages
1
Reaction score
0
Hi,

I am looking for the code of Matlab which can led me to solve numerically this system
x^2+y^2=1
xy= 1/2


I want to write a programm which can be able to solve numerically the above syatem


Thanks in advance
 
Technology news on Phys.org
You can solve it exactly. If you don't see the answer by inspection, try y=1/(2x), so x^2 + 1/(4x^2) = 1, so z^2 - z + 1/4 = 0, where z = x^2.
 
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