Click here to Skip to main content
16,005,080 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Summary problem Pin
Christian Graus25-Nov-06 13:01
protectorChristian Graus25-Nov-06 13:01 
GeneralRe: Summary problem Pin
RubyM25-Nov-06 14:29
RubyM25-Nov-06 14:29 
GeneralRe: Summary problem Pin
Christian Graus25-Nov-06 14:59
protectorChristian Graus25-Nov-06 14:59 
GeneralRe: Summary problem Pin
RubyM26-Nov-06 4:59
RubyM26-Nov-06 4:59 
GeneralRe: Summary problem Pin
Christian Graus26-Nov-06 8:09
protectorChristian Graus26-Nov-06 8:09 
GeneralRe: Summary problem Pin
RubyM26-Nov-06 10:55
RubyM26-Nov-06 10:55 
Question[HELP!!] How to solve a nonlinear equation in VB.Net? Pin
Niner9925-Nov-06 12:22
Niner9925-Nov-06 12:22 
AnswerRe: [HELP!!] How to solve a nonlinear equation in VB.Net? Pin
Thomas Stockwell25-Nov-06 15:36
professionalThomas Stockwell25-Nov-06 15:36 
Some code that I believe would be similar to the example you gave would be:

<br />
private void button1_Click(object sender, System.EventArgs e)<br />
{<br />
	const double c0=0,c1=1,c2=2,c3=3,c4=4, A=1;<br />
	double rval=0;//return value;<br />
	double toEval=Convert.ToDouble(this.numericUpDown1.Value);//Eval is equivelant to x<br />
<br />
	rval=c0+c1*toEval+c2*(Math.Pow(toEval,2))+c3*(Math.Pow(toEval,3))+c4*(Math.Pow(toEval,4))-A;<br />
			<br />
	MessageBox.Show(rval.ToString());<br />
}<br />


The code may be slightly different to accomodate the different values of all the const variables. The numericUpDown1 is a control i put on the form just to quickly select the different numbers. Basically just follow your order of operations and look into the functions of the System.Math class.



Regards,
Thomas Stockwell

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Visit my homepage Oracle Studios[^]

AnswerRe: [HELP!!] How to solve a nonlinear equation in VB.Net? Pin
CPallini26-Nov-06 10:43
mveCPallini26-Nov-06 10:43 
QuestionProblem With Data Report Pin
Mohammad Adnan25-Nov-06 7:27
Mohammad Adnan25-Nov-06 7:27 
Questionhelp Pin
Rmesh25-Nov-06 4:40
Rmesh25-Nov-06 4:40 
GeneralRe: help Pin
Are Jay25-Nov-06 5:32
Are Jay25-Nov-06 5:32 
AnswerHOMEWORK Pin
leckey25-Nov-06 15:50
leckey25-Nov-06 15:50 
GeneralRe: HOMEWORK Pin
Are Jay26-Nov-06 4:29
Are Jay26-Nov-06 4:29 
AnswerRe: help Pin
Pete O'Hanlon27-Nov-06 1:50
mvePete O'Hanlon27-Nov-06 1:50 
Questionvbsdk [modified] Pin
mermer4u25-Nov-06 4:16
mermer4u25-Nov-06 4:16 
AnswerRe: vbsdk Pin
Christian Graus25-Nov-06 15:47
protectorChristian Graus25-Nov-06 15:47 
Questionform background color Pin
Rmesh25-Nov-06 4:10
Rmesh25-Nov-06 4:10 
QuestionRe: form background color Pin
jsampsonPC25-Nov-06 6:06
jsampsonPC25-Nov-06 6:06 
AnswerRe: form background color Pin
leckey25-Nov-06 15:51
leckey25-Nov-06 15:51 
QuestionDll's registered on a machine Pin
Tarakeshwar Reddy25-Nov-06 3:56
professionalTarakeshwar Reddy25-Nov-06 3:56 
QuestionNAT Router Traversal Pin
stevenutt25-Nov-06 1:43
stevenutt25-Nov-06 1:43 
Questionhow to do combination of numbers in single table at both sql server and vb.net? Pin
sathyan_829424-Nov-06 21:23
sathyan_829424-Nov-06 21:23 
AnswerRe: how to do combination of numbers in single table at both sql server and vb.net? Pin
Guffa25-Nov-06 0:06
Guffa25-Nov-06 0:06 
GeneralRe: how to do combination of numbers in single table at both sql server and vb.net? Pin
sathyan_829425-Nov-06 0:50
sathyan_829425-Nov-06 0:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.