C Library Functions - xy_convert (3)
NAME
xy_convert(3f) - [M_xyplot] do linear conversion for XY plot routines
(LICENSE:MIT)
CONTENTS
Synopsis
Description
Options
Examples
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
EXAMPLES
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
| Nemo Release 3.1 | xy_convert (3) | June 29, 2025 |
Generated by manServer 1.08 from ba6a0847-cfc3-4915-b3a1-82cd5fd1246f using man macros.