Guest guest Posted September 8, 2002 Report Share Posted September 8, 2002 Hi Math-familiar-members, I have a simple Math expression which i'd like to verify and convert to a computer expression (condition). The math express is so: One has to check if the variable Delta is within the range (360 - alpha) -> 0 -> alpha. Alpha can be a -ve or a +ve fractional value. Now this is how i converted it in pascal/delphi: Result:=(aDeltaLI <= (360 - aAlpha)) and (aDeltaLI >= aAlpha); Could someone write back to me at mani246 personally and let me know if i'm correct. If i'm not correct please also explain why, and help me correct this expression. Plz don't reply to the mailing list if its not relevant in the list or if people are not going to benefit from it, use your instincts here. Awaiting some positive replies. Regards Mani ______________________ Want to sell your car? advertise on Autos Classifieds. It's Free!! visit http://in.autos. Quote Link to comment Share on other sites More sharing options...
Guest guest Posted September 8, 2002 Report Share Posted September 8, 2002 What you coded was a closed interval, [360-Alpha, Alpha] and does include the end points. If you meant the open interval (360-Alpha, Alpha), you should drop the equal signs. Similarly for the closed start [360-Alpha, Alpha) or closed end (360-Alpha, Alpha]. Since I cannot tell from your notation (360-Alpha) -> x ->Alpha , if you represent it using the standard notation (-> don't include end point, [-> include end point, maybe I can be more specific. Secondly if alpha is < 0, your expression does not work. Set Alpha = -1 then 361 <= DeltaLi <= -1 If what you intend to do is bound alpha to a finite number, in the range of [0,360] you must use 360+mod(ve,360) as DeltaLI to get the correct answer if ve < 0 and mod(ve,360) if ve >0 where mod is the modulus (remainder) of the number relative to the base 360 Hope this helps *********** REPLY SEPARATOR *********** On 9/8/02 at 11:40 AM Mani. Sark. wrote: >Hi Math-familiar-members, > >I have a simple Math expression which i'd like to >verify and convert to a computer expression >(condition). > >The math express is so: >One has to check if the variable Delta is within the >range (360 - alpha) -> 0 -> alpha. > >Alpha can be a -ve or a +ve fractional value. > >Now this is how i converted it in pascal/delphi: >Result:=(aDeltaLI <= (360 - aAlpha)) and (aDeltaLI >= >aAlpha); > >Could someone write back to me at mani246 >personally and let me know if i'm correct. If i'm not >correct please also explain why, and help me correct >this expression. > >Plz don't reply to the mailing list if its not >relevant in the list or if people are not going to >benefit from it, use your instincts here. > >Awaiting some positive replies. > >Regards >Mani > >______________________ >Want to sell your car? advertise on Autos Classifieds. It's Free!! > visit http://in.autos. > > > >Om Namo Bhagavate Vasudevaya; Hare Krishna; Om Tat Sat >: gjlist- > > > >Your use of is subject to Strange but stupid: "One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs" (Weren't Roman C programs always 500 lines long?) John F (Jack) Melka Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.