Community discussion forum

[66] Mathematical Functions

Tags:
  • 9 years ago

    This thread is for discussions of Mathematical Functions.

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 3 years ago

    I am consistently getting problems with VB's logarithm function. In fact, on my TI-89, log(1.31) returns 0.11727..., not the number you gave, not 0.27... I am trying to write a program to calculate gain changes in microphones, given by the formula 20 * log(old distance / new distance) and the program is returning the wrong values. Any suggestions?

  • 3 years ago

    the VB log function is the natural logarithm (base e), not a base 10 logarithm. the help files/MSDN have samples for making a base10 logarithm function... its something like:


    log(number)/log(e), where e is a special constant

  • 3 years ago

    If you're using the TI-89, the ln(x) function is the same as VB's log(x) function. If you want to use the ti-89's log(x) function in VB, you have to do log(x)/log(10). You should get the right answer.

Post a reply

Enter your message below

Sign in or Join us (it's free).