David Antaki
  • Engineering
  • Work
  • Adventures
  • About
  • Contact
  • Essays
Function To Piecewise C++ Library
Function To Piecewise C++ Library

Function To Piecewise C++ Library

Technologies
C++
Category
Embedded
  • Converts a function that takes in a value x and returns a value y into a piecewise function of n segments. Useful for f(x) equations that cannot be solved (easily) for x.
  • Used with hall sensors because the equation that tells you the field strength at a given distance from a magnet cannot be easily solved for D (the distance from the magnet).
image

Source Code

David Antaki Open Source / Embedded Libraries / function_to_piecewise

Converts a function that takes in a value x and returns a value y into a piecewise function of n segments.

gitlab.com

David Antaki Open Source / Embedded Libraries / function_to_piecewise

Copyright © 2022 David Antaki. All rights reserved.

GitHubLinkedInYouTubeYouTubeX