Questions tagged [determinants]

Anything related to the computation of matrix determinants. The determinant of a square matrix is a number, computed from the matrix elements, that is extremely important in matrix algebra and its applications (geometry, linear systems solving, etc.).

Anything related to the computation of matrix determinants. The determinant of a square matrix is a number, computed from the matrix elements, that is extremely important in matrix algebra and its applications (geometry, linear systems solving, etc.).

See Wikipedia on matrix determinants.

225 questions
-1
votes
2 answers

ArrayIndexOutOfBoundsException when trying to find the determinant of a 2D Array/Matrix

this is my first Stack Overflow post, and I am fairly new to java, so I may not initially comprehend some of the feedback you give me. With this program, I am supposed to find the determinant of a matrix recursively with a size determined by the…
-1
votes
1 answer

How to flag true if the det(A) is not a square? MATLAB

My goal is to have code that flags true if I give it a matrix that isn't a square and flags false if it is a square. My code works correctly when I give it a non-square matrix. However it gives me an error when I give it a square matrix? How could…
kal
  • 37
  • 2
  • 14
-1
votes
2 answers

C++ Matrix Determinant/Memory Allocation

I'm trying to write a matrix determinant function in C++. However my code doesn't compile and don't know why (i'm using an online c++ compîler, and the error messages iget is "* Error in `/var/www/service/usercode/519646917/a.out': free(): invalid…
JasBeck
  • 25
  • 5
-1
votes
1 answer

How to determinate the build of app (x86 or x64) without using SDK/libs etc

I want to determinate the build of the program. It can be running or not. Also I EXACLTY want to determinate such thing in my code without using any SDK or some-ready stuff from .net fw etc... How to do it? Question isn't about the exact language.…
Secret
  • 2,627
  • 7
  • 32
  • 46
-2
votes
1 answer

Solve function in R doesn't match inverse calculation

There seem to be a ton of questions about inverse functions, but they're not what I'm after (neither are many of the results in the matrix-inverse tag). I'm trying to use a function that gets the inverse of a matrix. As an example, this is the…
Shawn Hemelstrand
  • 2,676
  • 4
  • 17
  • 30
-2
votes
2 answers

CPP program to find determinant of a matrix of order nxn, can u find the mistake in my code. n can be any natural number more than 1

#include using namespace std; int determ=0;//declare the variable to hold determinant value \ \ \ int *insert(int *a,int start,int n) /* function to insert cofactor of a particular element into array and return the address…
-2
votes
1 answer

JAVA How do I write code for a 2D array storing four integers in a 2x2 matrix?

Array Problem 3: 2D array -Ask the user for 4 integers -Store them as a 2x2 matrix -Find the determinant Matrix: input1 input2 input3 input4
user12221671
-2
votes
1 answer

Matlab: Laplace expansion

When I run this Laplace expansion in Matlab for determinant, I do get "Undefined function or variable 'A'". I will be happy if anyone can help me correct it and make it workable. function value = Laplace A=input('matrix A ='); [rows, columns]…
babs
  • 31
  • 6
-2
votes
1 answer

How to get solution to make this determinant zero?

A = [A-x(1) B-x(2) C-x(3);D-x(4) E-x(5) F-x(6); G-x(7) H-x(8) I-x(9)] I have to obtain x(1)...x(9) for det(A) = 0.
Moussekim
  • 97
  • 6
-2
votes
1 answer

How to perform complex looping operation on matrix

I have a sample matrix like 5 4 3 2 6 8 1 9 7 and I want output like max(5*6,5*8,5*9,5*7) // i!=j condition max(4*2,4*8,4*1,4*7) max(3*2,3*6,3*1,3*9) And so on... This maximum values obtained after computation should be in…
Saurabh Kumar
  • 149
  • 12
-2
votes
2 answers

Why isn't my Python code for finding determinants working?

The following code in Python 3 is meant to return the determinant of any order matrix. It takes in a text file with the form : 3 6 8 9 9 -7 5 -7 2 0 8 0 8 9 -1 -1 I get no error, but it is giving the wrong answer. Any clue why? Thanks! def…
-3
votes
1 answer

Why does Python calculate the determinant of a matrix wrong?

I tried to calculate determinants of matrices in Spyder IDE, but the results made me suspicious about "scipy" for further study. Here is the code I used: import numpy as np from scipy import linalg matrix = np.array([[5.0, 9.0],[3.0, 5.0]],…
Arda Kandemir
  • 49
  • 1
  • 1
  • 7
-3
votes
2 answers

Run time error: Determinant of matrix using c++

I'am trying to write a program which can calculate determinant of 2x2 matrix entered by user. My code is as follows - //Program to calculate determinant of matrices #include #include using namespace std; int main() { int…
-3
votes
1 answer

How can I change this if-statement to switch?

//is the following code about quadratic formulas convertible to switch method? Public class blah blah Public static void main(String[] args) { System.out.println("enter letter a"); New Scanner= System.in Int a = input.nextint() //same…
user5573493
-5
votes
2 answers

Understanding of a specific function Determinant of a Matrix

I have found a program on internet which calculate the determinant of a Matrix: /* * C++ Program to Find the Determinant of a Given Matrix */ #include #include #include using namespace std; double d = 0; double det(int…
Muclos
  • 1
  • 2
1 2 3
14
15