- #1

- 765

- 15

For example if I have a function of the form:

y=exp(θ)

(and θ is an angle in degrees.)

How do I write this function to explicitly assert that: -180 ≤ θ < 180 ?

So that for example if one had an angle of numerical value 190, then θ = -170.

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter billiards
- Start date

- #1

- 765

- 15

For example if I have a function of the form:

y=exp(θ)

(and θ is an angle in degrees.)

How do I write this function to explicitly assert that: -180 ≤ θ < 180 ?

So that for example if one had an angle of numerical value 190, then θ = -170.

- #2

arildno

Science Advisor

Homework Helper

Gold Member

Dearly Missed

- 9,970

- 134

- #3

- 765

- 15

i.e.

[itex] y = exp(\theta) [/itex]

would be written like how, something like this??? :

[itex] y = exp([\theta]^{180}_{-180}) [/itex] ?????

- #4

arildno

Science Advisor

Homework Helper

Gold Member

Dearly Missed

- 9,970

- 134

https://en.wikipedia.org/wiki/Modulo_operation

- #5

Office_Shredder

Staff Emeritus

Science Advisor

Gold Member

- 4,439

- 520

I would just state explicitly as a sentence "for angles between -180 and 180, define y as...."

Share: