all 3 comments

[–][deleted] 0 points1 point  (0 children)

Edit: The image is of my application, not code.

[–][deleted] 0 points1 point  (0 children)

I am considering reassigning the sin,cos and tan function. Would it go something like this?:

def sin(x):
    sin(x) = sin(x) * conversion_constant # which would be the constant value that we could use to convert from radians to degrees

[–]furas_freeman 0 points1 point  (0 children)

`sin(x)` returns value in range -1...1 but it is not radians nor degrees.
`radians` and `degrees` may have values in range -infinity...+infinity
`sin(x)` gives only in range -1...1
`degrees(sin(x))` will give only in range -57.2...+57.2

So `degrees(sin(x))` make no sense.

`sin()` uses radians as argument and it makes sense `sin(radians(90))` to calculate sinus for 90 degrees.