can someone help me on C program

This is a discussion on can someone help me on C program within the C++ Programming forums, part of the General Programming Boards category; is there any one that help me on this problem, the equation of a uniformly loaded beam is EId^2y/dx^2 = ...

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    2

    Question can someone help me on C program

    is there any one that help me on this problem, the equation of a uniformly loaded beam is EId^2y/dx^2 = wx/2* (L-x),
    the boundary conditions are at x =0, y=0
    and at x =L, y = 0.
    where E=200GPa, I = 1*10^-7m^4, L= 1m, w = 100N/m. solve for the deflection of the beams using the following methods:
    (a) finite difference method
    (b) shooting method.
    write it with C program and send the file to me.
    thnx

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,215

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    >> write it with C program and send the file to me.

    It never ceases to amaze me...
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  4. #4
    Registered User
    Join Date
    Apr 2009
    Posts
    4
    Code:
    10      E=200GPa
    20      I = 1*10^-7m^4
    30      L= 1m, w = 100N/m
    40      EId^2y/dx^2 = wx/2* (L-x)
    50      GOTO 10

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by Sebastiani View Post
    >> write it with C program and send the file to me.

    It never ceases to amaze me...
    I sincerely hope these people get weeded out of the system before advancing into the workplace.

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,623
    I contemplated moving this to the appropriate forum, but I guess there is no appropriate forum.

    *thread closed*
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 12:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 12:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21