Notices
Results 1 to 5 of 5

Thread: Programers of the world unite!

  1. #1 Programers of the world unite! 
    Forum Sophomore CaveatLector's Avatar
    Join Date
    May 2006
    Location
    Turn left at the second light, three houses down on the right. You can't miss it.
    Posts
    152
    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.


    .
    .
    .
    Cogito, ergo doleo.

    There's a fine line between genius and insanity. I have erased this line.
    Oscar Levant
    Reply With Quote  
     

  2.  
     

  3. #2  
    Universal Mind John Galt's Avatar
    Join Date
    Jul 2005
    Posts
    14,168
    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?


    Reply With Quote  
     

  4. #3  
    Forum Sophomore CaveatLector's Avatar
    Join Date
    May 2006
    Location
    Turn left at the second light, three houses down on the right. You can't miss it.
    Posts
    152
    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
    .
    .
    .
    Cogito, ergo doleo.

    There's a fine line between genius and insanity. I have erased this line.
    Oscar Levant
    Reply With Quote  
     

  5. #4 Log Function 
    New Member
    Join Date
    Jul 2006
    Location
    San Jose, CA
    Posts
    2
    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.
    "Simplicity of character is no hindrance to the subtlety of intellect." -John Morley
    Reply With Quote  
     

  6. #5  
    Forum Sophomore CaveatLector's Avatar
    Join Date
    May 2006
    Location
    Turn left at the second light, three houses down on the right. You can't miss it.
    Posts
    152
    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.
    .
    .
    .
    Cogito, ergo doleo.

    There's a fine line between genius and insanity. I have erased this line.
    Oscar Levant
    Reply With Quote  
     

Bookmarks
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
  •