[julia-users] Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Kurolong
Hey Guys and Gals ^^ I'm having trouble with Julia. Maybe one of you can help me out The program i am writing requires the linear-equation-system-solver(command "\") in the folder "Julia-0.4.5\share\julia\base\linalg". Now my problem is that i need the equation solved strictly on integers, an a

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Kurolong
ers of magnitude more computationally intensive than even precise > approximations. If you need something which is really precise, try > BigFloats or Decimals.jl. > > On Friday, July 15, 2016 at 11:50:01 AM UTC-7, Kurolong wrote: >> >> Hey Guys and Gals ^^ >> I'

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Kurolong
The thing is, i did not write that i need an exact integer solution because i don't like approximation, but because i am working in N^n and rounding can cause catastrophically false results. The matrices i am working on are, however, not all that big (i would guess absolute max 30x100, usually m

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Kurolong
Unfortunately, switching to Rational{BigInt} did not help. same error :(

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Kurolong
Turns out that it actually did fix the error, but i was too tired and confused things. BUT the components of the fractions were a lot too large. A Gauß-algorithm should have returned very managable fractions, not fractions of 300-decimal-place-numbers by 300-decimal-place-numbers. I suspect this

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-16 Thread Kurolong
But Julia cannot calculate the Moore-Penrose-Inverse for the Rational Type :(

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-16 Thread Kurolong
Well, firstly, with matrices, the increase should be distributed among entries. secondly, i was talking about running my above example in BigInt. A 2x3 matrix should most definitely not produce fractions like that. Thirdly, the system has the solution [0.8,-2.0,0.4]. This is not what the function

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-19 Thread Kurolong
Thank you, this was very helpful. Just a small question: Are the UpperTriangular and LowerTriangular commands actually necessary in some case? The other question i have is what A_div_B! actually does in this case, but i have a feeling that this is hard to explain.

Re: [julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-20 Thread Kurolong
Ah right, so what you are doing is just solving successively for L and U. Okay, all questions answered. Thank you^^