[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Equation Issues III

Posted on 2004-07-30
2
Medium Priority
?
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

656 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