March 31, 2011 — Andrew Moylan, Technical Communication & Strategy

Got a question about Mathematica? The Wolfram Blog has answers! We’ll regularly answer selected questions from users around the web. You can submit your question directly to the Q&A Team using this form.

This week’s question comes from Brian, who is a part-time math teacher:

How do you plot trigonometric functions in degrees instead of radians?

Trigonometric functions in Mathematica such as Sin[x] and Cos[x] take x to be given in radians:

Trigonometric functions

Plot trigonometric function

Read More »


March 14, 2011 — Andrew Moylan, Technical Communication & Strategy

Got questions about Mathematica? The Wolfram Blog has answers! Each week, we’ll answer a selected question from users around the web. You can submit your question directly to the Q&A Team.

For our first post in this new series of Mathematica Q&A articles, we’re going to address a very frequently asked question about plotting in Mathematica.

How can I control the appearance of discontinuities in a plot?

The short answer is, use the options Exclusions and ExclusionsStyle! Let’s see how they work.

By default, Plot shows the function 1 ⁄ sin(x) with lines joining its discontinuities:

1 / sin(x)

1 / sin(x) plot

Read More »