Loading ...
Sorry, an error occurred while loading the content.

My trig does not work in version 7

Expand Messages
  • Rodney
    I have been using the following clip for the past seven years without any problems. Now I have upgraded to version 7 it does not work. Sometimes it works, but
    Message 1 of 2 , Nov 24, 2012
    • 0 Attachment
      I have been using the following clip for the past seven years without any problems. Now I have upgraded to version 7 it does not work. Sometimes it works, but it is dependant on the configuration of points and angles. any suggestions for making it work in version 7 would be most appreciated.


      ^!Set %H24%=^?{Center of circle in X=^%H24%}; %H25%=^?{Center of circle in Y=^%H25%}; %H23%=^?{Radius of circle=^%H23%}; %H11%=^?{Number of points=^%H11%}; %H1%=^?{Angle to first point=^%H1%}

      ^!IfCancel Exit

      ^!Set %H19%=1
      :Start
      ^!if ^%H19% > ^%H11% Stop
      ^!Set %H30%=^$Calc((^%H19%-1)*360/^%H11%+^%H1%;3)$
      ^!Set %X%=^$Calc(Cos(^%H30%*Pi/180);3)$
      ^!Set %Y%=^$Calc(Sin(^%H30%*Pi/180);3)$
      ^!Set %X%=^$Calc(^%X%*^%H23%+^%H24%;3)$
      ^!Set %Y%=^$Calc(^%Y%*^%H23%+^%H25%;3)$
      X^%X% Y^%Y%^%NL%
      ^!Set %H19%=^$Calc(^%H19%+1)$
      ^!GoTo Start
      :Stop
    • Rodney
      It is actually version 7.1 that I have and after reading the What s new file, I think it could be changes made after version 7 that are giving me problems.
      Message 2 of 2 , Nov 25, 2012
      • 0 Attachment
        It is actually version 7.1 that I have and after reading the 'What's new' file, I think it could be changes made after version 7 that are giving me problems. Basic trigomometry is finding arcs or points on a circle and I am not convinced that version 7.1 can do this. I sicerely hope that someone can prove to me that it can.



        --- In ntb-clips@yahoogroups.com, "Rodney" <rodney.cook6@...> wrote:
        >
        > I have been using the following clip for the past seven years without any problems. Now I have upgraded to version 7 it does not work. Sometimes it works, but it is dependant on the configuration of points and angles. any suggestions for making it work in version 7 would be most appreciated.
        >
        >
        > ^!Set %H24%=^?{Center of circle in X=^%H24%}; %H25%=^?{Center of circle in Y=^%H25%}; %H23%=^?{Radius of circle=^%H23%}; %H11%=^?{Number of points=^%H11%}; %H1%=^?{Angle to first point=^%H1%}
        >
        > ^!IfCancel Exit
        >
        > ^!Set %H19%=1
        > :Start
        > ^!if ^%H19% > ^%H11% Stop
        > ^!Set %H30%=^$Calc((^%H19%-1)*360/^%H11%+^%H1%;3)$
        > ^!Set %X%=^$Calc(Cos(^%H30%*Pi/180);3)$
        > ^!Set %Y%=^$Calc(Sin(^%H30%*Pi/180);3)$
        > ^!Set %X%=^$Calc(^%X%*^%H23%+^%H24%;3)$
        > ^!Set %Y%=^$Calc(^%Y%*^%H23%+^%H25%;3)$
        > X^%X% Y^%Y%^%NL%
        > ^!Set %H19%=^$Calc(^%H19%+1)$
        > ^!GoTo Start
        > :Stop
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.