Skip to content

Thoughts and Applications in C++

  • Blog
  • Contact

Tag: precision

Posted on August 12, 2017August 12, 2017

Looking into floating point calculations

To frame this post with a bit of context. Say you wanted to calculate a value where the formula have a infinite term. We’ll choose the exponential function:

Say you wanted to calculate exp(y) to a specific decimal precision p.

The full code we’ll be working with is the following:
Continue reading “Looking into floating point calculations“

profile image

About me

Hi! I’m Marc Beauchesne. I’m a C++ software developer with more than fifteen years of commercial software design experience. The thoughts posted here are mine and mine alone and do not reflect those of past, present, or future employers.

 

I live in sunny Singapore

Recent Posts

  • Temporary objects: lifetime and Extensions – part 2
  • std::optional – removing confusion around pointer types
  • const rvalue references – useful use-cases
  • google foobar challenge
  • Lambda, closures, surprises

Categories

  • C++
  • python

Copyright © 2020 Marc Beauchesne

Proudly powered by WordPress
 

Loading Comments...