Created
September 25, 2019 07:24
-
-
Save benone/e22262db358341e9ab8f4d6b695c6f10 to your computer and use it in GitHub Desktop.
vb_lab.vbx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function Lab13(ByVal a As Decimal, ByVal b As Decimal, ByVal c As Decimal) As Decimal | |
Dim decimalResult as Decimal = | |
( | |
a + Math.Sqrt(2*(a + b)) + 5 | |
) / | |
( | |
4 * Math.Sin(c/2) | |
) + | |
(a * b^2) ^ 1/3 + | |
18 + | |
Math.Cos(c) ^ (a-b) | |
Return decimalResult | |
End Function | |
Public Sub Main(args() As string) | |
Const pi As Double = 3.14159265358979 | |
Dim result As Decimal = Lab13(7, 3, pi) | |
Console.WriteLine(result) | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment