![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2006
Posts: 1
Rep Power: 0
![]() |
Help! linear interpolation
Guys i need to make a program in visual basic.NET for homework that uses a GUI interface to do simple linear interpolation. The problem is i am a complete noob when it come to programming. I have the GUI made already but i dont know how to code everything else. This is the link for the homework assignment
HOMEWORK Now I dont want yall to do it for me but can yall point me in the right direction? This is what i have so far. Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Lx, Nx, Hx, Ly, Ny, Hy, LxLy, LxHy, HxLy, HxHx, rx1, rx2, ans As Single
Lx = CSng(txtLX.text)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class |
|
|
|
|
|
#2 |
|
Professional Programmer
|
The homework says you need to do trilinear interpolation, not a simple linear.
Do you know how to do it by hand, for starters? Translating to code isn't the difficult part. |
|
|
|
|
|
#3 |
|
Expert Programmer
|
Yeah, make sure you know how to do it by hand frist before you start messing with code. then, do the whole math part step by step, just as you did it by hand (well almost). You need to learn how to use math and do simple expressions and functions on vb. I looked on google for some vb.net tutorials, and this seemed like a good one.
http://www.homeandlearn.co.uk/NET/vbNet.html do them all bit by bit, then use them as a reference to create your program. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|