It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Math problem R**2...

Moderator: dafunkymunky

Math problem R**2...

Postby dv3119 on Fri Jun 22, 2007 3:31 pm

Hi, I'm new to VB.Net and I've only had a little experience with VB6.

I have a math problem that I don't know how to code. It is a correction factor for hydrometer readings based on temperature.

This is the equation with the only variable being the temperature = 'T'. (ºF)

Correction = 1.313454 - 0.132674*T + 2.057793e-3*T**2 - 2.627634e-6*T**3


Anybody know how to do this and what the double ** means?

Thanks.
dv3119
 
Posts: 0
Joined: Fri Jun 22, 2007 3:20 pm

Postby dafunkymunky on Sat Jul 07, 2007 6:42 pm

** means ^ (raised to the power of)

and it can be solved by this code..

res=1.313454 - 0.132674*T + .002057793*(T^2) - .000002627634*(T^3)
--------DAFUNKYMUNKY--------
::THE::NECESSARY::[D]EVIL::
....errr i mean munky....
User avatar
dafunkymunky
100+ Club
 
Posts: 183
Joined: Fri Apr 08, 2005 7:32 am
Location: India


Who is online

Users browsing this forum: No registered users and 3 guests