Alternative form of ArcSin[Sin[x]]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












Is it possible to get the following result in Mathematica by using only built-in functions:



$$arcsin( sin(x)) = x $$ if $x in [-pi /2 , pi/2]$



$$arcsin ( sin(x)) = pi - x $$ if $x in [pi /2 , 3pi/2]$










share|improve this question



























    up vote
    2
    down vote

    favorite
    1












    Is it possible to get the following result in Mathematica by using only built-in functions:



    $$arcsin( sin(x)) = x $$ if $x in [-pi /2 , pi/2]$



    $$arcsin ( sin(x)) = pi - x $$ if $x in [pi /2 , 3pi/2]$










    share|improve this question

























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      Is it possible to get the following result in Mathematica by using only built-in functions:



      $$arcsin( sin(x)) = x $$ if $x in [-pi /2 , pi/2]$



      $$arcsin ( sin(x)) = pi - x $$ if $x in [pi /2 , 3pi/2]$










      share|improve this question















      Is it possible to get the following result in Mathematica by using only built-in functions:



      $$arcsin( sin(x)) = x $$ if $x in [-pi /2 , pi/2]$



      $$arcsin ( sin(x)) = pi - x $$ if $x in [pi /2 , 3pi/2]$







      simplifying-expressions trigonometry education






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 11 hours ago









      David G. Stork

      22k21747




      22k21747










      asked 11 hours ago









      Gennaro Arguzzi

      315210




      315210




















          5 Answers
          5






          active

          oldest

          votes

















          up vote
          4
          down vote













          We can take the Floor and Ceiling from Carl's answer and expand them out:



          PiecewiseExpand[
          PowerExpand[ArcSin[Sin[x]], Assumptions -> x ∈ Reals],
          -π/2 < x < 3π/2
          ]


          enter image description here






          share|improve this answer




















          • Hello @ChipHurst, can you tell me why in the second line of the output there is True instead of "-pi/2<=x<=pi/2" please?
            – Gennaro Arguzzi
            1 hour ago

















          up vote
          3
          down vote













          @kglr was on the right track with PowerExpand. With the default option Assumptions->Automatic, Mathematica may return a result that is not valid. On the other hand, if you give PowerExpand a non-default assumption, then it will return a result valid given those assumptions. So, for your example:



          Assuming[
          x ∈ Reals,
          Simplify @ PowerExpand[ArcSin[Sin[x]], Assumptions -> x ∈ Reals]
          ]



          1/2 (-1)^(Ceiling[1/2 + x/π] + Floor[-(1/2) + x/π] +
          Floor[1/2 + x/π]) (π + (-1)^(
          Ceiling[1/2 + x/π] + Floor[1/2 + x/π]) π + 2 x -
          2 π Floor[1/2 + x/π])







          share|improve this answer






















          • Hello @CarlWoll, I have some difficult to interpret the solution. Can you explain me how it is related to the solution which I expected (the one in the question) please?
            – Gennaro Arguzzi
            1 hour ago

















          up vote
          1
          down vote













          enter image description here



          Plot[ArcSin[Sin[x]], π/2 TriangleWave[x/(2 π)], Abs[Mod[x - π/2, 2 π] - π] - π/2 + 
          0, -5, 5 // Evaluate,x, -10 π, 10 π]


          enter image description here



          With[x=RandomReal[-100,100,1000],
          ArcSin[Sin[x]] - # //Chop//Union]& /@ π/2 TriangleWave[x/(2 π)], Abs[Mod[x-π/2,2 π]-π]-π/2



          0, 0







          share|improve this answer





























            up vote
            0
            down vote













            Answer to the first question



            Simplify[x == ArcSin[Sin[x]], -Pi/2 <= x <= Pi/2]
            (* True *)





            share|improve this answer




















            • Hello @UlrichNeumann, if possible i'd like to avoid to specify the range -Pi/2 <= x <= Pi/2. I prefer a more general statement because the above one is valid also for instance when Simplify[x == ArcSin[Sin[x]], 0 <= x <= Pi/2]
              – Gennaro Arguzzi
              9 hours ago










            • @Gennaro Arguzzi You want to prove ArcSin[Sin[x]]=="triangle function"?
              – Ulrich Neumann
              9 hours ago










            • I'm looking for built-in functions that allow me to "simplify" arcsin(sin(x)).
              – Gennaro Arguzzi
              9 hours ago


















            up vote
            0
            down vote













            An easy way is to define a new function sin which will work as intended:



            sin /: (ArcSin[sin[x :(_Real | _Integer| _Rational)]]
            /;-(Pi/2)<=Mod[x, 2 Pi, -Pi/2] <= Pi/2) := x;
            sin /: (ArcSin[sin[x :(_Real | _Integer| _Rational)]]
            /; Pi/2<Mod[x, 2Pi,-Pi/2] < (3 Pi)/2) := Pi - x;
            sin[x_] := Sin[x];


            I intentionally restricted to real numbers (why I used heads Real, Integer, and Rational) so that I can use Mod.



            Instead of trying to convert each Sin to sin, we can automate it by



            $Pre = Function[# /. Sin -> sin];


            Now, we do not have to do anything: The code works as expected. For example



            Plot[ArcSin[Sin[x]], x, -Pi, 3 Pi]


            enter image description here






            share|improve this answer




















              Your Answer





              StackExchange.ifUsing("editor", function ()
              return StackExchange.using("mathjaxEditing", function ()
              StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
              StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
              );
              );
              , "mathjax-editing");

              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',
              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%2f185468%2falternative-form-of-arcsinsinx%23new-answer', 'question_page');

              );

              Post as a guest






























              5 Answers
              5






              active

              oldest

              votes








              5 Answers
              5






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              4
              down vote













              We can take the Floor and Ceiling from Carl's answer and expand them out:



              PiecewiseExpand[
              PowerExpand[ArcSin[Sin[x]], Assumptions -> x ∈ Reals],
              -π/2 < x < 3π/2
              ]


              enter image description here






              share|improve this answer




















              • Hello @ChipHurst, can you tell me why in the second line of the output there is True instead of "-pi/2<=x<=pi/2" please?
                – Gennaro Arguzzi
                1 hour ago














              up vote
              4
              down vote













              We can take the Floor and Ceiling from Carl's answer and expand them out:



              PiecewiseExpand[
              PowerExpand[ArcSin[Sin[x]], Assumptions -> x ∈ Reals],
              -π/2 < x < 3π/2
              ]


              enter image description here






              share|improve this answer




















              • Hello @ChipHurst, can you tell me why in the second line of the output there is True instead of "-pi/2<=x<=pi/2" please?
                – Gennaro Arguzzi
                1 hour ago












              up vote
              4
              down vote










              up vote
              4
              down vote









              We can take the Floor and Ceiling from Carl's answer and expand them out:



              PiecewiseExpand[
              PowerExpand[ArcSin[Sin[x]], Assumptions -> x ∈ Reals],
              -π/2 < x < 3π/2
              ]


              enter image description here






              share|improve this answer












              We can take the Floor and Ceiling from Carl's answer and expand them out:



              PiecewiseExpand[
              PowerExpand[ArcSin[Sin[x]], Assumptions -> x ∈ Reals],
              -π/2 < x < 3π/2
              ]


              enter image description here







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered 6 hours ago









              Chip Hurst

              19.5k15585




              19.5k15585











              • Hello @ChipHurst, can you tell me why in the second line of the output there is True instead of "-pi/2<=x<=pi/2" please?
                – Gennaro Arguzzi
                1 hour ago
















              • Hello @ChipHurst, can you tell me why in the second line of the output there is True instead of "-pi/2<=x<=pi/2" please?
                – Gennaro Arguzzi
                1 hour ago















              Hello @ChipHurst, can you tell me why in the second line of the output there is True instead of "-pi/2<=x<=pi/2" please?
              – Gennaro Arguzzi
              1 hour ago




              Hello @ChipHurst, can you tell me why in the second line of the output there is True instead of "-pi/2<=x<=pi/2" please?
              – Gennaro Arguzzi
              1 hour ago










              up vote
              3
              down vote













              @kglr was on the right track with PowerExpand. With the default option Assumptions->Automatic, Mathematica may return a result that is not valid. On the other hand, if you give PowerExpand a non-default assumption, then it will return a result valid given those assumptions. So, for your example:



              Assuming[
              x ∈ Reals,
              Simplify @ PowerExpand[ArcSin[Sin[x]], Assumptions -> x ∈ Reals]
              ]



              1/2 (-1)^(Ceiling[1/2 + x/π] + Floor[-(1/2) + x/π] +
              Floor[1/2 + x/π]) (π + (-1)^(
              Ceiling[1/2 + x/π] + Floor[1/2 + x/π]) π + 2 x -
              2 π Floor[1/2 + x/π])







              share|improve this answer






















              • Hello @CarlWoll, I have some difficult to interpret the solution. Can you explain me how it is related to the solution which I expected (the one in the question) please?
                – Gennaro Arguzzi
                1 hour ago














              up vote
              3
              down vote













              @kglr was on the right track with PowerExpand. With the default option Assumptions->Automatic, Mathematica may return a result that is not valid. On the other hand, if you give PowerExpand a non-default assumption, then it will return a result valid given those assumptions. So, for your example:



              Assuming[
              x ∈ Reals,
              Simplify @ PowerExpand[ArcSin[Sin[x]], Assumptions -> x ∈ Reals]
              ]



              1/2 (-1)^(Ceiling[1/2 + x/π] + Floor[-(1/2) + x/π] +
              Floor[1/2 + x/π]) (π + (-1)^(
              Ceiling[1/2 + x/π] + Floor[1/2 + x/π]) π + 2 x -
              2 π Floor[1/2 + x/π])







              share|improve this answer






















              • Hello @CarlWoll, I have some difficult to interpret the solution. Can you explain me how it is related to the solution which I expected (the one in the question) please?
                – Gennaro Arguzzi
                1 hour ago












              up vote
              3
              down vote










              up vote
              3
              down vote









              @kglr was on the right track with PowerExpand. With the default option Assumptions->Automatic, Mathematica may return a result that is not valid. On the other hand, if you give PowerExpand a non-default assumption, then it will return a result valid given those assumptions. So, for your example:



              Assuming[
              x ∈ Reals,
              Simplify @ PowerExpand[ArcSin[Sin[x]], Assumptions -> x ∈ Reals]
              ]



              1/2 (-1)^(Ceiling[1/2 + x/π] + Floor[-(1/2) + x/π] +
              Floor[1/2 + x/π]) (π + (-1)^(
              Ceiling[1/2 + x/π] + Floor[1/2 + x/π]) π + 2 x -
              2 π Floor[1/2 + x/π])







              share|improve this answer














              @kglr was on the right track with PowerExpand. With the default option Assumptions->Automatic, Mathematica may return a result that is not valid. On the other hand, if you give PowerExpand a non-default assumption, then it will return a result valid given those assumptions. So, for your example:



              Assuming[
              x ∈ Reals,
              Simplify @ PowerExpand[ArcSin[Sin[x]], Assumptions -> x ∈ Reals]
              ]



              1/2 (-1)^(Ceiling[1/2 + x/π] + Floor[-(1/2) + x/π] +
              Floor[1/2 + x/π]) (π + (-1)^(
              Ceiling[1/2 + x/π] + Floor[1/2 + x/π]) π + 2 x -
              2 π Floor[1/2 + x/π])








              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited 5 hours ago

























              answered 8 hours ago









              Carl Woll

              64.2k283167




              64.2k283167











              • Hello @CarlWoll, I have some difficult to interpret the solution. Can you explain me how it is related to the solution which I expected (the one in the question) please?
                – Gennaro Arguzzi
                1 hour ago
















              • Hello @CarlWoll, I have some difficult to interpret the solution. Can you explain me how it is related to the solution which I expected (the one in the question) please?
                – Gennaro Arguzzi
                1 hour ago















              Hello @CarlWoll, I have some difficult to interpret the solution. Can you explain me how it is related to the solution which I expected (the one in the question) please?
              – Gennaro Arguzzi
              1 hour ago




              Hello @CarlWoll, I have some difficult to interpret the solution. Can you explain me how it is related to the solution which I expected (the one in the question) please?
              – Gennaro Arguzzi
              1 hour ago










              up vote
              1
              down vote













              enter image description here



              Plot[ArcSin[Sin[x]], π/2 TriangleWave[x/(2 π)], Abs[Mod[x - π/2, 2 π] - π] - π/2 + 
              0, -5, 5 // Evaluate,x, -10 π, 10 π]


              enter image description here



              With[x=RandomReal[-100,100,1000],
              ArcSin[Sin[x]] - # //Chop//Union]& /@ π/2 TriangleWave[x/(2 π)], Abs[Mod[x-π/2,2 π]-π]-π/2



              0, 0







              share|improve this answer


























                up vote
                1
                down vote













                enter image description here



                Plot[ArcSin[Sin[x]], π/2 TriangleWave[x/(2 π)], Abs[Mod[x - π/2, 2 π] - π] - π/2 + 
                0, -5, 5 // Evaluate,x, -10 π, 10 π]


                enter image description here



                With[x=RandomReal[-100,100,1000],
                ArcSin[Sin[x]] - # //Chop//Union]& /@ π/2 TriangleWave[x/(2 π)], Abs[Mod[x-π/2,2 π]-π]-π/2



                0, 0







                share|improve this answer
























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  enter image description here



                  Plot[ArcSin[Sin[x]], π/2 TriangleWave[x/(2 π)], Abs[Mod[x - π/2, 2 π] - π] - π/2 + 
                  0, -5, 5 // Evaluate,x, -10 π, 10 π]


                  enter image description here



                  With[x=RandomReal[-100,100,1000],
                  ArcSin[Sin[x]] - # //Chop//Union]& /@ π/2 TriangleWave[x/(2 π)], Abs[Mod[x-π/2,2 π]-π]-π/2



                  0, 0







                  share|improve this answer














                  enter image description here



                  Plot[ArcSin[Sin[x]], π/2 TriangleWave[x/(2 π)], Abs[Mod[x - π/2, 2 π] - π] - π/2 + 
                  0, -5, 5 // Evaluate,x, -10 π, 10 π]


                  enter image description here



                  With[x=RandomReal[-100,100,1000],
                  ArcSin[Sin[x]] - # //Chop//Union]& /@ π/2 TriangleWave[x/(2 π)], Abs[Mod[x-π/2,2 π]-π]-π/2



                  0, 0








                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 30 mins ago

























                  answered 1 hour ago









                  chyanog

                  6,78921545




                  6,78921545




















                      up vote
                      0
                      down vote













                      Answer to the first question



                      Simplify[x == ArcSin[Sin[x]], -Pi/2 <= x <= Pi/2]
                      (* True *)





                      share|improve this answer




















                      • Hello @UlrichNeumann, if possible i'd like to avoid to specify the range -Pi/2 <= x <= Pi/2. I prefer a more general statement because the above one is valid also for instance when Simplify[x == ArcSin[Sin[x]], 0 <= x <= Pi/2]
                        – Gennaro Arguzzi
                        9 hours ago










                      • @Gennaro Arguzzi You want to prove ArcSin[Sin[x]]=="triangle function"?
                        – Ulrich Neumann
                        9 hours ago










                      • I'm looking for built-in functions that allow me to "simplify" arcsin(sin(x)).
                        – Gennaro Arguzzi
                        9 hours ago















                      up vote
                      0
                      down vote













                      Answer to the first question



                      Simplify[x == ArcSin[Sin[x]], -Pi/2 <= x <= Pi/2]
                      (* True *)





                      share|improve this answer




















                      • Hello @UlrichNeumann, if possible i'd like to avoid to specify the range -Pi/2 <= x <= Pi/2. I prefer a more general statement because the above one is valid also for instance when Simplify[x == ArcSin[Sin[x]], 0 <= x <= Pi/2]
                        – Gennaro Arguzzi
                        9 hours ago










                      • @Gennaro Arguzzi You want to prove ArcSin[Sin[x]]=="triangle function"?
                        – Ulrich Neumann
                        9 hours ago










                      • I'm looking for built-in functions that allow me to "simplify" arcsin(sin(x)).
                        – Gennaro Arguzzi
                        9 hours ago













                      up vote
                      0
                      down vote










                      up vote
                      0
                      down vote









                      Answer to the first question



                      Simplify[x == ArcSin[Sin[x]], -Pi/2 <= x <= Pi/2]
                      (* True *)





                      share|improve this answer












                      Answer to the first question



                      Simplify[x == ArcSin[Sin[x]], -Pi/2 <= x <= Pi/2]
                      (* True *)






                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered 9 hours ago









                      Ulrich Neumann

                      5,617413




                      5,617413











                      • Hello @UlrichNeumann, if possible i'd like to avoid to specify the range -Pi/2 <= x <= Pi/2. I prefer a more general statement because the above one is valid also for instance when Simplify[x == ArcSin[Sin[x]], 0 <= x <= Pi/2]
                        – Gennaro Arguzzi
                        9 hours ago










                      • @Gennaro Arguzzi You want to prove ArcSin[Sin[x]]=="triangle function"?
                        – Ulrich Neumann
                        9 hours ago










                      • I'm looking for built-in functions that allow me to "simplify" arcsin(sin(x)).
                        – Gennaro Arguzzi
                        9 hours ago

















                      • Hello @UlrichNeumann, if possible i'd like to avoid to specify the range -Pi/2 <= x <= Pi/2. I prefer a more general statement because the above one is valid also for instance when Simplify[x == ArcSin[Sin[x]], 0 <= x <= Pi/2]
                        – Gennaro Arguzzi
                        9 hours ago










                      • @Gennaro Arguzzi You want to prove ArcSin[Sin[x]]=="triangle function"?
                        – Ulrich Neumann
                        9 hours ago










                      • I'm looking for built-in functions that allow me to "simplify" arcsin(sin(x)).
                        – Gennaro Arguzzi
                        9 hours ago
















                      Hello @UlrichNeumann, if possible i'd like to avoid to specify the range -Pi/2 <= x <= Pi/2. I prefer a more general statement because the above one is valid also for instance when Simplify[x == ArcSin[Sin[x]], 0 <= x <= Pi/2]
                      – Gennaro Arguzzi
                      9 hours ago




                      Hello @UlrichNeumann, if possible i'd like to avoid to specify the range -Pi/2 <= x <= Pi/2. I prefer a more general statement because the above one is valid also for instance when Simplify[x == ArcSin[Sin[x]], 0 <= x <= Pi/2]
                      – Gennaro Arguzzi
                      9 hours ago












                      @Gennaro Arguzzi You want to prove ArcSin[Sin[x]]=="triangle function"?
                      – Ulrich Neumann
                      9 hours ago




                      @Gennaro Arguzzi You want to prove ArcSin[Sin[x]]=="triangle function"?
                      – Ulrich Neumann
                      9 hours ago












                      I'm looking for built-in functions that allow me to "simplify" arcsin(sin(x)).
                      – Gennaro Arguzzi
                      9 hours ago





                      I'm looking for built-in functions that allow me to "simplify" arcsin(sin(x)).
                      – Gennaro Arguzzi
                      9 hours ago











                      up vote
                      0
                      down vote













                      An easy way is to define a new function sin which will work as intended:



                      sin /: (ArcSin[sin[x :(_Real | _Integer| _Rational)]]
                      /;-(Pi/2)<=Mod[x, 2 Pi, -Pi/2] <= Pi/2) := x;
                      sin /: (ArcSin[sin[x :(_Real | _Integer| _Rational)]]
                      /; Pi/2<Mod[x, 2Pi,-Pi/2] < (3 Pi)/2) := Pi - x;
                      sin[x_] := Sin[x];


                      I intentionally restricted to real numbers (why I used heads Real, Integer, and Rational) so that I can use Mod.



                      Instead of trying to convert each Sin to sin, we can automate it by



                      $Pre = Function[# /. Sin -> sin];


                      Now, we do not have to do anything: The code works as expected. For example



                      Plot[ArcSin[Sin[x]], x, -Pi, 3 Pi]


                      enter image description here






                      share|improve this answer
























                        up vote
                        0
                        down vote













                        An easy way is to define a new function sin which will work as intended:



                        sin /: (ArcSin[sin[x :(_Real | _Integer| _Rational)]]
                        /;-(Pi/2)<=Mod[x, 2 Pi, -Pi/2] <= Pi/2) := x;
                        sin /: (ArcSin[sin[x :(_Real | _Integer| _Rational)]]
                        /; Pi/2<Mod[x, 2Pi,-Pi/2] < (3 Pi)/2) := Pi - x;
                        sin[x_] := Sin[x];


                        I intentionally restricted to real numbers (why I used heads Real, Integer, and Rational) so that I can use Mod.



                        Instead of trying to convert each Sin to sin, we can automate it by



                        $Pre = Function[# /. Sin -> sin];


                        Now, we do not have to do anything: The code works as expected. For example



                        Plot[ArcSin[Sin[x]], x, -Pi, 3 Pi]


                        enter image description here






                        share|improve this answer






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          An easy way is to define a new function sin which will work as intended:



                          sin /: (ArcSin[sin[x :(_Real | _Integer| _Rational)]]
                          /;-(Pi/2)<=Mod[x, 2 Pi, -Pi/2] <= Pi/2) := x;
                          sin /: (ArcSin[sin[x :(_Real | _Integer| _Rational)]]
                          /; Pi/2<Mod[x, 2Pi,-Pi/2] < (3 Pi)/2) := Pi - x;
                          sin[x_] := Sin[x];


                          I intentionally restricted to real numbers (why I used heads Real, Integer, and Rational) so that I can use Mod.



                          Instead of trying to convert each Sin to sin, we can automate it by



                          $Pre = Function[# /. Sin -> sin];


                          Now, we do not have to do anything: The code works as expected. For example



                          Plot[ArcSin[Sin[x]], x, -Pi, 3 Pi]


                          enter image description here






                          share|improve this answer












                          An easy way is to define a new function sin which will work as intended:



                          sin /: (ArcSin[sin[x :(_Real | _Integer| _Rational)]]
                          /;-(Pi/2)<=Mod[x, 2 Pi, -Pi/2] <= Pi/2) := x;
                          sin /: (ArcSin[sin[x :(_Real | _Integer| _Rational)]]
                          /; Pi/2<Mod[x, 2Pi,-Pi/2] < (3 Pi)/2) := Pi - x;
                          sin[x_] := Sin[x];


                          I intentionally restricted to real numbers (why I used heads Real, Integer, and Rational) so that I can use Mod.



                          Instead of trying to convert each Sin to sin, we can automate it by



                          $Pre = Function[# /. Sin -> sin];


                          Now, we do not have to do anything: The code works as expected. For example



                          Plot[ArcSin[Sin[x]], x, -Pi, 3 Pi]


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 5 hours ago









                          Soner

                          77349




                          77349



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f185468%2falternative-form-of-arcsinsinx%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Comments

                              Popular posts from this blog

                              What does second last employer means? [closed]

                              Installing NextGIS Connect into QGIS 3?

                              One-line joke