Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
AnswerRe: Detect Network / VPN Connection Pin
Nathan Minier15-Nov-18 1:38
professionalNathan Minier15-Nov-18 1:38 
QuestionKeeping connection strings secure Pin
Frank R. Haugen14-Nov-18 5:00
professionalFrank R. Haugen14-Nov-18 5:00 
AnswerRe: Keeping connection strings secure Pin
Richard MacCutchan14-Nov-18 5:29
mveRichard MacCutchan14-Nov-18 5:29 
AnswerRe: Keeping connection strings secure Pin
Eddy Vluggen15-Nov-18 1:27
professionalEddy Vluggen15-Nov-18 1:27 
Questionc# with ftp server Pin
erdalczr13-Nov-18 20:30
erdalczr13-Nov-18 20:30 
AnswerRe: c# with ftp server Pin
OriginalGriff13-Nov-18 20:39
mveOriginalGriff13-Nov-18 20:39 
AnswerRe: c# with ftp server Pin
Eddy Vluggen14-Nov-18 0:31
professionalEddy Vluggen14-Nov-18 0:31 
QuestionCan anyone help fix this issue ? c sharp Pin
Member 1405353013-Nov-18 10:53
Member 1405353013-Nov-18 10:53 
            double a;
            double da, fn, dfn_da;
            da = 0.00;
            double epsilon = 1.0e-10;
            bool converged = true;
            a = 10;
            int n = 0;
            do
            {
                for (int Ls = 10; Ls <= 30; Ls += 5)
                {
                    for (double H = 0.5; H <= 2.5; H += 0.5)
                    {

                        n++;
                        fn = a * Math.Cosh(Ls / (2 * a)) - a - H;

                        dfn_da = -(Ls * Math.Sinh(Ls / (2 * a)) / (2 * a)) + Math.Cosh(Ls / (2 * a)) - H;
                    
                        if (Math.Abs(dfn_da) < epsilon)
                        {
                            //Console.WriteLine("Re think your starting value...!");
                            converged = false;
                            break;
                        }
                        else if (n == 200)
                        {
                            // Console.WriteLine("Re think your function...no root!");
                            converged = false;
                            break;
                        }

                        da = -fn / dfn_da;

                        a += da;

                    }
                    while (Math.Abs(da) > epsilon)
                    {

                        if (converged)

                            Console.WriteLine("The root of the equation is: {0}", a);


                    }
                }
            
        }
    }
}

AnswerRe: Can anyone help fix this issue ? c sharp Pin
Mycroft Holmes13-Nov-18 11:05
professionalMycroft Holmes13-Nov-18 11:05 
AnswerRe: Can anyone help fix this issue ? c sharp Pin
OriginalGriff13-Nov-18 19:17
mveOriginalGriff13-Nov-18 19:17 
QuestionSeveral lists into one horizontal list Pin
Member 1307682212-Nov-18 22:12
Member 1307682212-Nov-18 22:12 
AnswerRe: Several lists into one horizontal list Pin
OriginalGriff12-Nov-18 23:42
mveOriginalGriff12-Nov-18 23:42 
AnswerRe: Several lists into one horizontal list Pin
BillWoodruff13-Nov-18 2:12
professionalBillWoodruff13-Nov-18 2:12 
GeneralRe: Several lists into one horizontal list Pin
Richard Deeming14-Nov-18 1:09
mveRichard Deeming14-Nov-18 1:09 
AnswerRe: Several lists into one horizontal list Pin
Richard Deeming14-Nov-18 1:18
mveRichard Deeming14-Nov-18 1:18 
QuestionCheck if xy point is within a polygon Console App Pin
Member 1192266611-Nov-18 23:15
Member 1192266611-Nov-18 23:15 
QuestionRe: Check if xy point is within a polygon Console App Pin
Richard MacCutchan11-Nov-18 23:19
mveRichard MacCutchan11-Nov-18 23:19 
AnswerRe: Check if xy point is within a polygon Console App Pin
Member 1192266611-Nov-18 23:35
Member 1192266611-Nov-18 23:35 
GeneralRe: Check if xy point is within a polygon Console App Pin
Richard MacCutchan11-Nov-18 23:43
mveRichard MacCutchan11-Nov-18 23:43 
GeneralRe: Check if xy point is within a polygon Console App Pin
OriginalGriff12-Nov-18 0:27
mveOriginalGriff12-Nov-18 0:27 
AnswerRe: Check if xy point is within a polygon Console App Pin
OriginalGriff11-Nov-18 23:31
mveOriginalGriff11-Nov-18 23:31 
QuestionWifi and LAN usage Pin
Ashfaque Hussain11-Nov-18 20:08
Ashfaque Hussain11-Nov-18 20:08 
AnswerRe: Wifi and LAN usage Pin
OriginalGriff11-Nov-18 21:17
mveOriginalGriff11-Nov-18 21:17 
GeneralRe: Wifi and LAN usage Pin
Ashfaque Hussain11-Nov-18 23:24
Ashfaque Hussain11-Nov-18 23:24 
GeneralRe: Wifi and LAN usage Pin
OriginalGriff11-Nov-18 23:34
mveOriginalGriff11-Nov-18 23:34 

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.