Group Abstract Group Abstract

Message Boards Message Boards

0
|
19.9K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

How do I use n as an integer?

Posted 10 years ago

Dear all,

how can I run a computation with a variable n as an integer in WolframAlpha or Mathematica? So that, for instance, sin(n*pi)=0 etc.?

Thanks! Clemens

POSTED BY: Clemens Isert
2 Replies
Posted 10 years ago

Hey Sean, thanks a lot! Works like a charm :)

POSTED BY: Clemens Isert

The syntax for this would be:

Assuming[Element[n, Integers], Simplify[Sin[ n Pi]]]

You can also do this by natural language with a statement like:

"Simplify Sin( Pi n) assuming n is an integer"

This should work in Wolfram|Alpha and for natural language processing in Mathematica.

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