Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions on assigning and unassigning definitions to names that represent them, including issues raised by context and localization. Use tag [assignment] for issues relating to Set versus SetDelayed.
2
votes
1
answer
58
views
We would like to define $k$ in advance as an even number
Can we define in advance that $k$ is even?
For example, when defining the sequence $\{a_n\}$ inductively as follows,
input:
a[n_]:=If[Mod[Abs[a[n-1]-a[n-2]],2]==0,a[n-1]-a[n-2],a[n-1]-2];
a[1] = 3; …
6
votes
3
answers
179
views
How to define variables $a$,$b$,$c$,$d$ are all elements of set $\{2,3,5,7\}$?
I would appreciate it if somebody could help me with the following problem:
I want to create a Wolfram Language expression that states that all $a$,$b$,$c$,$d$ variables are elements of the set $\{2, …