Skip to content
Snippets Groups Projects
TestAngle.py 661 B
Newer Older
  • Learn to ignore specific revisions
  • Klaus Böhnlein's avatar
    Klaus Böhnlein committed
    import numpy as np
    import matplotlib.pyplot as plt
    import sympy as sym
    import math
    import os
    import subprocess
    import fileinput
    import re
    import matlab.engine
    import sys
    
    
    
    e_1 = [1,0]
    e_2 = [0,1]
    e_3 = [-1,1]
    e_4 = [1,-1]
    e_5 = [-1,-1]
    
    
    
    print("e_1:", e_1)
    print("e_2:", e_2)
    print("e_3:", e_3)
    print("e_2:", e_4)
    print("e_3:", e_5)
    print("math.atan2(e_1[1], e_1[0]):", math.atan2(e_1[1], e_1[0]))
    
    print("math.atan2(e_2[1], e_2[0]):", math.atan2(e_2[1], e_2[0]))
    print("math.atan2(e_3[1], e_3[0]):", math.atan2(e_3[1], e_3[0]))
    print("math.atan2(e_4[1], e_4[0]):", math.atan2(e_4[1], e_4[0]))
    print("math.atan2(e_5[1], e_5[0]):", math.atan2(e_5[1], e_5[0]))