JoelSjogren

Untitled

Nov 12th, 2020
546
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. octave:13>
  2. box% octave
  3. GNU Octave, version 5.2.0
  4. Copyright (C) 2020 John W. Eaton and others.
  5. This is free software; see the source code for copying conditions.
  6. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
  7. FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.
  8.  
  9. Octave was configured for "x86_64-pc-linux-gnu".
  10.  
  11. Additional information about Octave is available at https://www.octave.org.
  12.  
  13. Please contribute if you find this software useful.
  14. For more information, visit https://www.octave.org/get-involved.html
  15.  
  16. Read https://www.octave.org/bugs.html to learn how to submit bug reports.
  17. For information about changes from previous versions, type 'news'.
  18.  
  19. octave:1> A = [ 29.72 -14.892 53.778]; B = [ 33.422 -14.57 53.145]; C = [ 32.351 -16.136 54.869];
  20. octave:2> M = ((2*[A-C; B-C])\[A*A'-C*C'; B*B'-C*C'])'
  21. M =
  22.  
  23. 30.070 -35.102 34.318
  24.  
  25. octave:3> [norm(A-M) norm(B-M) norm(C-M)]
  26. ans =
  27.  
  28. 28.058 28.058 28.058
  29.  
  30. octave:4>
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment