How do I create a variable that uses I?
$begingroup$
I'm planning on working with a set of non-linear differential equations. A few of the equations look like:
Mathematica tells me that I
is protected. Is there any way I can set $I_{H1}$, for example, as a variable without having to use a different variable to represent it?
variable-definitions variable
$endgroup$
add a comment |
$begingroup$
I'm planning on working with a set of non-linear differential equations. A few of the equations look like:
Mathematica tells me that I
is protected. Is there any way I can set $I_{H1}$, for example, as a variable without having to use a different variable to represent it?
variable-definitions variable
$endgroup$
3
$begingroup$
I is the square root of minus 1. Just use another name.... how about "i"? Also, you will be better off not using subscripts as varables... subscripts are a formatting convenience, not a way to define variables.
$endgroup$
– bill s
Apr 18 at 3:50
add a comment |
$begingroup$
I'm planning on working with a set of non-linear differential equations. A few of the equations look like:
Mathematica tells me that I
is protected. Is there any way I can set $I_{H1}$, for example, as a variable without having to use a different variable to represent it?
variable-definitions variable
$endgroup$
I'm planning on working with a set of non-linear differential equations. A few of the equations look like:
Mathematica tells me that I
is protected. Is there any way I can set $I_{H1}$, for example, as a variable without having to use a different variable to represent it?
variable-definitions variable
variable-definitions variable
edited Apr 18 at 3:47
m_goldberg
89k873200
89k873200
asked Apr 18 at 3:28
K.MK.M
1204
1204
3
$begingroup$
I is the square root of minus 1. Just use another name.... how about "i"? Also, you will be better off not using subscripts as varables... subscripts are a formatting convenience, not a way to define variables.
$endgroup$
– bill s
Apr 18 at 3:50
add a comment |
3
$begingroup$
I is the square root of minus 1. Just use another name.... how about "i"? Also, you will be better off not using subscripts as varables... subscripts are a formatting convenience, not a way to define variables.
$endgroup$
– bill s
Apr 18 at 3:50
3
3
$begingroup$
I is the square root of minus 1. Just use another name.... how about "i"? Also, you will be better off not using subscripts as varables... subscripts are a formatting convenience, not a way to define variables.
$endgroup$
– bill s
Apr 18 at 3:50
$begingroup$
I is the square root of minus 1. Just use another name.... how about "i"? Also, you will be better off not using subscripts as varables... subscripts are a formatting convenience, not a way to define variables.
$endgroup$
– bill s
Apr 18 at 3:50
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
It is good practice to refrain from naming any variable with an initial capital letter in the ordinary roman font, because such identifiers can clash with ones already defined in the System`
context. As substitutes you can use any of the capital letters from the Letters tab of the Special Characters palette which can be display by clicking on Special Characters item on the Palettes menu. For I
there are four choices:
The first of these looks exactly like ordinary I
but it is actually capital iota. Note that it is colored blue, showing that it has no reserved definition.
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "387"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f195467%2fhow-do-i-create-a-variable-that-uses-i%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
It is good practice to refrain from naming any variable with an initial capital letter in the ordinary roman font, because such identifiers can clash with ones already defined in the System`
context. As substitutes you can use any of the capital letters from the Letters tab of the Special Characters palette which can be display by clicking on Special Characters item on the Palettes menu. For I
there are four choices:
The first of these looks exactly like ordinary I
but it is actually capital iota. Note that it is colored blue, showing that it has no reserved definition.
$endgroup$
add a comment |
$begingroup$
It is good practice to refrain from naming any variable with an initial capital letter in the ordinary roman font, because such identifiers can clash with ones already defined in the System`
context. As substitutes you can use any of the capital letters from the Letters tab of the Special Characters palette which can be display by clicking on Special Characters item on the Palettes menu. For I
there are four choices:
The first of these looks exactly like ordinary I
but it is actually capital iota. Note that it is colored blue, showing that it has no reserved definition.
$endgroup$
add a comment |
$begingroup$
It is good practice to refrain from naming any variable with an initial capital letter in the ordinary roman font, because such identifiers can clash with ones already defined in the System`
context. As substitutes you can use any of the capital letters from the Letters tab of the Special Characters palette which can be display by clicking on Special Characters item on the Palettes menu. For I
there are four choices:
The first of these looks exactly like ordinary I
but it is actually capital iota. Note that it is colored blue, showing that it has no reserved definition.
$endgroup$
It is good practice to refrain from naming any variable with an initial capital letter in the ordinary roman font, because such identifiers can clash with ones already defined in the System`
context. As substitutes you can use any of the capital letters from the Letters tab of the Special Characters palette which can be display by clicking on Special Characters item on the Palettes menu. For I
there are four choices:
The first of these looks exactly like ordinary I
but it is actually capital iota. Note that it is colored blue, showing that it has no reserved definition.
edited Apr 18 at 4:09
answered Apr 18 at 4:03
m_goldbergm_goldberg
89k873200
89k873200
add a comment |
add a comment |
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f195467%2fhow-do-i-create-a-variable-that-uses-i%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
$begingroup$
I is the square root of minus 1. Just use another name.... how about "i"? Also, you will be better off not using subscripts as varables... subscripts are a formatting convenience, not a way to define variables.
$endgroup$
– bill s
Apr 18 at 3:50