Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.9K Views
|
5 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Transforming an angle into [-Pi, Pi)

Posted 4 years ago
Attachments:
POSTED BY: Werner Geiger
5 Replies
Posted 4 years ago

Sorry, I had a minor error within my code. The correction must read: $\text{If}[\omega \neq 0\land \omega =\pi Floor[ N[\omega/\pi] ] ,-\pi ,\text{Mod}[\omega ,2 \pi ,-\pi]]$

I had forgotten the case $\omega =0$.

For details, see the attached slightly changed notebook "220109b Transforming an Angle.nb".

Attachments:
POSTED BY: Werner Geiger
Posted 4 years ago

BTW: How can I write or copy special characters like Pi into the community editor?

POSTED BY: Werner Geiger
Posted 4 years ago

It is mentioned in READ FIRST. Example:

Evaluate TexForm with the expression as argument

TeXForm[\[Omega] == \[Pi] Floor[N[\[Omega]/\[Pi]]] // HoldForm]
(* \omega =\pi  \left\lfloor N\left[\frac{\omega }{\pi }\right]\right\rfloor *)

Copy the output and paste it in the editor, bracketed between $

$\omega =\pi \left\lfloor N\left[\frac{\omega }{\pi }\right]\right\rfloor$

POSTED BY: Hans Milton
Posted 4 years ago

Thanks Hans. I didn't remember that.

POSTED BY: Werner Geiger

Hi Werner,
You can also use this tool for special characters
http://steampiano.net/msc/

POSTED BY: Ahmed Elbanna
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard