Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4054810
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:37:21+00:00 2026-05-20T14:37:21+00:00

I started to read the book numerical recipes in C… I try make my

  • 0

I started to read the book “numerical recipes in C”… I try make my programs more efficients and faster… So, is the same thing, to use C or C++? I know that C++ is a super-set of C… But, are there differences between “cmath” library (c++) with “math.h” library(c)? It will intervene in the velocity of execution?… in order to that… i can use C++ without any difference with a C program?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:37:22+00:00Added an answer on May 20, 2026 at 2:37 pm

    First off, C++ is not a superset of C. Though there are many similarities, there are also differences, and neither is a subset of the other.

    Now that we have that out of the way, Numerical Recipes uses an especially simple subset of C, and you should not encounter many difficulties in using the code in a C++ program. Most of the algorithms will Just Work without modification[1].

    You shouldn’t worry about details like <cmath>; on most platforms, it’s just a thin shim over the C math headers, and does not introduce any overhead. Broadly, this is true of C++ in general: when you’re writing code that looks like C code, little or no additional overhead is introduced.

    [1] In as much as they work in C; Numerical Recipes is a useful reference, but the programs contained therein are not entirely bug-free, nor are all of the algorithms state of the art. Some of the algorithms are numerically poor choices. If you become seriously interested in any of the topics discussed, be sure to read the references, and then to look for more current material on the subject.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just started using subversion, and have read the official documentation (svn book), cheat
I've just started learning how to use pygame yesterday. I was read this one
I'm new to Android app programming and started to read a book, but it
i started to read Entity Framework Book. in first part of book it describes
I just started with Python 3. In a Python book i read that the
I have started learning VB.NET lately and have read 1 Step-By-Step beginners book and
I just started to read about this new technology... Does someone have some knowledge
i have just started using Moq ver (3.1) and i have read blogs and
When I started iPhone development, I read somewhere that it's possible to attach a
Since I started studying object-oriented programming, I frequently read articles/blogs saying functions are better,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.