@anonymous/

ShimmeringNormalItalianbrownbear

Ruby

No description

fork
loading
Files
  • main.rb
main.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require "matrix"

ORIGINAL = Matrix[
                   [ 901,   501, 1],
                   [1877,   501, 1],
                   [1877, 15001, 1]
                 ]

TRANSFORMED = Matrix[
                      [ 7217.67, 193658.49, 1],
                      [-7052.27, 213450.63, 1],
                      [66458.50, 266451.18, 1]
                    ]

puts TRANSFORMATION = ORIGINAL.inverse * TRANSFORMED
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]