Solved

Equation Issues III

Posted on 2004-07-30
2
205 Views
Last Modified: 2010-04-15
how would I go about getting these equations to ouput the values to the textfields in the web form as they are calculated?                  


double dr = Double.Parse(DR.Text);
                        double dl = Double.Parse(DL.Text);
                        double dt = Double.Parse(DT.Text);
                        double sn = Double.Parse(snD.Text);
                        double d = Double.Parse(d0.Text);
                        double s = Double.Parse(sT.Text);
                        double m = Double.Parse(MT.Text);
                        double dx = Double.Parse(dy.Text);
                        double ct = Double.Parse(cte.Text);
                        double sn2 = Double.Parse(snM.Text);      
                        double m1 = Double.Parse(ML.Text);
                        double m2 = Double.Parse(MT.Text);
                        double d1 = Double.Parse(dd0.Text);
                        double drs = Double.Parse(DRST.Text);
                        double d2 = Double.Parse(dd.Text);
                        double mrt = Double.Parse(MRST.Text);
 
snD.Text = double.Parse(snD.Text).ToString();

                        int z;
                        z = 1000;
                        TBox.Text = z.ToString();

                        //DL.Text = (double.Parse(Wavelength.Text) / double.Parse(TBox.Text)).ToString();
                        sn = (.0088641 + 1.07057 * (.0001)/(dl * dl) + (1.9893 *.000001)/(dl*4*4) - .00017175*(dl*dl)-(dt) * .000001*1+dt/900*(1.01+0.2)*(dl*dl));                                                                                                                                                                                                                               
                        d = (dr*dl)/sn;
                        s = (m - dt);
                        dx = d*(1+ct*s);

                        sn2 = (Double.Parse(".0088641") + 1.07057*(Double.Parse(".0001")/(m1 * m1)) + 1.9893*Math.Pow(Double.Parse(".000001")/m1, 4)- Double.Parse("1.7175E-04")*m1*m1-m * (Double.Parse(".000001")*(1+m/900)*(1.01+0.2*m1*m1)));
                        m2 = (sn2*d)/m1;
                        d1 = (drs*dl)/sn;
                        d2 = d1*(1+ct*s);
                        mrt = (sn2*d2)/m1;
0
Comment
Question by:devlins
  • 2
2 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11680551
d = (dr*dl)/sn;
d0.Text = d.Tostring()
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
ID: 11680557
oops ...

sn = (.0088641 + 1.07057 * (.0001)/(dl * dl) + (1.9893 *.000001)/(dl*4*4) - .00017175*(dl*dl)-(dt) * .000001*1+dt/900*(1.01+0.2)*(dl*dl));
sn2.Text = sn.ToString();

etc etc
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question