Mathematica symbols are the ultimate atoms of symbolic data. Every symbol has a unique name, exists in a certain Mathematica context or namespace, and can have a variety of types of values and attributes.
-1
votes
0answers
36 views
Is it possible to add arc sign, vector sign and/or line sign above words indicating which type of line it is in Mathematica?
Was making my own notes for Mathematics and was wondering, thanks
-1
votes
0answers
40 views
Vector of zeroes with symbolic length? [on hold]
This question is similar to Generating a vector of dummy variables, except that I have inverted requirements.
I want to create a vector of symbolic length (let's say n), containing all zeroes.
That ...
2
votes
2answers
58 views
How to make a function work on symbols in a specific context
Let us say we have two sets of symbols $(x, y, z)$ with the same names that live in two different contexts:
...
6
votes
3answers
193 views
Guidelines on giving readable names to variables [closed]
I know that one cannot use underscore to a variable name, like degree_of_The_First_Polynomial. But for a long variable name, it ...
3
votes
1answer
69 views
Displaying the meaning of an operator using Information
I'm using CircleTimes ($\otimes$) operator defined as
a_\[CircleTimes]b_ := KroneckerProduct[a, b]
so I can use ...
6
votes
2answers
185 views
Not FullDefinition for Save. MachineID not Protected?
Is there a way to set what symbols's definitions I do not want to store?
Consider the following code:
...
0
votes
3answers
141 views
Given a Boolean representation of a system, how can the Reliability Function be displayed as symbolic algebra?
Can Mathematica 9 convert a Boolean representation of an RBD to its symbolic algebraic form?
If I have a simple series Reliability Block Diagram made up of 2 components, c1 and c2
bexpr1=And[c1,c2]
...
4
votes
1answer
72 views
Remove Removed From Output
How might I remove Removed[..] symbols from the output of an expression?
For example
Clear[b]; b := Sin[a + a]; Remove[a];
b
...
1
vote
4answers
144 views
converting between forms - symbols/subscripts - matrix products
If I have a vector of the form (xp+y, x+yp) do you have a simple way of creating the following matrix and vector from it: {{p, 1}, {1, p}} * {x, y}, such that ...
1
vote
0answers
30 views
Symbol created in unevaluated second argument of If [duplicate]
Apologies for the long question title, but I couldn't come up with something shorter to describe the following.
Starting with a clean session, there are no symbols in, let's say, ...
4
votes
2answers
106 views
Using Greek letters with subscripts as symbols
I'd like to use Subscript[ϕ, 1] as a function name:
Subscript[ϕ, 1][x_] = C1 + C2*x + C3*Exp[α*x] + C4*Exp[-α*x]
But as I use
...
8
votes
1answer
103 views
Is it possible to write a function immune to symbol redefinitions in any Block surrounding its invocation?
Normally, semantics of symbols used in a function definition can be changed by their redefinitions in Blocks surrounding the function invocation:
...
7
votes
3answers
191 views
Is it possible to define custom compound assignment operators like ⊕= similar to built-ins +=, *= etc?
I would like to do something like this:
...
4
votes
0answers
36 views
8
votes
0answers
72 views
How to find the package file that stores a certain symbol?
Is it possible to figure out in what file a certain packaged symbol lives in (assuming there is no shadowing between multiple identical symbol names)? I would like to have a function that if, given a ...
6
votes
1answer
143 views
Telling mathematica to output * instead of space for multiplication, so I can copy as plain text
I am trying to get some symbolic expressions in Mathematica
which I would like to paste into my C/MATLAB codes. This can be accomplished
nicely by selecting the expression and right-clicking to ...
4
votes
1answer
163 views
Manipulate a Plot that contains a variable that contains symbol [duplicate]
This snippet
mm = m
Manipulate[{mm, Plot[mm x, {x, 0, 1}]}, {m, 0, 1}]
(m is not defined anywhere) produces a sadly fixed ...
4
votes
1answer
212 views
FeynCalc “May shadow or be shadowed by other definitions”
So I've downloaded the latest FeynCalc from this site and put the extracted folder in user/me/library/Mathematica/application, but when I write the command
...
2
votes
1answer
71 views
strange output from ToExpression
I want to set constraints to my parameters, e.g., "m", but Mma gives nonsensical output. How could I avoid this phenomenon by using another but "equivalent expression"?
Or, is this just in my computer ...
5
votes
1answer
109 views
Functions, Options and Symbols
In the normal Mathematica language, where no built-in symbols are redefined and no evil things happen, is it a valid assumptions, that no function symbol (Plot, ...
1
vote
1answer
93 views
How can one type a box with “x” marked?
In some text portion of my notebook, I would like to be write check boxes which are empty, check marked or "x" marked.
The following commands work for the first two:
...
1
vote
2answers
231 views
How to define a vector with automatically added symbolic elements with subscripts
I want to define a vector lets say k containing elements Symbolize[Subscript[k, 1]], k2, k3 ... etc. When I define lets say k4 . I want the symbol automatically added to vector k. Something like ...
2
votes
3answers
156 views
How to make a defined symbol stay in symbol form?
How to make a defined symbol stay in symbol form?
w = 3; g = 4;
{w, g}[[2]]
3
I want the output to be ...
4
votes
0answers
64 views
Is there a way to check whether two notebooks share the same variables?
When I code in Mathematica, I often re-use code from old notebooks which fulfilled a specific purpose; for example, one testing for soft matches in strings, or one that identifies outliers on a graph ...
2
votes
1answer
135 views
Transfer of symbols between contexts
As many others (I guess) I'm struggling with the handling of contexts within Mathematica. I'm working on a new package definition with the usual syntaxt specified by the Mathematica documentation:
...
6
votes
1answer
110 views
Go to definition of symbol/variable
Is there any easy way of directly jumping to the definition of a Variable like it is implemented in some good IDEs? Currently I have to search manually (ctrl+f) through the whole workbook to find it ...
13
votes
1answer
213 views
Is the sharing of variables in Module/Block within Compile documented behavior?
Today I noticed something, I think for the first time.
When used inside Compile variable values within Module (and ...
7
votes
3answers
173 views
How to set a TraditionalForm output for a symbol
How do I set a TraditionalForm output for a particular symbol/function?
In particular I would like my user-defined symbol ...
5
votes
1answer
320 views
Using the symbol I for electrical current [duplicate]
I would like to use the I as a symbol for the electrical current. How can I redefine it, so it is not interpreted as the imaginary unity?
3
votes
1answer
187 views
Using external variable as a variable inside WhenEvent & NDSolve
I'm trying to use the new WhenEvent functionality of NDSolve in Mathematica 9, in order to perform an action when a variable in the system reaches a certain value. I would like this variable to come ...