Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a QR decomposition algorithm to math section in Python. #331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added a QR decomposition algorithm to math section in Python. #331

wants to merge 1 commit into from

Conversation

JaniniRami
Copy link

Issue Number: #197

Title

I have added an qr composition algorithm script in python that was assigned to me.

def decomposition(A):
Q, R = scipy.linalg.qr(A)

print (f"\n\nA:{A}")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 11: Invalid Syntax.

Copy link
Owner

@geekquad geekquad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please compile the code before making PRs. Thankyou.

@JaniniRami
Copy link
Author

I compiled it without any errors, I think you are getting the Syntax Error because of your input, it should consist of two numbers separated by a comma without spaces as shown in the program like this :

λ python3 app.py
Write the size of the matrix separated by a comma (eg: 3,3): 3,3

If that is not the problem, please reply with the Syntax Error you are getting, so I would be able to see the reason for this error.

@geekquad
Copy link
Owner

I compiled it without any errors, I think you are getting the Syntax Error because of your input, it should consist of two numbers separated by a comma without spaces as shown in the program like this :

λ python3 app.py
Write the size of the matrix separated by a comma (eg: 3,3): 3,3

If that is not the problem, please reply with the Syntax Error you are getting, so I would be able to see the reason for this error.

Hey @JaniniRami07, this is the error I am getting:
tt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants