Results 1 to 5 of 5

Thread: C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User dreamtouch's Avatar
    Join Date: Feb:2008
    Location: Bulgaria
    Posts: 28

    C++

    ! , f(x)=x^5+3 ?

  2. #2
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    , . . , - , .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  3. #3
    Registered User dreamtouch's Avatar
    Join Date: Feb:2008
    Location: Bulgaria
    Posts: 28
    #include <iostream>
    using namespace std;
    #include <math.h>

    double F(double x)
    { double res = pow((x),5) - 3;
    return res;
    }
    void print_roots(){

    double low, high;
    cout<<"low=";
    cin>>low;
    cout<<"high=";
    cin>>high;
    ........
    ...

  4. #4
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    http://en.wikipedia.org/wiki/Binary_search
    , , (). .. (high - low) < EPS, EPS , 1-9.
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  5. #5
    Registered User
    Join Date: Dec:2007
    Location:
    Posts: 655
    , , . icaci .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |