Technical Capabilities
Having trouble finding what you need?
Get in touch with us, so we can answer your specific questions directly.
Get In Touch
technical
/
API
/
MTH$ - MATH Routines

MTH$ - MATH Routines

Overview

VX/MTH$ provides a call-compatible implementation of OpenVMS mathematical functions for x86 and ARM Linux. It ensures precision and compatibility for OpenVMS applications performing mathematical computations, enabling seamless execution on Linux environments.

Key Features

• Fully compatible with OpenVMS MTH$ APIs.

• Supports a comprehensive set of mathematical functions, including trigonometry, logarithms, and floating-point conversions.

• Allows seamless migration of OpenVMS applications that rely on MTH$ routines.

• Integrates with VX/RT to provide full OpenVMS mathematical functionality on x86 and ARM Linux.

• Ensures numerical precision and maintains OpenVMS computation behavior without requiring major code modifications.

VX/MTH$ Callable Routines

MTH$ API Function
MTH$ABSAbsolute value of a number
MTH$ACOSArc cosine function
MTH$ACOSDArc cosine in degrees
MTH$AIMAX0Integer maximum of values
MTH$AIMIN0Integer minimum of values
MTH$AINTTruncate to integer
MTH$AJMAX0Integer max (adjustable)
MTH$AJMIN0Integer min (adjustable)
MTH$ALOGNatural logarithm
MTH$ALOG10Base-10 logarithm
MTH$ALOG2Base-2 logarithm
MTH$AMAX1Maximum of floating values
MTH$AMIN1Minimum of floating values
MTH$AMODModulus function
MTH$ANINTNearest integer function
MTH$ASINArc sine function
MTH$ASINDArc sine in degrees
MTH$ATANArc tangent function
MTH$ATAN2Arc tangent of two args
MTH$ATANDArc tangent in degrees
MTH$ATAND2Arc tangent (2 args
MTH$ATANHInverse hyperbolic tangent
MTH$COSCosine function
MTH$COSDCosine in degrees
MTH$COSHHyperbolic cosine
MTH$CVT_D_GConvert double to G format
MTH$CVT_G_DConvert G format to double
MTH$DABSDouble precision absolute
MTH$DACOSDouble arc cosine
MTH$DACOSDDouble arc cosine in degrees
MTH$DASINDouble arc sine
MTH$DASINDDouble arc sine in degrees
MTH$DATANDouble arc tangent
MTH$DATAN2Double arc tangent (2 args)
MTH$DATANDDouble arc tangent in deg
MTH$DATAND2Double atan2 in degrees
MTH$DATANHDouble inverse hyperbolic tan
MTH$DBLEConvert integer to double
MTH$DCOSDouble cosine
MTH$DCOSDComputes the cosine of an angle in degrees
MTH$DCOSHDouble hyperbolic cosine
MTH$DDIMDouble positive difference
MTH$DEXPDouble exponential function
MTH$DFLOORFloor function for double
MTH$DFLOTIConvert integer to float
MTH$DFLOTJConvert integer to float
MTH$DIMPositive difference function
MTH$DINTDouble integer truncation
MTH$DLOGDouble natural logarithm
MTH$DLOG10Double base-10 logarithm
MTH$DLOG2Double base-2 logarithm
MTH$DMAX1Double maximum value
MTH$DMIN1Double minimum value
MTH$DMODDouble modulus function
MTH$DNINTNearest integer (double)
MTH$DPRODDouble precision product
MTH$DSIGNDouble sign function
MTH$DSINDouble sine function
MTH$DSINCOSDouble sine and cosine
MTH$DSINCOSDDouble sin/cos in degrees
MTH$DSINDDouble sine in degrees
MTH$DSINHDouble hyperbolic sine
MTH$DSQRTDouble square root
MTH$DTANDouble tangent function
MTH$DTANDDouble tangent in degrees
MTH$DTANHDouble hyperbolic tangent
MTH$EXPExponential function
MTH$FLOATIConvert integer to float
MTH$FLOATJConvert integer to float
MTH$FLOORFloor function
MTH$GABSGeneral absolute value
MTH$GACOSGeneral arc cosine
MTH$GACOSDGeneral arc cosine in deg
MTH$GASINGeneral arc sine
MTH$GASINDGeneral arc sine in deg
MTH$GATANGeneral arc tangent
MTH$GATAN2General arc tangent (2 args)
MTH$GATANDGeneral arc tangent in deg
MTH$GATAND2General atan2 in degrees
MTH$GATANHComputes the inverse hyperbolic tangent
MTH$GCOSGeneral cosine function
MTH$GCOSDGeneral cosine in degrees
MTH$GCOSHGeneral hyperbolic cosine
MTH$GDBLEGeneral double precision
MTH$GDIMGeneral positive difference
MTH$GEXPGeneral exponential function
MTH$GFLOORGeneral floor function
MTH$GFLOTIGeneral integer to float
MTH$GFLOTJGeneral integer to float
MTH$GINTGeneral integer truncation
MTH$GLOGGeneral natural logarithm
MTH$GLOG10General base-10 logarithm
MTH$GLOG2General base-2 logarithm
MTH$GMAX1General maximum value
MTH$GMIN1General minimum value
MTH$GMODGeneral modulus function
MTH$GNINTGeneral nearest integer
MTH$GPRODGeneral precision product
MTH$GSIGNGeneral sign function
MTH$GSINGeneral sine function
MTH$GSINCOSGeneral sine and cosine
MTH$GSINCOSDGeneral sin/cos in degrees
MTH$GSINDGeneral sine in degrees
MTH$GSINHGeneral hyperbolic sine
MTH$GSQRTGeneral square root
MTH$GTANGeneral tangent function
MTH$GTANDGeneral tangent in degrees
MTH$GTANHGeneral hyperbolic tangent
MTH$HABSHyperbolic absolute value
MTH$HACOSHyperbolic arc cosine
MTH$HACOSDHyperbolic arc cosine in degrees
MTH$HASINHyperbolic arc sine
MTH$HASINDHyperbolic arc sine in degrees
MTH$HATANHyperbolic arc tangent
MTH$HATAN2Hyperbolic arc tangent (2 args)
MTH$HATANDHyperbolic arc tangent in degrees
MTH$HATAND2Hyperbolic atan2 in degrees
MTH$HATANHInverse hyperbolic tangent
MTH$HCOSHyperbolic cosine function
MTH$HCOSDComputes the hyperbolic cosine in degrees
MTH$HCOSHHyperbolic cosine
MTH$HDBLEHyperbolic double precision
MTH$HDIMHyperbolic positive difference
MTH$HEXPHyperbolic exponential function
MTH$HFLOORHyperbolic floor function
MTH$HFLOTIHyperbolic integer to float
MTH$HFLOTJHyperbolic integer to float
MTH$HINTHyperbolic integer truncation
MTH$HLOGHyperbolic natural logarithm
MTH$HLOG10Hyperbolic base-10 logarithm
MTH$HLOG2Hyperbolic base-2 logarithm
MTH$HMAX1Hyperbolic maximum value
MTH$HMIN1Hyperbolic minimum value
MTH$HMODHyperbolic modulus function
MTH$HNINTHyperbolic nearest integer
MTH$HPRODHyperbolic precision product
MTH$HSIGNHyperbolic sign function
MTH$HSINHyperbolic sine function
MTH$HSINCOSHyperbolic sine and cosine
MTH$HSINCOSDHyperbolic sin/cos in degrees
MTH$HSINDHyperbolic sine in degrees
MTH$HSINHHyperbolic sine
MTH$HSQRTHyperbolic square root
MTH$HTANHyperbolic tangent function
MTH$HTANDHyperbolic tangent in degrees
MTH$HTANHHyperbolic tangent
MTH$IIABSInteger absolute value
MTH$IIANDInteger bitwise AND
MTH$IIDIMInteger positive difference
MTH$IIDINTInteger double precision
MTH$IIDNNTInteger nearest value
MTH$IIEORInteger bitwise XOR
MTH$IIFIXInteger fixed point conversion
MTH$IIGINTInteger general integer
MTH$IIGNNTInteger general nearest integer
MTH$IIHINTInteger hyperbolic integer
MTH$IIHNNTInteger hyperbolic nearest int
MTH$IINTInteger conversion function
MTH$IIORPerforms a bitwise OR operation
MTH$IISHFTInteger bit shift function
MTH$IISIGNInteger sign function
MTH$IMAX0Integer maximum (0-based)
MTH$IMAX1Integer maximum (1-based)
MTH$IMIN0Integer minimum (0-based)
MTH$IMIN1Integer minimum (1-based)
MTH$IMODInteger modulus function
MTH$ININTInteger nearest integer
MTH$INOTInteger bitwise NOT
MTH$JIABSGeneral integer absolute
MTH$JIANDGeneral integer bitwise AND
MTH$JIDIMGeneral integer positive diff
MTH$JIDINTGeneral integer double prec
MTH$JIDNNTGeneral integer nearest int
MTH$JIEORGeneral integer bitwise XOR
MTH$JIFIXGeneral integer fixed point
MTH$JIGINTGeneral integer general int
MTH$JIGNNTGeneral integer nearest int
MTH$JIHINTGeneral integer hyperbolic int
MTH$JIHNNTGeneral int hyperbolic nearest
MTH$JINTGeneral integer conversion
MTH$JIORGeneral integer bitwise OR
MTH$JISHFTGeneral integer bit shift
MTH$JISIGNGeneral integer sign function
MTH$JMAX0General integer max (0-based)
MTH$JMAX1General integer max (1-based)
MTH$JMIN0General integer min (0-based)
MTH$JMIN1General integer min (1-based)
MTH$JMODGeneral integer modulus
MTH$JNINTGeneral integer nearest int
MTH$JNOTGeneral integer bitwise NOT
MTH$RANDOMGenerate a random number
MTH$SGNSign function
MTH$SGNEXTExtended sign function
MTH$SIGNReturn sign of a number
MTH$SINSine function
MTH$SINCOSSine and cosine functions
MTH$SINCOSDSine and cosine in degrees
MTH$SINDSine function in degrees
MTH$SINHComputes the hyperbolic sine function
MTH$SNGLConverts a double-precision floating point to single
MTH$SNGLGConverts a generalized floating point to single
MTH$SQRTComputes the square root of a number
MTH$TANComputes the tangent of an angle
MTH$TANDComputes the tangent of an angle in degrees
MTH$TANHComputes the hyperbolic tangent
MTH$UMAXReturns the maximum of two unsigned numbers
MTH$UMINReturns the minimum of two unsigned numbers

Why Use VX/MTH$?

• Preserves OpenVMS mathematical computation logic, enabling direct porting of applications.

• Provides full compatibility with OpenVMS MTH$ functions, ensuring numerical precision on Linux.

• Supports essential OpenVMS mathematical operations, including trigonometric, logarithmic, and floating-point functions.

• Seamlessly integrates into the VX/RT ecosystem for OpenVMS compatibility on x86 and ARM Linux.

VX/MTH$ ensures that OpenVMS applications requiring MTH$ services can be migrated without major modifications, preserving productivity and minimizing development costs.

Transform Your Legacy Software Today!

Get In Touch
Unlock the potential of your legacy software with our expert migration services.