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

Thread Tools Display Modes
Old 01-30-2004, 10:39 AM
BM85 BM85 is offline
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
Old 01-30-2004, 10:44 AM
an5w3r's Avatar
an5w3r an5w3r is offline
Senior Contributor
Join Date: Jan 2004
Location: Romania
Posts: 1,342

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
Old 01-30-2004, 10:44 AM
bk2003's Avatar
bk2003 bk2003 is offline
Join Date: Aug 2003
Location: Gothenburg, Sweden
Posts: 648

The result should be


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

It should work!
result = Sin(4) result = Cos(4) result = Tan(4)
Reply With Quote

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 11:56 AM


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.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
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..