#Determinant of a matrix.

10 messages · Page 1 of 1 (latest)

peak rivet
#

Hi. My code isn't giving the right number for the determinant of a matrix: I input an upper triangular matrix and it is not giving me the Trace of it.

What's going wrong?

young hamletBOT
#

This post has been reserved for your question.

Hey @peak rivet! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

mossy talon
#

Its been years since I last solved matrix problems, can you paste your input and expected output? aslo paste code as well

peak rivet
#

I'm running

System.out.print("The determinant of matrix 1 is det(A) = " + determinant(m1));

While reading in a file

#

im expecting to get 1

#

When i run this one, i in fact get the right answer (1)

peak rivet
#

i used chatgpt and i was iterating one off

young hamletBOT
# young hamlet

Before your post will be closed, would you like to express your gratitude to any of the people who helped you? When you're done, click I'm done here. Close this post!.

#
Post Closed

This post has been closed by @young hamlet for the following reason:

User left the server