Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Programming Trig


  • Please log in to reply
5 replies to this topic

#1 TelMeDragon

TelMeDragon

  • Members
  • 80 posts
  • OFFLINE
  •  
  • Local time:06:29 AM

Posted 22 February 2008 - 12:49 AM

So I started programming a bit, and my first program was converting Celsius to Fahrenheit. This inspired me to make one for trigonomic (<-- is this a word?) functions. My only problem is, how do I write out Sine, Cosine, and Tangent in programming language? Thank you for your replies.
Posted Image

BC AdBot (Login to Remove)

 


#2 Keithuk

Keithuk

  • Members
  • 957 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:29 PM

Posted 22 February 2008 - 08:16 AM

It depends which programming language you are using. In VB6 there are Sin, Cos and Tan functions. :thumbsup:

Keith

Windows ME (spare computer)
Windows XP 2002 Professional SP3 (desktop computer)
Windows 7 Professional SP1 32bit (laptop computer)

Windows 8 64bit spare drive for laptop computer


#3 Guest_danbrownlow_*

Guest_danbrownlow_*

  • Guests
  • OFFLINE
  •  

Posted 22 February 2008 - 08:38 AM

The power of google =] Just do a quick search for the language plus maths functions or something like that. Will sure enough find some awesome sites to help you along. If your using Java, remember about the Java API. Is a lifesaver =]

#4 TelMeDragon

TelMeDragon
  • Topic Starter

  • Members
  • 80 posts
  • OFFLINE
  •  

Posted 22 February 2008 - 03:41 PM

Whoops, sorry, I'm using C++.
Posted Image

#5 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:06:29 AM

Posted 22 February 2008 - 04:23 PM

So you mean you couldn't find anything by simply plugging 'c++ trig functions' into your favorite search engine?

#6 Ryan 3000

Ryan 3000

  • Members
  • 834 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Maryland
  • Local time:05:29 AM

Posted 02 April 2008 - 04:59 PM

make one for trigonomic (<-- is this a word?)

trigonometric :thumbsup:
No pessimist ever discovered the secrets of the stars, or sailed to an uncharted land.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users