Message Boards Message Boards

0
|
41391 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How do I tell WolframAlpha which variables are real and which are natural?

Posted 11 years ago
Dear WolframAlpha Community,

How does one declare that a variable is real and two other variables are natural numbers?

I would like to work with this complex fraction:

(1-e^(2 i pi (-j+l+t)))/(1-e^((2 i pi (-j+l+t))/n))

and its modulus

sin^2(pi t) csc^2((pi (-j+l+t))/n)

In the exponents, i = sqrt(-1); t is real; n, l, j are natural numbers; l and j are less than or equal to n.

I could not find answers in WolframAlpha when I searched.

Thank you!
POSTED BY: Aaron S
3 Replies
Posted 11 years ago
Hi Aaron,

If Wolfram Alpha is struggling to parse your query you can often use simple Wolfram syntax instead. To say n is a natural number in Mathematica you typically do something like:
Element[n, Integers] && n > 0
Check these documentation pages for more information.
Assumptions and Domains
Simplifying with Assumptions
Using Assumptions
POSTED BY: Michael Hale
Posted 11 years ago
Thank you!
POSTED BY: Aaron S
Posted 5 years ago

In Wolfram Language 12 or later, you can also use PositiveIntegers, i.e., Element[n, PositiveIntegers]. https://reference.wolfram.com/language/ref/PositiveIntegers.html

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

Group Abstract Group Abstract