# Thread: Programers of the world unite!

1. With some Visual Basic .net experience, what do you think is the most appropritate or useful course to take next?

Another Visual Basic course,
C/C++
Java.  2.

3. My programming skills atrophied at the BASIC and FORTRAN level, with a smattering of Assembly Language for HP2100 mini-computers, so you are asking the wrong person.

Surely, it depends on what you want to do with the programming?  4. Surely, it depends on what you want to do with the programming?
Learn it, I suppose.
I believe I was mistaken when I posted this in the first place. Upon further investigation, I will be able to take C/C++ and either a more advanced Visual Basic or Java course, so the options have narrowed considerably.

On another note, does anyone know how to input logarithmic functions into Visual Basic .net?
I wrote a small program to calculate CNR, CTB (composite triple beat), and CSO (composite second order) for RF amplifiers. The simple math, I can handle, but I have not a clue how to correctly assign certain values in a logarithmic function.

Here's the code, in part:
The area in bold is where I need the log. So far it seems that I need to make a public class of some sort instead of private, but I'm totally lost.

......
Dim MBCNR As Double
Dim LECNR As Double
Dim BTDCNR As Double
Dim total As Double

MBCNR = 10 ^ ((Double.Parse(Me.uiAmp1ReslutText.Text) * -1) / 10)
LECNR = 10 ^ ((Double.Parse(Me.uiLeResultTextBox.Text) * -1) / 10)
BTDCNR = 10 ^ ((Double.Parse(Me.uiBTCNRTextBox.Text) * -1) / 10)

total = -10 * log(MBCNR + LECNR + BTDCNR)

Me.uiTotalLabel.Text = Convert.ToString(total)

End Sub
End Class  5. According to MSDN, to whom we owe praise,

"Log() - Math.Log Method Returns a Double value containing the logarithm of a specified number. This method is overloaded and can return either the natural (base e) logarithm of a specified number or the logarithm of a specified number in a specified base."

So try using the Imports System.Math statement to include the math namespace in your project.  6. Yep, Math.log was it.

I found the answer some time ago and, for some reason, it was a beast to track down.

The program is up and running.

Thanks for the assistance, Mr. Door.  Bookmarks
 Posting Permissions
 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 On [VIDEO] code is On HTML code is Off Trackbacks are Off Pingbacks are Off Refbacks are On Terms of Use Agreement