Article View: comp.lang.modula2
Article #3298Other Modula-2 Problems
From: M. Klepcyk
Date: Mon, 26 Feb 1996 08:43
Date: Mon, 26 Feb 1996 08:43
18 lines
1147 bytes
1147 bytes
Hi, I have some other questions also. I have to make a program that uses infinite series to approximate the value of SIN (a). The line that my teacher gave me for this is: "sin(a)=a-a3/3!+a5/5!-a7/7!+a9/9!...." What does this translate to in the way of a formula? I need to know this so I can write a procedure that will use the variable that will obviously be involved. Another problem concerns writing a procedure that will computer the binary XOR's of two decimal numbers. I know how to get the binary values for each of the decimal numbers (using MOD & DIV), but how do I compare the two binary numbers when I'm finished with this? Is there some kind of comparison command like with strings? Please advise. Thanks in advance!
Technical Details
Message-ID:
<313171a2.15277270@news-stand.acs.ohio-state.edu>Path:
arc1-ca.pugleaf.net!magnus.acs.ohio-state.edu!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!magnus.acs.ohio-state.edu!news From: mjk+@osu.edu (M. Klepcyk) Newsgroups: comp.lang.modula2 Subject: Other Modula-2 Problems Date: Mon, 26 Feb 1996 08:43:38 GMT Organization: The Ohio State University Message-ID: <313171a2.15277270@news-stand.acs.ohio-state.edu> Reply-To: mjk+@osu.edu NNTP-Posting-Host: slip5-15.acs.ohio-state.edu X-Newsreader: Forte Agent .99d/32.168