How do I create a variable that uses I?












2












$begingroup$


I'm planning on working with a set of non-linear differential equations. A few of the equations look like:



enter image description here



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?










share|improve this question











$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
















2












$begingroup$


I'm planning on working with a set of non-linear differential equations. A few of the equations look like:



enter image description here



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?










share|improve this question











$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














2












2








2





$begingroup$


I'm planning on working with a set of non-linear differential equations. A few of the equations look like:



enter image description here



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?










share|improve this question











$endgroup$




I'm planning on working with a set of non-linear differential equations. A few of the equations look like:



enter image description here



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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














  • 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










1 Answer
1






active

oldest

votes


















4












$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:



alt_cap_I



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.






share|improve this answer











$endgroup$














    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    4












    $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:



    alt_cap_I



    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.






    share|improve this answer











    $endgroup$


















      4












      $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:



      alt_cap_I



      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.






      share|improve this answer











      $endgroup$
















        4












        4








        4





        $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:



        alt_cap_I



        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.






        share|improve this answer











        $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:



        alt_cap_I



        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.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 18 at 4:09

























        answered Apr 18 at 4:03









        m_goldbergm_goldberg

        89k873200




        89k873200






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Plaza Victoria

            In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

            How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...