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,016

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

    It never ceases to amaze me...
    Code:
    int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000
    <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan
    (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000
    )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 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
    19,382
    I contemplated moving this to the appropriate forum, but I guess there is no appropriate forum.

    *thread closed*
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    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