Questions tagged [localization]
The localization tag has no summary.
31 questions
4 votes
3 answers
306 views
How to get the values of Manipulate control variables programmatically into a variable
Assume you have created the code for control Manipulate variables and the name thereof somewhere: iter = {{a1, 1, 2}, {a2, 1, 2}}; var = {a1, a2}; Now you want to ...
4 votes
1 answer
151 views
Variable localisation in Table
I'm trying to understand Mathematica's behavior when creating a Table based on a given list of variables. I'm using a dummy variable to iterate through the list, and I want to make sure that ...
2 votes
0 answers
168 views
Most efficient way to define several local constants in a function -- Block or nested Withs?
Sorry if this is kind of a noob question but I'm wondering what the best-performing approach is to the following: I'd like to define several local constants in the body of a function, each of which ...
1 vote
1 answer
140 views
Is there a way to import GPS height-position data from a navigating vessel in real time to Mathematica?
After reading this, I found that Mathematica could be a useful tool to analyse GPS data from a navigating vessel at sea. But this example is for land-based fixed positions, i.e. the position of a lake ...
5 votes
1 answer
121 views
Automatic scoping of input to function
I'd like to write a function whose arguments contains symbols that are automatically localized, just like some built-in functions, like Sum. Even better, I'd like to see the symbols' color change, to ...
5 votes
1 answer
319 views
Is it necessary to use Print inside a Block? [closed]
If I use a Block with variables already used and ask it to Solve an equation inside the Block...
3 votes
1 answer
136 views
Let Monitor show the result returned by Module?
I wrote a simple solver to solve an equation with two parameters a and b. At the same time, ...
1 vote
1 answer
255 views
Accommodating local variables within Dynamic
I would like to use a local variable within Dynamic, but that may not work, and the front end will show the local variable in red to give a warning. However, if I ...
3 votes
1 answer
420 views
When a list is not a list [closed]
When I provide a list of local variables to Module, it complains that it is not a list: v = {x, y}; Module[v, x = 2] ... Module: Local variable specification v is not a List. So my question is how do ...
0 votes
1 answer
100 views
Manipulate: variable localization inside nested `Control`
Below is a piece of my code I have trouble with: ...
11 votes
1 answer
298 views
Proper Syntax highlighting for multi-argument With?
For the case of Block and Module one can choose to define values in the body for the variable names being scoped. So there is no ...
0 votes
0 answers
54 views
Creating functions that ignore if a variable is already set [duplicate]
I have noticed that there are functions in Mathematica that are ignoring already set parameters. I.e. Plot: ...
0 votes
2 answers
83 views
Dropping \$NUMBER from local var$number when passing results from a Module [duplicate]
I'm sure this has been asked, but I can't seem to find the correct terms to find it. I have a function that looks something like this ...
8 votes
0 answers
136 views
Multilingual code captions for user functions
Mathematica 11 features multilingual code captions for built-in symbols. How do I define code captions in different languages for my own functions which may go into a Mathematica application/package?
8 votes
1 answer
320 views
How does Context work? [duplicate]
I thought when we type a symbol without specifying its Context, it will search all the Context in ...