[UP]


Manual Reference Pages  - xy_convert (3)

NAME

xy_convert(3f) - [M_xyplot] do linear conversion for XY plot routines (LICENSE:MIT)

CONTENTS

Synopsis
Description
Options
Example

SYNOPSIS

xy_convert(slope,intercept,x,n) # A linear conversion

   real       :: slope
   real       :: intercept
   real       :: x(*)
   integer    :: n

DESCRIPTION

used to do a fast conversion of an entire set of data instead of reparsing the text over and over with the math command. A linear conversion is very common for such operations as unit conversion.
Allows +-*/
  operations on a dataset after operations have been performed. Does a conversion of the form
          y=mx+b

  where

          the slope is m
          the y-intercept is b

if the intercept is left off, it defaults to a value of 0.

OPTIONS

EXAMPLE

Showing usage from ush(1):

   math c[4] -o xy_convert(1,40) xy_convert(9/5,-40)
   # equivalent to but faster than
   # math  (c[4]+40)*9/5-40 # xy_convert Centigrade to Fahrenheit


xy_convert (3) October 17, 2020
Generated by manServer 1.08 from 55ec772c-3ffc-48c5-8484-576813e11e87 using man macros.