What is the goal of the problem?

AI Thread Summary
The discussion centers around clarifying the problem's goal, specifically whether the aim is to solve for x in the equation p = Hx, given the matrix H. Participants express confusion over the provided arrays, particularly the discrepancies between the user's array U and the correct answer's array U, which resembles the array V^T. There is a request for a complete problem statement to better understand the context and assist in resolving the differences in results. The importance of clear problem definitions and accurate representations of variables is emphasized for effective problem-solving. Providing additional details could facilitate more accurate guidance.
nao113
Messages
68
Reaction score
13
Homework Statement
Hello, I tried to solve SVD questions using python. I already got the answer for this . Then, I tried to use python to solve this case by looking at thee tutorial https://www.youtube.com/watch?v=_So8j8T-E1o&list=PLRDl2inPrWQW1QSWhBU0ki-jq_uElkh2a&index=43.
But when I tried by myself. I found the value of U and VT are different from the correct answer.

Can anyone point out what I did wrong here?
Relevant Equations
I put them below
Question:
Screen Shot 2022-06-08 at 18.47.24.png


Correct Answer:
Screen Shot 2022-06-08 at 17.07.42.png

U and VT in code:
Screen Shot 2022-06-08 at 18.41.50.png
 
Physics news on Phys.org
From your post it's difficult to understand what you are doing. In the problem statement, the only information given is the matrix H. What is the goal of the problem? Are either p or x given? The image shows ##p = Hx##. Is the goal to solve for x?

In your work, you show an array named U, but it doesn't match the array named U in what you show as the correct answer. Your array U looks similar to the array named ##V^T## in the solution, but some of the array entries have different signs. The correct answer shows a vector for p. Was that given?

If you provide a complete problem statement, maybe we can help you figure out why you're getting different results than are shown in the solution.
 
Back
Top