Numerical Analysis - Binomial Theorem Demo

Environment: Visual C++

I wrote this piece of code to explain the working of Binomial Theorem to a younger friend. Thought it would be useful for other students too.

I built a class that could take names of two variables, like 'a' and 'b' and the power and sign (+ or -). It will then evaluate the terms using the Binomial Theorem. Students can get an understanding of the Binomial theorem as well as some programming concepts like recursion, encapsulation, data abstraction etc.

The UI is pretty simple

Downloads

Download source - 14 Kb


Comments

  • Freak

    Posted by Legacy on 03/18/2002 12:00am

    Originally posted by: WALUDDA

    That is the most simple sh** i've ever seen. A "Hello World"-Application is even more complex.

    Reply
  • Well said David Sharpe

    Posted by Legacy on 02/09/2002 12:00am

    Originally posted by: Tom Wilson

    And thank you to the Vinayak Raghuvamshi. I am a freelance C++ programmer who is always churning out 'boring code' which gets the job done and keeps the client happy.

    I get very little opportunity for programming 'fun' but this looks like my luck is about to change. I am now going to download and enjoy both the maths and hopefully the code. I feel one can always learn from another's efforts.

    If certain people feel they are too clever then I feel they don't know as much as they think they do. I have been programming since 1974 and the more I learn, the more I realise I don't know.

    After I have absorbed the lesson then maybe I will have some meaningful comments for the actual subject matter.

    PS: David Sharp - your comment doesn't word wrap. Perhaps you could modify it please?

    Reply
  • Word

    Posted by Legacy on 02/06/2002 12:00am

    Originally posted by: Charles Rictor

    Word up dawg

    Reply
  • Kids Stuff

    Posted by Legacy on 02/05/2002 12:00am

    Originally posted by: Ronin

    CodeGuru should not be used to post such childish stuff.

    Reply
  • Useful criticism

    Posted by Legacy on 02/05/2002 12:00am

    Originally posted by: David Sharpe

    Why on earth do people take it into their heads to criticise someone who has taken the time to offer advice to others
    
    1) At no time in the article does the author state that it is a revolutionary piece of code.

    2)If it is of no use to you don't read it.

    3)This code is useful on many levels, for programmers who don't model mathematics in their programs, and also as an example that everyone understands the mathematics of this would be very useful to someone moving to VC++ from another language.

    What great peices of programming genius have the gainsayers of this article actually contributed?

    I for one think articles of this nature should keep coming

    Reply
  • Suxx

    Posted by Legacy on 02/02/2002 12:00am

    Originally posted by: Dekoda

    What a squalor! Great program, very useful and rather complicated. I wrote such a programs when I was 12. Of course, I could write similar code at 5 but there wasn't PC's at that time

    Reply
  • NICE!!!

    Posted by Legacy on 02/01/2002 12:00am

    Originally posted by: MeExMachina

    It will help me solving some stupid homework... nice

    Reply
  • File size not yet updated

    Posted by Legacy on 01/08/2002 12:00am

    Originally posted by: Vinayak Raghuvamshi

    I had included generated files by mistake. I have submitted the trimmed down project to the groups moderator. Am waiting to see the update take place.

    -Vinayak.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • Mobile devices, social business apps, and business analytics are converging with the Cloud to create the most substantial changes in technology since the Internet revolution. Businesses have to change the way they think and operate, and with rising budgets for technology, they need someone to provide the services that will keep them competitive in this environment. Learn more about the important technology trends you need to stay on top of to ensure your business doesn't get left behind.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds