Code Monkey home page Code Monkey logo

c99-cpp-complex's Introduction

The code is From Dr.Dobb's Journal: "Complex Arithmetic: In the Intersection of C and C++" By Randy Meyers and Dr. Thomas Plum, March 01, 2003

http://www.drdobbs.com/complex-arithmetic-in-the-intersection-o/184401628

The listing does not carry a license, however the educational spirit of the writing seems to suggest that it is intended for use by readers:

This month's installment does something a little different.
Rather than just discuss a new feature in C99 and occasionally
compare it to C++, we are going to concentrate on the
intersection between C99 and C++. We are going to discuss how
to write programs that use complex arithmetic and compile
equally well under either C++ or C99. The key to opening the
large intersection between C and C++ complex is the small
header file named math-complex.h (shown in Listing 1).

The file "math-complex.h" is the contents of the "Listing 1" link. The file "test-program.cpp.c99" is the contents of the "Listing 2" link. The file "test-program-results.txt" is the contents of the "Listing 3" link.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.