Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > sinus cosinus tangens


Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2004, 09:39 AM
BM85 BM85 is offline
Newcomer
 
Join Date: Nov 2003
Location: Germany
Posts: 23
Smile sinus cosinus tangens


Hi everyone,
I'm writing a mathamatical programm at the moment. My problem is that I can't calculate the sinus(sin), cosinus(cos) or tangens(tan) of one number. I tried for example:
result = sin(4)
But that doesn't work. Can anyone help me please?

Reply With Quote
  #2  
Old 01-30-2004, 09:44 AM
an5w3r's Avatar
an5w3r an5w3r is offline
Senior Contributor
 
Join Date: Jan 2004
Location: Romania
Posts: 1,342
Default

somthing like
Text1.Text = Format$(Sin(xa * 3.14 / 180), "#.0000")

check this link: http://www.w3schools.com/vbscript/func_sin.asp
__________________
Fully customizable and easy to use .NET WPF charting library http://www.SoftwareGFX.com
Reply With Quote
  #3  
Old 01-30-2004, 09:44 AM
bk2003's Avatar
bk2003 bk2003 is offline
Contributor
 
Join Date: Aug 2003
Location: Gothenburg, Sweden
Posts: 648
Default

The result should be

-0,756802495307928

Remember VB use angle in radians
Reply With Quote
  #4  
Old 01-30-2004, 09:45 AM
Directrix's Avatar
Directrix Directrix is offline
Centurion
 
Join Date: Sep 2003
Location: Ontario, Canada
Posts: 161
Default

It should work!
Code:
result = Sin(4) result = Cos(4) result = Tan(4)
__________________
[Directrix]
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jumping function in 2D Game, Sinus? Commodore Game Programming 10 01-09-2003 10:56 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->