Hello developers, one of the most important parts of programming is using mathematical functions in calculations and developing faster and smarter computational algorithms. In professional programming, every bit of development in computational apps is important when using mathematical functions, methods and variables that we use, which may affect to speed of our calculations and the performance of the application. If you are developing an accounting application or simple applications that don’t use time-based calculations such as image processing in camera applications, doing computations in 3D engineering or game applications, analyzing huge amounts of data (texts, images, videos, sounds) in engineering or AI applications, then you don’t need to spend your time to optimize your functions. Otherwise, we should use every function carefully, because each will reduce the speed of our algorithms. In C and in early C++ compilers, we were able to use
math.h library in C++ applications. After the C++17 standard, this library is modernized by the
cmath library, Functions are declared in
<cmath> header for compatibility reasons in modern C++. In this post, we explain what the
cmath libraries. This week, we have posts that explain the contents and purpose of the CMath header, when we should use it, and what are the Mathematical Special Functions in modern C++ today.
We are happy that we have new RAD Studio 12 that we can develop modern computational applications, and there are big improvements and massive changes in C++ Builder 12 as well as in Delphi 12. Here is a great video that comprehensively explains the improvements and changes in RAD Studio 12.
In LearnCPlusPlus.org, we have finished posts about C++14 features as same as we have done with posts about C++11. This week, we have two posts about C++14 features, and we have started to look at C++17 features. We have 3 new post picks from LearnCPlusPlus.org that can be used with the new C++ Builder 12. The first post pick is about the new rules for auto deduction in C++17. Another post is about the new overloads for ranges in C++14 and the other post is about the member initializers and aggregates features in C++14
Where I can I learn C++ and test these examples with a free C++ compiler?
If you don’t know anything about C++ or the C++ Builder IDE, don’t worry, we have a lot of great, easy to understand examples on the LearnCPlusPlus.org website and they’re all completely free. Just visit this site and copy and paste any examples there into a new Console, VCL, or FMX project, depending on the type of post. We keep adding more C and C++ posts with sample code. In today’s round-up of recent posts on LearnCPlusPlus.org, we have new articles with very simple examples that can be used with:
- The free version of C++ Builder 11 CE Community Edition
- or a professional version of C++ Builder
- or free BCC32C C++ Compiler and BCC32X C++ Compiler
- or the free Dev-C++
How to use CMath mathematical special functions with C++ Builder?
The math library in C language is designed to be used in mathematical operations. From the first C language to the latest C++ Builder 12, there have been many changes and improvements in both hardware and software. For compatibility reasons, the is an optional alternative to support older code. We were able to use this
math.h library in C++ applications. In the first post, we explain what are the
After the C++17 standard, this library is modernized in the
cmath library, and functions are declared in header for compatibility reasons in modern C++, and the is an optional header to support legacy code. In this post, we list most of these mathematical functions declared in the header of modern C++.
After the C++17 standard, the standard added new modernized math operations with the
cmath library. There are many new modern mathematical special functions in the C++17
cmath header. Such as functions for associated Laguerre polynomials, elliptic integral of the first kind functions, Cylindrical Bessel functions (of the first kind), Cylindrical Neumann functions, Exponential integral functions, Hermite polynomials functions, Legendre polynomials functions, Laguerre polynomials, Riemann zeta function, and some spherical functions. In the last post, we list them and explain their variations.
There are C++ examples and more resources in each post, please see them below.
How to learn CMath mathematical special functions in C++ for free using C++ Builder?
LearnCPlusPlus.org has been producing full of educational daily articles about C and modern C++ that can be used with C++ Builder, C++ Builder CE, Dev-C++, BCC Compiler and some other compilers such as the GCC compiler. Here are our post picks for today.
In addition to these new posts, we published more posts about using math in C++, here are some of them.
If you need more details, you can search your keywords in our LearnCPlusPlus.org website.
We like to hear your feedback. You motivate us so much with your likes and comments on social media (find us on Facebook, LinkedIn, Reddit, Twitter / X and all over) and here on the blogs too. Thank you for your valuable comments and questions. All of them help improve the quality of our future posts.
We have a lot of unique posts waiting to come. We keep adding new topics every week about C++ in general and specific topics for C++ Builder, Dev-C++, and for the other C++ compilers. Please keep following our LearnCPlusPlus.org website for the latest posts and updates. Feel free to comment and share with your colleagues, students, members – knowledge is power, and knowledge shared is empowering.
C++ Builder is the easiest and fastest C and C++ IDE for building everything from simple to professional applications. It is also easy for beginners to learn with its wide range of samples, tutorials, help files, and LSP support for code. RAD Studio’s C++ Builder version comes with the award-winning VCL framework for high-performance native Windows apps and the powerful FireMonkey (FMX) framework for UIs.
There is a free C++ Builder Community Edition for students, beginners, and startups; it can be downloaded from here. For professional developers, there are Professional, Architect, or Enterprise versions of C++ Builder and there is a trial version you can download from here.