From 792e0bc48f8e965e0aff9f1c759da61bf8f31c63 Mon Sep 17 00:00:00 2001 From: "John M. Penn" Date: Tue, 15 Mar 2022 14:27:07 -0500 Subject: [PATCH] Fix typos in interpolator README. #1240 [skip ci] --- trick_source/trick_utils/interpolator/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trick_source/trick_utils/interpolator/README.md b/trick_source/trick_utils/interpolator/README.md index 57851c3c..caeb8428 100644 --- a/trick_source/trick_utils/interpolator/README.md +++ b/trick_source/trick_utils/interpolator/README.md @@ -117,7 +117,7 @@ In this situation we have two independent variables. Therefore we have two break #define HEIGHT_BP_SIZE 6 /* ---------------------------------------------------------------------------------*/ -/* NOTICE that we've coverted kg to lb, and m to inches in the breakpoint arrays. */ +/* NOTICE that we've converted kg to lb, and m to inches in the breakpoint arrays. */ /* This just demonstrates a units conversion trick in breakpoint arrays. */ /* ---------------------------------------------------------------------------------*/ @@ -167,13 +167,13 @@ Trick::Interpolator* bmi_interpolator = ``` ### Using the Interpolator -To use the interpolator, we simply call the **```eval()```** member function as follows, assuming that ```time``` and ```thrust``` are of type ```double```. +To use the interpolator, we simply call the **```eval()```** member function as follows, assuming that ```bmi```, ```weight```, and ```height``` are of type ```double```. ``` try { bmi = bmi_interpolator->eval( weight, height ); } catch (std::logic_error e) { - std::cerr << "Out of bounds." << std::endl; + std::cerr << "Arguments beyond the limits of the BMI interpolation table." << std::endl; } ```