BleepingComputer.com: Programming Trig

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Programming Trig

#1 User is offline   TelMeDragon 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 80
  • Joined: 10-January 07

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

#2 User is offline   Keithuk 

  • Distinguished Member
  • PipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 800
  • Joined: 25-January 07
  • Gender:Male

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

Martin2k

Windows ME (spare computer)
Windows XP 2002 Professional SP3 (desktop computer)
Windows Vista Home Premium SP2 (laptop computer)

#3 User is offline   danbrownlow 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 99
  • Joined: 05-March 07
  • Gender:Male

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 User is offline   TelMeDragon 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 80
  • Joined: 10-January 07

Posted 22 February 2008 - 03:41 PM

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

#5 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,604
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

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?
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#6 User is offline   Ryan 3000 

  • Distinguished Member
  • PipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 834
  • Joined: 02-June 07
  • Gender:Male
  • Location:Maryland

Posted 02 April 2008 - 04:59 PM

View PostTelMeDragon, on Feb 22 2008, 01:49 AM, said:

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users