Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 25th, 2006, 9:41 PM   #1
enjoikr3w
Newbie
 
Join Date: Apr 2006
Posts: 1
Rep Power: 0 enjoikr3w is on a distinguished road
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
enjoikr3w is offline   Reply With Quote
Old Apr 25th, 2006, 10:23 PM   #2
andro
Professional Programmer
 
Join Date: Oct 2005
Location: California
Posts: 290
Rep Power: 3 andro is on a distinguished road
Send a message via AIM to andro
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.
andro is offline   Reply With Quote
Old Apr 26th, 2006, 1:22 AM   #3
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 708
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
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.
Booooze is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
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
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:28 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC