xy_convert(3f) - [M_xyplot] do linear conversion for XY plot routines (LICENSE:MIT)
Synopsis
Description
Options
Examples
xy_convert(slope,intercept,x,n) # A linear conversion
real :: slope real :: intercept real :: x(*) integer :: n
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+bwhere
the slope is m the y-intercept is bif the intercept is left off, it defaults to a value of 0.
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) | February 23, 2025 |