gogsl

package module
Version: v0.0.0-...-3807912 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2016 License: GPL-2.0 Imports: 6 Imported by: 31

README

gogsl

A (nearly) complete binding of the GNU Scientific Library for Go

Using gogsl

To use the gogsl bindings in your program, you'll need to do the following:

  • Install libgsl:

    You will need the development headers in place at /usr/include/gsl. (This location can be changed in generator.go.) Your Linux distribution probably makes this step easy for you - for example, for a typical Fedora system:

              yum install gsl-devel
    

    will suffice.

  • Get the distribution:

              go get github.com/dtromb/gogsl
    
  • Generate the bindings:

              cd dtromb/gogsl; go generate
    

    This step is necessary because the datatype sizes on various machines will differ, and the bindings need to be generated based on these. This necessarily means code will not be portable across architectures (the alternative would have been to use per-binding size-matched types, however Go would then require explicit casts when these were used!)

    If you are on an x86-64 platform, you can skip this step as the generated code that ships with the project is for this architecture.

  • Import and use the bindings:

            import "github.com/dtromb/gogsl/<package>"
    

    The bindings very closely follow the API, you should be able to use them in your code simply using the GSL Manual as a reference.


Memory management, other "gotchas"

Not-insignificant dissonances occur between the call patterns and data use cases in the C library and the Go bindings. Resolving these was the primary difficulty that need to be overcome, to create the proper "smoothness". In some cases end users need to be aware of these issues. They will be summarized here:

  • No need to clean up...

Go is a garbage-collected language, and we attempt to take full advantage of this facility. GSL kindly uses the *_[c]alloc(), *_free() pattern to lifecycle most of its managed-memory objects, and that allocation pattern is mapped to the bindings - there are respectively *(A|Ca)lloc() and automated object cleanup available. Any functions created with an alloc call do not need the corresponding free in Go - simply let these fall unreachable and the corresponding GSL-managed memory will be freed.

  • ...but careful to not make a mess.

Now the bad: these objects sometimes reference each other in non-obvious ways, and callers must in some cases stop referencing "live" objects if others are no longer reachable. This isn't as horrible as it sounds - to be safe there are just a couple of rules to follow. First, for vector and matrix view types, make sure that the underlying object (Go slice/array, gogsl object, etc) is not collected when the view is still active. Secondly, do not in any case store references to the special objects returned by functions with a trailing underscore, such as GslVector's Slice_() operation - use these only as function call arguments to "cast" values (for example, maybe you have a vector, but the function you want to pass its data to requires a Go slice - use Slice_(), but do not keep the slice around for later).

These limitations exist because of the reasonable (in C, anyway) assumption on the part of GSL that you will be casting pointers between types and passing them around, as well as using other C-like "memory block" features. Right now breaking these "rules" will get you a segfault, or worse. It's a TODO to make this a bit nicer - holding Go-side references to objects "in use" by the C side memory, and using the GslErrorHandler mechanism to recoverably fail instead of signaling. See the /<package>/test directories for proper use patterns.


License

The code is made available under the version 2 GNU Public License (Copyleft). If you use it, you must release your source with your product and follow certain other restrictions. See the LICENSE file in the distribution for details.

To say hello, or if you have any questions (please report issues on github) dave.trombley@gmail.com. I'd love to know who you are and what you're using gogsl for!

Documentation

Overview

//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////

Index

Constants

This section is empty.

Variables

View Source
var GOGSL_C16_TYPE reflect.Type
View Source
var GOGSL_C32_TYPE reflect.Type
View Source
var GOGSL_C64_TYPE reflect.Type
View Source
var GOGSL_INT_TYPE reflect.Type
View Source
var GOGSL_LONG_LONG_TYPE reflect.Type
View Source
var GOGSL_LONG_TYPE reflect.Type
View Source
var GOGSL_SHORT_TYPE reflect.Type
View Source
var GOGSL_SIZE_T_TYPE reflect.Type
View Source
var GOGSL_UINT_TYPE reflect.Type
View Source
var GOGSL_ULONG_LONG_TYPE reflect.Type
View Source
var GOGSL_ULONG_TYPE reflect.Type
View Source
var GOGSL_USHORT_TYPE reflect.Type
View Source
var GSL_CONST_CGSM_ACRE float64 = 4.04685642241e7 /* cm^2 */
View Source
var GSL_CONST_CGSM_ANGSTROM float64 = 1e-8 /* cm */
View Source
var GSL_CONST_CGSM_ASTRONOMICAL_UNIT float64 = 1.49597870691e13 /* cm */
View Source
var GSL_CONST_CGSM_BAR float64 = 1e6 /* g / cm s^2 */
View Source
var GSL_CONST_CGSM_BARN float64 = 1e-24 /* cm^2 */
View Source
var GSL_CONST_CGSM_BOHR_MAGNETON float64 = 9.27400899e-21 /* abamp cm^2 */
View Source
var GSL_CONST_CGSM_BOHR_RADIUS float64 = 5.291772083e-9 /* cm */
View Source
var GSL_CONST_CGSM_BOLTZMANN float64 = 1.3806504e-16 /* g cm^2 / K s^2 */
View Source
var GSL_CONST_CGSM_BTU float64 = 1.05505585262e10 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGSM_CALORIE float64 = 4.1868e7 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGSM_CANADIAN_GALLON float64 = 4.54609e3 /* cm^3 */
View Source
var GSL_CONST_CGSM_CARAT float64 = 2e-1 /* g */
View Source
var GSL_CONST_CGSM_CUP float64 = 2.36588236501e2 /* cm^3 */
View Source
var GSL_CONST_CGSM_CURIE float64 = 3.7e10 /* 1 / s */
View Source
var GSL_CONST_CGSM_DAY float64 = 8.64e4 /* s */
View Source
var GSL_CONST_CGSM_DYNE float64 = 1e0 /* cm g / s^2 */
View Source
var GSL_CONST_CGSM_ELECTRON_CHARGE float64 = 1.602176487e-20 /* abamp s */
View Source
var GSL_CONST_CGSM_ELECTRON_MAGNETIC_MOMENT float64 = 9.28476362e-21 /* abamp cm^2 */
View Source
var GSL_CONST_CGSM_ELECTRON_VOLT float64 = 1.602176487e-12 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGSM_ERG float64 = 1e0 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGSM_FARADAY float64 = 9.64853429775e3 /* abamp s / mol */
View Source
var GSL_CONST_CGSM_FATHOM float64 = 1.8288e2 /* cm */
View Source
var GSL_CONST_CGSM_FLUID_OUNCE float64 = 2.95735295626e1 /* cm^3 */
View Source
var GSL_CONST_CGSM_FOOT float64 = 3.048e1 /* cm */
View Source
var GSL_CONST_CGSM_FOOTCANDLE float64 = 1.076e-3 /* cd sr / cm^2 */
View Source
var GSL_CONST_CGSM_FOOTLAMBERT float64 = 1.07639104e-3 /* cd sr / cm^2 */
View Source
var GSL_CONST_CGSM_GRAM_FORCE float64 = 9.80665e2 /* cm g / s^2 */
View Source
var GSL_CONST_CGSM_GRAVITATIONAL_CONSTANT float64 = 6.673e-8 /* cm^3 / g s^2 */
View Source
var GSL_CONST_CGSM_GRAV_ACCEL float64 = 9.80665e2 /* cm / s^2 */
View Source
var GSL_CONST_CGSM_HECTARE float64 = 1e8 /* cm^2 */
View Source
var GSL_CONST_CGSM_HORSEPOWER float64 = 7.457e9 /* g cm^2 / s^3 */
View Source
var GSL_CONST_CGSM_HOUR float64 = 3.6e3 /* s */
View Source
var GSL_CONST_CGSM_INCH float64 = 2.54e0 /* cm */
View Source
var GSL_CONST_CGSM_INCH_OF_MERCURY float64 = 3.38638815789e4 /* g / cm s^2 */
View Source
var GSL_CONST_CGSM_INCH_OF_WATER float64 = 2.490889e3 /* g / cm s^2 */
View Source
var GSL_CONST_CGSM_JOULE float64 = 1e7 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGSM_KILOMETERS_PER_HOUR float64 = 2.77777777778e1 /* cm / s */
View Source
var GSL_CONST_CGSM_KILOPOUND_FORCE float64 = 4.44822161526e8 /* cm g / s^2 */
View Source
var GSL_CONST_CGSM_KNOT float64 = 5.14444444444e1 /* cm / s */
View Source
var GSL_CONST_CGSM_LAMBERT float64 = 1e0 /* cd sr / cm^2 */
View Source
var GSL_CONST_CGSM_LIGHT_YEAR float64 = 9.46053620707e17 /* cm */
View Source
var GSL_CONST_CGSM_LITER float64 = 1e3 /* cm^3 */
View Source
var GSL_CONST_CGSM_LUMEN float64 = 1e0 /* cd sr */
View Source
var GSL_CONST_CGSM_LUX float64 = 1e-4 /* cd sr / cm^2 */
View Source
var GSL_CONST_CGSM_MASS_ELECTRON float64 = 9.10938188e-28 /* g */
View Source
var GSL_CONST_CGSM_MASS_MUON float64 = 1.88353109e-25 /* g */
View Source
var GSL_CONST_CGSM_MASS_NEUTRON float64 = 1.67492716e-24 /* g */
View Source
var GSL_CONST_CGSM_MASS_PROTON float64 = 1.67262158e-24 /* g */
View Source
var GSL_CONST_CGSM_METER_OF_MERCURY float64 = 1.33322368421e6 /* g / cm s^2 */
View Source
var GSL_CONST_CGSM_METRIC_TON float64 = 1e6 /* g */
View Source
var GSL_CONST_CGSM_MICRON float64 = 1e-4 /* cm */
View Source
var GSL_CONST_CGSM_MIL float64 = 2.54e-3 /* cm */
View Source
var GSL_CONST_CGSM_MILE float64 = 1.609344e5 /* cm */
View Source
var GSL_CONST_CGSM_MILES_PER_HOUR float64 = 4.4704e1 /* cm / s */
View Source
var GSL_CONST_CGSM_MINUTE float64 = 6e1 /* s */
View Source
var GSL_CONST_CGSM_MOLAR_GAS float64 = 8.314472e7 /* g cm^2 / K mol s^2 */
View Source
var GSL_CONST_CGSM_NAUTICAL_MILE float64 = 1.852e5 /* cm */
View Source
var GSL_CONST_CGSM_NEWTON float64 = 1e5 /* cm g / s^2 */
View Source
var GSL_CONST_CGSM_NUCLEAR_MAGNETON float64 = 5.05078317e-24 /* abamp cm^2 */
View Source
var GSL_CONST_CGSM_OUNCE_MASS float64 = 2.8349523125e1 /* g */
View Source
var GSL_CONST_CGSM_PARSEC float64 = 3.08567758135e18 /* cm */
View Source
var GSL_CONST_CGSM_PHOT float64 = 1e0 /* cd sr / cm^2 */
View Source
var GSL_CONST_CGSM_PINT float64 = 4.73176473002e2 /* cm^3 */
View Source
var GSL_CONST_CGSM_PLANCKS_CONSTANT_H float64 = 6.62606896e-27 /* g cm^2 / s */
View Source
var GSL_CONST_CGSM_PLANCKS_CONSTANT_HBAR float64 = 1.05457162825e-27 /* g cm^2 / s */
View Source
var GSL_CONST_CGSM_POINT float64 = 3.52777777778e-2 /* cm */
View Source
var GSL_CONST_CGSM_POISE float64 = 1e0 /* g / cm s */
View Source
var GSL_CONST_CGSM_POUNDAL float64 = 1.38255e4 /* cm g / s^2 */
View Source
var GSL_CONST_CGSM_POUND_FORCE float64 = 4.44822161526e5 /* cm g / s^2 */
View Source
var GSL_CONST_CGSM_POUND_MASS float64 = 4.5359237e2 /* g */
View Source
var GSL_CONST_CGSM_PROTON_MAGNETIC_MOMENT float64 = 1.410606633e-23 /* abamp cm^2 */
View Source
var GSL_CONST_CGSM_PSI float64 = 6.89475729317e4 /* g / cm s^2 */
View Source
var GSL_CONST_CGSM_QUART float64 = 9.46352946004e2 /* cm^3 */
View Source
var GSL_CONST_CGSM_RAD float64 = 1e2 /* cm^2 / s^2 */
View Source
var GSL_CONST_CGSM_ROENTGEN float64 = 2.58e-8 /* abamp s / g */
View Source
var GSL_CONST_CGSM_RYDBERG float64 = 2.17987196968e-11 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGSM_SOLAR_MASS float64 = 1.98892e33 /* g */
View Source
var GSL_CONST_CGSM_SPEED_OF_LIGHT float64 = 2.99792458e10 /* cm / s */
View Source
var GSL_CONST_CGSM_STANDARD_GAS_VOLUME float64 = 2.2710981e4 /* cm^3 / mol */
View Source
var GSL_CONST_CGSM_STD_ATMOSPHERE float64 = 1.01325e6 /* g / cm s^2 */
View Source
var GSL_CONST_CGSM_STEFAN_BOLTZMANN_CONSTANT float64 = 5.67040047374e-5 /* g / K^4 s^3 */
View Source
var GSL_CONST_CGSM_STILB float64 = 1e0 /* cd / cm^2 */
View Source
var GSL_CONST_CGSM_STOKES float64 = 1e0 /* cm^2 / s */
View Source
var GSL_CONST_CGSM_TABLESPOON float64 = 1.47867647813e1 /* cm^3 */
View Source
var GSL_CONST_CGSM_TEASPOON float64 = 4.92892159375e0 /* cm^3 */
View Source
var GSL_CONST_CGSM_TEXPOINT float64 = 3.51459803515e-2 /* cm */
View Source
var GSL_CONST_CGSM_THERM float64 = 1.05506e15 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGSM_THOMSON_CROSS_SECTION float64 = 6.65245893699e-25 /* cm^2 */
View Source
var GSL_CONST_CGSM_TON float64 = 9.0718474e5 /* g */
View Source
var GSL_CONST_CGSM_TORR float64 = 1.33322368421e3 /* g / cm s^2 */
View Source
var GSL_CONST_CGSM_TROY_OUNCE float64 = 3.1103475e1 /* g */
View Source
var GSL_CONST_CGSM_UK_GALLON float64 = 4.546092e3 /* cm^3 */
View Source
var GSL_CONST_CGSM_UK_TON float64 = 1.0160469088e6 /* g */
View Source
var GSL_CONST_CGSM_UNIFIED_ATOMIC_MASS float64 = 1.660538782e-24 /* g */
View Source
var GSL_CONST_CGSM_US_GALLON float64 = 3.78541178402e3 /* cm^3 */
View Source
var GSL_CONST_CGSM_WEEK float64 = 6.048e5 /* s */
View Source
var GSL_CONST_CGSM_YARD float64 = 9.144e1 /* cm */
View Source
var GSL_CONST_CGS_ACRE float64 = 4.04685642241e7 /* cm^2 */
View Source
var GSL_CONST_CGS_ANGSTROM float64 = 1e-8 /* cm */
View Source
var GSL_CONST_CGS_ASTRONOMICAL_UNIT float64 = 1.49597870691e13 /* cm */
View Source
var GSL_CONST_CGS_BAR float64 = 1e6 /* g / cm s^2 */
View Source
var GSL_CONST_CGS_BARN float64 = 1e-24 /* cm^2 */
View Source
var GSL_CONST_CGS_BOHR_RADIUS float64 = 5.291772083e-9 /* cm */
View Source
var GSL_CONST_CGS_BOLTZMANN float64 = 1.3806504e-16 /* g cm^2 / K s^2 */
View Source
var GSL_CONST_CGS_BTU float64 = 1.05505585262e10 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGS_CALORIE float64 = 4.1868e7 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGS_CANADIAN_GALLON float64 = 4.54609e3 /* cm^3 */
View Source
var GSL_CONST_CGS_CARAT float64 = 2e-1 /* g */
View Source
var GSL_CONST_CGS_CUP float64 = 2.36588236501e2 /* cm^3 */
View Source
var GSL_CONST_CGS_CURIE float64 = 3.7e10 /* 1 / s */
View Source
var GSL_CONST_CGS_DAY float64 = 8.64e4 /* s */
View Source
var GSL_CONST_CGS_DYNE float64 = 1e0 /* cm g / s^2 */
View Source
var GSL_CONST_CGS_ELECTRON_VOLT float64 = 1.602176487e-12 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGS_ERG float64 = 1e0 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGS_FATHOM float64 = 1.8288e2 /* cm */
View Source
var GSL_CONST_CGS_FLUID_OUNCE float64 = 2.95735295626e1 /* cm^3 */
View Source
var GSL_CONST_CGS_FOOT float64 = 3.048e1 /* cm */
View Source
var GSL_CONST_CGS_FOOTCANDLE float64 = 1.076e-3 /* cd sr / cm^2 */
View Source
var GSL_CONST_CGS_FOOTLAMBERT float64 = 1.07639104e-3 /* cd sr / cm^2 */
View Source
var GSL_CONST_CGS_GRAM_FORCE float64 = 9.80665e2 /* cm g / s^2 */
View Source
var GSL_CONST_CGS_GRAVITATIONAL_CONSTANT float64 = 6.673e-8 /* cm^3 / g s^2 */
View Source
var GSL_CONST_CGS_GRAV_ACCEL float64 = 9.80665e2 /* cm / s^2 */
View Source
var GSL_CONST_CGS_HECTARE float64 = 1e8 /* cm^2 */
View Source
var GSL_CONST_CGS_HORSEPOWER float64 = 7.457e9 /* g cm^2 / s^3 */
View Source
var GSL_CONST_CGS_HOUR float64 = 3.6e3 /* s */
View Source
var GSL_CONST_CGS_INCH float64 = 2.54e0 /* cm */
View Source
var GSL_CONST_CGS_INCH_OF_MERCURY float64 = 3.38638815789e4 /* g / cm s^2 */
View Source
var GSL_CONST_CGS_INCH_OF_WATER float64 = 2.490889e3 /* g / cm s^2 */
View Source
var GSL_CONST_CGS_JOULE float64 = 1e7 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGS_KILOMETERS_PER_HOUR float64 = 2.77777777778e1 /* cm / s */
View Source
var GSL_CONST_CGS_KILOPOUND_FORCE float64 = 4.44822161526e8 /* cm g / s^2 */
View Source
var GSL_CONST_CGS_KNOT float64 = 5.14444444444e1 /* cm / s */
View Source
var GSL_CONST_CGS_LAMBERT float64 = 1e0 /* cd sr / cm^2 */
View Source
var GSL_CONST_CGS_LIGHT_YEAR float64 = 9.46053620707e17 /* cm */
View Source
var GSL_CONST_CGS_LITER float64 = 1e3 /* cm^3 */
View Source
var GSL_CONST_CGS_LUMEN float64 = 1e0 /* cd sr */
View Source
var GSL_CONST_CGS_LUX float64 = 1e-4 /* cd sr / cm^2 */
View Source
var GSL_CONST_CGS_MASS_ELECTRON float64 = 9.10938188e-28 /* g */
View Source
var GSL_CONST_CGS_MASS_MUON float64 = 1.88353109e-25 /* g */
View Source
var GSL_CONST_CGS_MASS_NEUTRON float64 = 1.67492716e-24 /* g */
View Source
var GSL_CONST_CGS_MASS_PROTON float64 = 1.67262158e-24 /* g */
View Source
var GSL_CONST_CGS_METER_OF_MERCURY float64 = 1.33322368421e6 /* g / cm s^2 */
View Source
var GSL_CONST_CGS_METRIC_TON float64 = 1e6 /* g */
View Source
var GSL_CONST_CGS_MICRON float64 = 1e-4 /* cm */
View Source
var GSL_CONST_CGS_MIL float64 = 2.54e-3 /* cm */
View Source
var GSL_CONST_CGS_MILE float64 = 1.609344e5 /* cm */
View Source
var GSL_CONST_CGS_MILES_PER_HOUR float64 = 4.4704e1 /* cm / s */
View Source
var GSL_CONST_CGS_MINUTE float64 = 6e1 /* s */
View Source
var GSL_CONST_CGS_MOLAR_GAS float64 = 8.314472e7 /* g cm^2 / K mol s^2 */
View Source
var GSL_CONST_CGS_NAUTICAL_MILE float64 = 1.852e5 /* cm */
View Source
var GSL_CONST_CGS_NEWTON float64 = 1e5 /* cm g / s^2 */
View Source
var GSL_CONST_CGS_OUNCE_MASS float64 = 2.8349523125e1 /* g */
View Source
var GSL_CONST_CGS_PARSEC float64 = 3.08567758135e18 /* cm */
View Source
var GSL_CONST_CGS_PHOT float64 = 1e0 /* cd sr / cm^2 */
View Source
var GSL_CONST_CGS_PINT float64 = 4.73176473002e2 /* cm^3 */
View Source
var GSL_CONST_CGS_PLANCKS_CONSTANT_H float64 = 6.62606896e-27 /* g cm^2 / s */
View Source
var GSL_CONST_CGS_PLANCKS_CONSTANT_HBAR float64 = 1.05457162825e-27 /* g cm^2 / s */
View Source
var GSL_CONST_CGS_POINT float64 = 3.52777777778e-2 /* cm */
View Source
var GSL_CONST_CGS_POISE float64 = 1e0 /* g / cm s */
View Source
var GSL_CONST_CGS_POUNDAL float64 = 1.38255e4 /* cm g / s^2 */
View Source
var GSL_CONST_CGS_POUND_FORCE float64 = 4.44822161526e5 /* cm g / s^2 */
View Source
var GSL_CONST_CGS_POUND_MASS float64 = 4.5359237e2 /* g */
View Source
var GSL_CONST_CGS_PSI float64 = 6.89475729317e4 /* g / cm s^2 */
View Source
var GSL_CONST_CGS_QUART float64 = 9.46352946004e2 /* cm^3 */
View Source
var GSL_CONST_CGS_RAD float64 = 1e2 /* cm^2 / s^2 */
View Source
var GSL_CONST_CGS_ROENTGEN float64 = 2.58e-7 /* A s / g */
View Source
var GSL_CONST_CGS_RYDBERG float64 = 2.17987196968e-11 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGS_SOLAR_MASS float64 = 1.98892e33 /* g */
View Source
var GSL_CONST_CGS_SPEED_OF_LIGHT float64 = 2.99792458e10 /* cm / s */
View Source
var GSL_CONST_CGS_STANDARD_GAS_VOLUME float64 = 2.2710981e4 /* cm^3 / mol */
View Source
var GSL_CONST_CGS_STD_ATMOSPHERE float64 = 1.01325e6 /* g / cm s^2 */
View Source
var GSL_CONST_CGS_STEFAN_BOLTZMANN_CONSTANT float64 = 5.67040047374e-5 /* g / K^4 s^3 */
View Source
var GSL_CONST_CGS_STILB float64 = 1e0 /* cd / cm^2 */
View Source
var GSL_CONST_CGS_STOKES float64 = 1e0 /* cm^2 / s */
View Source
var GSL_CONST_CGS_TABLESPOON float64 = 1.47867647813e1 /* cm^3 */
View Source
var GSL_CONST_CGS_TEASPOON float64 = 4.92892159375e0 /* cm^3 */
View Source
var GSL_CONST_CGS_TEXPOINT float64 = 3.51459803515e-2 /* cm */
View Source
var GSL_CONST_CGS_THERM float64 = 1.05506e15 /* g cm^2 / s^2 */
View Source
var GSL_CONST_CGS_THOMSON_CROSS_SECTION float64 = 6.65245893699e-25 /* cm^2 */
View Source
var GSL_CONST_CGS_TON float64 = 9.0718474e5 /* g */
View Source
var GSL_CONST_CGS_TORR float64 = 1.33322368421e3 /* g / cm s^2 */
View Source
var GSL_CONST_CGS_TROY_OUNCE float64 = 3.1103475e1 /* g */
View Source
var GSL_CONST_CGS_UK_GALLON float64 = 4.546092e3 /* cm^3 */
View Source
var GSL_CONST_CGS_UK_TON float64 = 1.0160469088e6 /* g */
View Source
var GSL_CONST_CGS_UNIFIED_ATOMIC_MASS float64 = 1.660538782e-24 /* g */
View Source
var GSL_CONST_CGS_US_GALLON float64 = 3.78541178402e3 /* cm^3 */
View Source
var GSL_CONST_CGS_WEEK float64 = 6.048e5 /* s */
View Source
var GSL_CONST_CGS_YARD float64 = 9.144e1 /* cm */
View Source
var GSL_CONST_MKSA_ACRE float64 = 4.04685642241e3 /* m^2 */
View Source
var GSL_CONST_MKSA_ANGSTROM float64 = 1e-10 /* m */
View Source
var GSL_CONST_MKSA_ASTRONOMICAL_UNIT float64 = 1.49597870691e11 /* m */
View Source
var GSL_CONST_MKSA_BAR float64 = 1e5 /* kg / m s^2 */
View Source
var GSL_CONST_MKSA_BARN float64 = 1e-28 /* m^2 */
View Source
var GSL_CONST_MKSA_BOHR_MAGNETON float64 = 9.27400899e-24 /* A m^2 */
View Source
var GSL_CONST_MKSA_BOHR_RADIUS float64 = 5.291772083e-11 /* m */
View Source
var GSL_CONST_MKSA_BOLTZMANN float64 = 1.3806504e-23 /* kg m^2 / K s^2 */
View Source
var GSL_CONST_MKSA_BTU float64 = 1.05505585262e3 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKSA_CALORIE float64 = 4.1868e0 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKSA_CANADIAN_GALLON float64 = 4.54609e-3 /* m^3 */
View Source
var GSL_CONST_MKSA_CARAT float64 = 2e-4 /* kg */
View Source
var GSL_CONST_MKSA_CUP float64 = 2.36588236501e-4 /* m^3 */
View Source
var GSL_CONST_MKSA_CURIE float64 = 3.7e10 /* 1 / s */
View Source
var GSL_CONST_MKSA_DAY float64 = 8.64e4 /* s */
View Source
var GSL_CONST_MKSA_DEBYE float64 = 3.33564095198e-30 /* A s^2 / m^2 */
View Source
var GSL_CONST_MKSA_DYNE float64 = 1e-5 /* kg m / s^2 */
View Source
var GSL_CONST_MKSA_ELECTRON_CHARGE float64 = 1.602176487e-19 /* A s */
View Source
var GSL_CONST_MKSA_ELECTRON_MAGNETIC_MOMENT float64 = 9.28476362e-24 /* A m^2 */
View Source
var GSL_CONST_MKSA_ELECTRON_VOLT float64 = 1.602176487e-19 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKSA_ERG float64 = 1e-7 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKSA_FARADAY float64 = 9.64853429775e4 /* A s / mol */
View Source
var GSL_CONST_MKSA_FATHOM float64 = 1.8288e0 /* m */
View Source
var GSL_CONST_MKSA_FLUID_OUNCE float64 = 2.95735295626e-5 /* m^3 */
View Source
var GSL_CONST_MKSA_FOOT float64 = 3.048e-1 /* m */
View Source
var GSL_CONST_MKSA_FOOTCANDLE float64 = 1.076e1 /* cd sr / m^2 */
View Source
var GSL_CONST_MKSA_FOOTLAMBERT float64 = 1.07639104e1 /* cd sr / m^2 */
View Source
var GSL_CONST_MKSA_GAUSS float64 = 1e-4 /* kg / A s^2 */
View Source
var GSL_CONST_MKSA_GRAM_FORCE float64 = 9.80665e-3 /* kg m / s^2 */
View Source
var GSL_CONST_MKSA_GRAVITATIONAL_CONSTANT float64 = 6.673e-11 /* m^3 / kg s^2 */
View Source
var GSL_CONST_MKSA_GRAV_ACCEL float64 = 9.80665e0 /* m / s^2 */
View Source
var GSL_CONST_MKSA_HECTARE float64 = 1e4 /* m^2 */
View Source
var GSL_CONST_MKSA_HORSEPOWER float64 = 7.457e2 /* kg m^2 / s^3 */
View Source
var GSL_CONST_MKSA_HOUR float64 = 3.6e3 /* s */
View Source
var GSL_CONST_MKSA_INCH float64 = 2.54e-2 /* m */
View Source
var GSL_CONST_MKSA_INCH_OF_MERCURY float64 = 3.38638815789e3 /* kg / m s^2 */
View Source
var GSL_CONST_MKSA_INCH_OF_WATER float64 = 2.490889e2 /* kg / m s^2 */
View Source
var GSL_CONST_MKSA_JOULE float64 = 1e0 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKSA_KILOMETERS_PER_HOUR float64 = 2.77777777778e-1 /* m / s */
View Source
var GSL_CONST_MKSA_KILOPOUND_FORCE float64 = 4.44822161526e3 /* kg m / s^2 */
View Source
var GSL_CONST_MKSA_KNOT float64 = 5.14444444444e-1 /* m / s */
View Source
var GSL_CONST_MKSA_LAMBERT float64 = 1e4 /* cd sr / m^2 */
View Source
var GSL_CONST_MKSA_LIGHT_YEAR float64 = 9.46053620707e15 /* m */
View Source
var GSL_CONST_MKSA_LITER float64 = 1e-3 /* m^3 */
View Source
var GSL_CONST_MKSA_LUMEN float64 = 1e0 /* cd sr */
View Source
var GSL_CONST_MKSA_LUX float64 = 1e0 /* cd sr / m^2 */
View Source
var GSL_CONST_MKSA_MASS_ELECTRON float64 = 9.10938188e-31 /* kg */
View Source
var GSL_CONST_MKSA_MASS_MUON float64 = 1.88353109e-28 /* kg */
View Source
var GSL_CONST_MKSA_MASS_NEUTRON float64 = 1.67492716e-27 /* kg */
View Source
var GSL_CONST_MKSA_MASS_PROTON float64 = 1.67262158e-27 /* kg */
View Source
var GSL_CONST_MKSA_METER_OF_MERCURY float64 = 1.33322368421e5 /* kg / m s^2 */
View Source
var GSL_CONST_MKSA_METRIC_TON float64 = 1e3 /* kg */
View Source
var GSL_CONST_MKSA_MICRON float64 = 1e-6 /* m */
View Source
var GSL_CONST_MKSA_MIL float64 = 2.54e-5 /* m */
View Source
var GSL_CONST_MKSA_MILE float64 = 1.609344e3 /* m */
View Source
var GSL_CONST_MKSA_MILES_PER_HOUR float64 = 4.4704e-1 /* m / s */
View Source
var GSL_CONST_MKSA_MINUTE float64 = 6e1 /* s */
View Source
var GSL_CONST_MKSA_MOLAR_GAS float64 = 8.314472e0 /* kg m^2 / K mol s^2 */
View Source
var GSL_CONST_MKSA_NAUTICAL_MILE float64 = 1.852e3 /* m */
View Source
var GSL_CONST_MKSA_NEWTON float64 = 1e0 /* kg m / s^2 */
View Source
var GSL_CONST_MKSA_NUCLEAR_MAGNETON float64 = 5.05078317e-27 /* A m^2 */
View Source
var GSL_CONST_MKSA_OUNCE_MASS float64 = 2.8349523125e-2 /* kg */
View Source
var GSL_CONST_MKSA_PARSEC float64 = 3.08567758135e16 /* m */
View Source
var GSL_CONST_MKSA_PHOT float64 = 1e4 /* cd sr / m^2 */
View Source
var GSL_CONST_MKSA_PINT float64 = 4.73176473002e-4 /* m^3 */
View Source
var GSL_CONST_MKSA_PLANCKS_CONSTANT_H float64 = 6.62606896e-34 /* kg m^2 / s */
View Source
var GSL_CONST_MKSA_PLANCKS_CONSTANT_HBAR float64 = 1.05457162825e-34 /* kg m^2 / s */
View Source
var GSL_CONST_MKSA_POINT float64 = 3.52777777778e-4 /* m */
View Source
var GSL_CONST_MKSA_POISE float64 = 1e-1 /* kg m^-1 s^-1 */
View Source
var GSL_CONST_MKSA_POUNDAL float64 = 1.38255e-1 /* kg m / s^2 */
View Source
var GSL_CONST_MKSA_POUND_FORCE float64 = 4.44822161526e0 /* kg m / s^2 */
View Source
var GSL_CONST_MKSA_POUND_MASS float64 = 4.5359237e-1 /* kg */
View Source
var GSL_CONST_MKSA_PROTON_MAGNETIC_MOMENT float64 = 1.410606633e-26 /* A m^2 */
View Source
var GSL_CONST_MKSA_PSI float64 = 6.89475729317e3 /* kg / m s^2 */
View Source
var GSL_CONST_MKSA_QUART float64 = 9.46352946004e-4 /* m^3 */
View Source
var GSL_CONST_MKSA_RAD float64 = 1e-2 /* m^2 / s^2 */
View Source
var GSL_CONST_MKSA_ROENTGEN float64 = 2.58e-4 /* A s / kg */
View Source
var GSL_CONST_MKSA_RYDBERG float64 = 2.17987196968e-18 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKSA_SOLAR_MASS float64 = 1.98892e30 /* kg */
View Source
var GSL_CONST_MKSA_SPEED_OF_LIGHT float64 = 2.99792458e8 /* m / s */
View Source
var GSL_CONST_MKSA_STANDARD_GAS_VOLUME float64 = 2.2710981e-2 /* m^3 / mol */
View Source
var GSL_CONST_MKSA_STD_ATMOSPHERE float64 = 1.01325e5 /* kg / m s^2 */
View Source
var GSL_CONST_MKSA_STEFAN_BOLTZMANN_CONSTANT float64 = 5.67040047374e-8 /* kg / K^4 s^3 */
View Source
var GSL_CONST_MKSA_STILB float64 = 1e4 /* cd / m^2 */
View Source
var GSL_CONST_MKSA_STOKES float64 = 1e-4 /* m^2 / s */
View Source
var GSL_CONST_MKSA_TABLESPOON float64 = 1.47867647813e-5 /* m^3 */
View Source
var GSL_CONST_MKSA_TEASPOON float64 = 4.92892159375e-6 /* m^3 */
View Source
var GSL_CONST_MKSA_TEXPOINT float64 = 3.51459803515e-4 /* m */
View Source
var GSL_CONST_MKSA_THERM float64 = 1.05506e8 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKSA_THOMSON_CROSS_SECTION float64 = 6.65245893699e-29 /* m^2 */
View Source
var GSL_CONST_MKSA_TON float64 = 9.0718474e2 /* kg */
View Source
var GSL_CONST_MKSA_TORR float64 = 1.33322368421e2 /* kg / m s^2 */
View Source
var GSL_CONST_MKSA_TROY_OUNCE float64 = 3.1103475e-2 /* kg */
View Source
var GSL_CONST_MKSA_UK_GALLON float64 = 4.546092e-3 /* m^3 */
View Source
var GSL_CONST_MKSA_UK_TON float64 = 1.0160469088e3 /* kg */
View Source
var GSL_CONST_MKSA_UNIFIED_ATOMIC_MASS float64 = 1.660538782e-27 /* kg */
View Source
var GSL_CONST_MKSA_US_GALLON float64 = 3.78541178402e-3 /* m^3 */
View Source
var GSL_CONST_MKSA_VACUUM_PERMEABILITY float64 = 1.25663706144e-6 /* kg m / A^2 s^2 */
View Source
var GSL_CONST_MKSA_VACUUM_PERMITTIVITY float64 = 8.854187817e-12 /* A^2 s^4 / kg m^3 */
View Source
var GSL_CONST_MKSA_WEEK float64 = 6.048e5 /* s */
View Source
var GSL_CONST_MKSA_YARD float64 = 9.144e-1 /* m */
View Source
var GSL_CONST_MKS_ACRE float64 = 4.04685642241e3 /* m^2 */
View Source
var GSL_CONST_MKS_ANGSTROM float64 = 1e-10 /* m */
View Source
var GSL_CONST_MKS_ASTRONOMICAL_UNIT float64 = 1.49597870691e11 /* m */
View Source
var GSL_CONST_MKS_BAR float64 = 1e5 /* kg / m s^2 */
View Source
var GSL_CONST_MKS_BARN float64 = 1e-28 /* m^2 */
View Source
var GSL_CONST_MKS_BOHR_MAGNETON float64 = 9.27400899e-24 /* A m^2 */
View Source
var GSL_CONST_MKS_BOHR_RADIUS float64 = 5.291772083e-11 /* m */
View Source
var GSL_CONST_MKS_BOLTZMANN float64 = 1.3806504e-23 /* kg m^2 / K s^2 */
View Source
var GSL_CONST_MKS_BTU float64 = 1.05505585262e3 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKS_CALORIE float64 = 4.1868e0 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKS_CANADIAN_GALLON float64 = 4.54609e-3 /* m^3 */
View Source
var GSL_CONST_MKS_CARAT float64 = 2e-4 /* kg */
View Source
var GSL_CONST_MKS_CUP float64 = 2.36588236501e-4 /* m^3 */
View Source
var GSL_CONST_MKS_CURIE float64 = 3.7e10 /* 1 / s */
View Source
var GSL_CONST_MKS_DAY float64 = 8.64e4 /* s */
View Source
var GSL_CONST_MKS_DEBYE float64 = 3.33564095198e-30 /* A s^2 / m^2 */
View Source
var GSL_CONST_MKS_DYNE float64 = 1e-5 /* kg m / s^2 */
View Source
var GSL_CONST_MKS_ELECTRON_CHARGE float64 = 1.602176487e-19 /* A s */
View Source
var GSL_CONST_MKS_ELECTRON_MAGNETIC_MOMENT float64 = 9.28476362e-24 /* A m^2 */
View Source
var GSL_CONST_MKS_ELECTRON_VOLT float64 = 1.602176487e-19 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKS_ERG float64 = 1e-7 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKS_FARADAY float64 = 9.64853429775e4 /* A s / mol */
View Source
var GSL_CONST_MKS_FATHOM float64 = 1.8288e0 /* m */
View Source
var GSL_CONST_MKS_FLUID_OUNCE float64 = 2.95735295626e-5 /* m^3 */
View Source
var GSL_CONST_MKS_FOOT float64 = 3.048e-1 /* m */
View Source
var GSL_CONST_MKS_FOOTCANDLE float64 = 1.076e1 /* cd sr / m^2 */
View Source
var GSL_CONST_MKS_FOOTLAMBERT float64 = 1.07639104e1 /* cd sr / m^2 */
View Source
var GSL_CONST_MKS_GAUSS float64 = 1e-4 /* kg / A s^2 */
View Source
var GSL_CONST_MKS_GRAM_FORCE float64 = 9.80665e-3 /* kg m / s^2 */
View Source
var GSL_CONST_MKS_GRAVITATIONAL_CONSTANT float64 = 6.673e-11 /* m^3 / kg s^2 */
View Source
var GSL_CONST_MKS_GRAV_ACCEL float64 = 9.80665e0 /* m / s^2 */
View Source
var GSL_CONST_MKS_HECTARE float64 = 1e4 /* m^2 */
View Source
var GSL_CONST_MKS_HORSEPOWER float64 = 7.457e2 /* kg m^2 / s^3 */
View Source
var GSL_CONST_MKS_HOUR float64 = 3.6e3 /* s */
View Source
var GSL_CONST_MKS_INCH float64 = 2.54e-2 /* m */
View Source
var GSL_CONST_MKS_INCH_OF_MERCURY float64 = 3.38638815789e3 /* kg / m s^2 */
View Source
var GSL_CONST_MKS_INCH_OF_WATER float64 = 2.490889e2 /* kg / m s^2 */
View Source
var GSL_CONST_MKS_JOULE float64 = 1e0 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKS_KILOMETERS_PER_HOUR float64 = 2.77777777778e-1 /* m / s */
View Source
var GSL_CONST_MKS_KILOPOUND_FORCE float64 = 4.44822161526e3 /* kg m / s^2 */
View Source
var GSL_CONST_MKS_KNOT float64 = 5.14444444444e-1 /* m / s */
View Source
var GSL_CONST_MKS_LAMBERT float64 = 1e4 /* cd sr / m^2 */
View Source
var GSL_CONST_MKS_LIGHT_YEAR float64 = 9.46053620707e15 /* m */
View Source
var GSL_CONST_MKS_LITER float64 = 1e-3 /* m^3 */
View Source
var GSL_CONST_MKS_LUMEN float64 = 1e0 /* cd sr */
View Source
var GSL_CONST_MKS_LUX float64 = 1e0 /* cd sr / m^2 */
View Source
var GSL_CONST_MKS_MASS_ELECTRON float64 = 9.10938188e-31 /* kg */
View Source
var GSL_CONST_MKS_MASS_MUON float64 = 1.88353109e-28 /* kg */
View Source
var GSL_CONST_MKS_MASS_NEUTRON float64 = 1.67492716e-27 /* kg */
View Source
var GSL_CONST_MKS_MASS_PROTON float64 = 1.67262158e-27 /* kg */
View Source
var GSL_CONST_MKS_METER_OF_MERCURY float64 = 1.33322368421e5 /* kg / m s^2 */
View Source
var GSL_CONST_MKS_METRIC_TON float64 = 1e3 /* kg */
View Source
var GSL_CONST_MKS_MICRON float64 = 1e-6 /* m */
View Source
var GSL_CONST_MKS_MIL float64 = 2.54e-5 /* m */
View Source
var GSL_CONST_MKS_MILE float64 = 1.609344e3 /* m */
View Source
var GSL_CONST_MKS_MILES_PER_HOUR float64 = 4.4704e-1 /* m / s */
View Source
var GSL_CONST_MKS_MINUTE float64 = 6e1 /* s */
View Source
var GSL_CONST_MKS_MOLAR_GAS float64 = 8.314472e0 /* kg m^2 / K mol s^2 */
View Source
var GSL_CONST_MKS_NAUTICAL_MILE float64 = 1.852e3 /* m */
View Source
var GSL_CONST_MKS_NEWTON float64 = 1e0 /* kg m / s^2 */
View Source
var GSL_CONST_MKS_NUCLEAR_MAGNETON float64 = 5.05078317e-27 /* A m^2 */
View Source
var GSL_CONST_MKS_OUNCE_MASS float64 = 2.8349523125e-2 /* kg */
View Source
var GSL_CONST_MKS_PARSEC float64 = 3.08567758135e16 /* m */
View Source
var GSL_CONST_MKS_PHOT float64 = 1e4 /* cd sr / m^2 */
View Source
var GSL_CONST_MKS_PINT float64 = 4.73176473002e-4 /* m^3 */
View Source
var GSL_CONST_MKS_PLANCKS_CONSTANT_H float64 = 6.62606896e-34 /* kg m^2 / s */
View Source
var GSL_CONST_MKS_PLANCKS_CONSTANT_HBAR float64 = 1.05457162825e-34 /* kg m^2 / s */
View Source
var GSL_CONST_MKS_POINT float64 = 3.52777777778e-4 /* m */
View Source
var GSL_CONST_MKS_POISE float64 = 1e-1 /* kg m^-1 s^-1 */
View Source
var GSL_CONST_MKS_POUNDAL float64 = 1.38255e-1 /* kg m / s^2 */
View Source
var GSL_CONST_MKS_POUND_FORCE float64 = 4.44822161526e0 /* kg m / s^2 */
View Source
var GSL_CONST_MKS_POUND_MASS float64 = 4.5359237e-1 /* kg */
View Source
var GSL_CONST_MKS_PROTON_MAGNETIC_MOMENT float64 = 1.410606633e-26 /* A m^2 */
View Source
var GSL_CONST_MKS_PSI float64 = 6.89475729317e3 /* kg / m s^2 */
View Source
var GSL_CONST_MKS_QUART float64 = 9.46352946004e-4 /* m^3 */
View Source
var GSL_CONST_MKS_RAD float64 = 1e-2 /* m^2 / s^2 */
View Source
var GSL_CONST_MKS_ROENTGEN float64 = 2.58e-4 /* A s / kg */
View Source
var GSL_CONST_MKS_RYDBERG float64 = 2.17987196968e-18 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKS_SOLAR_MASS float64 = 1.98892e30 /* kg */
View Source
var GSL_CONST_MKS_SPEED_OF_LIGHT float64 = 2.99792458e8 /* m / s */
View Source
var GSL_CONST_MKS_STANDARD_GAS_VOLUME float64 = 2.2710981e-2 /* m^3 / mol */
View Source
var GSL_CONST_MKS_STD_ATMOSPHERE float64 = 1.01325e5 /* kg / m s^2 */
View Source
var GSL_CONST_MKS_STEFAN_BOLTZMANN_CONSTANT float64 = 5.67040047374e-8 /* kg / K^4 s^3 */
View Source
var GSL_CONST_MKS_STILB float64 = 1e4 /* cd / m^2 */
View Source
var GSL_CONST_MKS_STOKES float64 = 1e-4 /* m^2 / s */
View Source
var GSL_CONST_MKS_TABLESPOON float64 = 1.47867647813e-5 /* m^3 */
View Source
var GSL_CONST_MKS_TEASPOON float64 = 4.92892159375e-6 /* m^3 */
View Source
var GSL_CONST_MKS_TEXPOINT float64 = 3.51459803515e-4 /* m */
View Source
var GSL_CONST_MKS_THERM float64 = 1.05506e8 /* kg m^2 / s^2 */
View Source
var GSL_CONST_MKS_THOMSON_CROSS_SECTION float64 = 6.65245893699e-29 /* m^2 */
View Source
var GSL_CONST_MKS_TON float64 = 9.0718474e2 /* kg */
View Source
var GSL_CONST_MKS_TORR float64 = 1.33322368421e2 /* kg / m s^2 */
View Source
var GSL_CONST_MKS_TROY_OUNCE float64 = 3.1103475e-2 /* kg */
View Source
var GSL_CONST_MKS_UK_GALLON float64 = 4.546092e-3 /* m^3 */
View Source
var GSL_CONST_MKS_UK_TON float64 = 1.0160469088e3 /* kg */
View Source
var GSL_CONST_MKS_UNIFIED_ATOMIC_MASS float64 = 1.660538782e-27 /* kg */
View Source
var GSL_CONST_MKS_US_GALLON float64 = 3.78541178402e-3 /* m^3 */
View Source
var GSL_CONST_MKS_VACUUM_PERMEABILITY float64 = 1.25663706144e-6 /* kg m / A^2 s^2 */
View Source
var GSL_CONST_MKS_VACUUM_PERMITTIVITY float64 = 8.854187817e-12 /* A^2 s^4 / kg m^3 */
View Source
var GSL_CONST_MKS_WEEK float64 = 6.048e5 /* s */
View Source
var GSL_CONST_MKS_YARD float64 = 9.144e-1 /* m */
View Source
var GSL_CONST_NUM_ATTO float64 = 1e-18 /* 1 */
View Source
var GSL_CONST_NUM_AVOGADRO float64 = 6.02214199e23 /* 1 / mol */
View Source
var GSL_CONST_NUM_EXA float64 = 1e18 /* 1 */
View Source
var GSL_CONST_NUM_FEMTO float64 = 1e-15 /* 1 */
View Source
var GSL_CONST_NUM_FINE_STRUCTURE float64 = 7.297352533e-3 /* 1 */
View Source
var GSL_CONST_NUM_GIGA float64 = 1e9 /* 1 */
View Source
var GSL_CONST_NUM_KILO float64 = 1e3 /* 1 */
View Source
var GSL_CONST_NUM_MEGA float64 = 1e6 /* 1 */
View Source
var GSL_CONST_NUM_MICRO float64 = 1e-6 /* 1 */
View Source
var GSL_CONST_NUM_MILLI float64 = 1e-3 /* 1 */
View Source
var GSL_CONST_NUM_NANO float64 = 1e-9 /* 1 */
View Source
var GSL_CONST_NUM_PETA float64 = 1e15 /* 1 */
View Source
var GSL_CONST_NUM_PICO float64 = 1e-12 /* 1 */
View Source
var GSL_CONST_NUM_TERA float64 = 1e12 /* 1 */
View Source
var GSL_CONST_NUM_YOCTO float64 = 1e-24 /* 1 */
View Source
var GSL_CONST_NUM_YOTTA float64 = 1e24 /* 1 */
View Source
var GSL_CONST_NUM_ZEPTO float64 = 1e-21 /* 1 */
View Source
var GSL_CONST_NUM_ZETTA float64 = 1e21 /* 1 */

Functions

func Error

func Error(reason string, gslErrno GslError)

func GetCIntSize

func GetCIntSize() int

func GetCLongLongSize

func GetCLongLongSize() int

func GetCLongSize

func GetCLongSize() int

func GetCShortSize

func GetCShortSize() int

func GetCSizeTSize

func GetCSizeTSize() int

func GetIntSize

func GetIntSize() int

func GetNumberType

func GetNumberType(signed bool, n int) (reflect.Type, error)

func GetUintptrSize

func GetUintptrSize() int

func GslAcosh

func GslAcosh(x float64) float64

func GslAsinh

func GslAsinh(x float64) float64

func GslAtanh

func GslAtanh(x float64) float64

func GslExpm1

func GslExpm1(x float64) float64

func GslFcmp

func GslFcmp(x float64, y float64, epsilon float64) int32

func GslFinite

func GslFinite(x float64) int32

func GslFrexp

func GslFrexp(x float64) (float64, int32)

func GslHypot

func GslHypot(x float64, y float64) float64

func GslHypot3

func GslHypot3(x float64, y float64, z float64) float64

func GslIsinf

func GslIsinf(x float64) int32

func GslIsnan

func GslIsnan(x float64) int32

func GslLdexp

func GslLdexp(x float64, e int32) float64

func GslLog1p

func GslLog1p(x float64) float64

func GslPow2

func GslPow2(x float64) float64

func GslPow3

func GslPow3(x float64) float64

func GslPow4

func GslPow4(x float64) float64

func GslPow5

func GslPow5(x float64) float64

func GslPow6

func GslPow6(x float64) float64

func GslPow7

func GslPow7(x float64) float64

func GslPow8

func GslPow8(x float64) float64

func GslPow9

func GslPow9(x float64) float64

func GslPowInt

func GslPowInt(x float64, n int32) float64

func GslPowUint

func GslPowUint(x float64, n uint32) float64

func GslReferenceFinalizer

func GslReferenceFinalizer(ref CReference)

func GslReferenceForceClear

func GslReferenceForceClear(ref *GslReference)

func InitializeGslFunction

func InitializeGslFunction(ptr *GslFunction)

These structures are allocated in the usual fashion and initialized from desired call parameters.

func InitializeGslFunctionFdf

func InitializeGslFunctionFdf(ptr *GslFunctionFdf)

func InitializeGslReference

func InitializeGslReference(ref CReference, ptr uintptr) error

func InitializeGslStatic

func InitializeGslStatic(ref CStaticReference, ptr uintptr) error

func InitializeGslStruct

func InitializeGslStruct(ref CReference, ptr uintptr) error

Types

type CReference

type CReference interface {
	Ptr() uintptr
	AliasGroup() *ReferenceList
	Dispose()
}

type CStaticReference

type CStaticReference interface {
	CReference
	Data() []byte
}

type FileMode

type FileMode string
var APPEND_ONLY FileMode = "a"
var READ_APPEND FileMode = "a+"
var READ_ONLY FileMode = "r"
var READ_WRITE FileMode = "r+"
var TRUNC_READ_WRITE FileMode = "w+"
var TRUNC_WRITE_ONLY FileMode = "w"

func (*FileMode) Ptr

func (fm *FileMode) Ptr() uintptr

type GslCFunction

type GslCFunction uintptr

type GslCFunctionFdf

type GslCFunctionFdf uintptr

type GslError

type GslError int
const (
	GSL_SUCCESS  GslError = 0
	GSL_FAILURE  GslError = -1
	GSL_CONTINUE GslError = -2 /* iteration has not converged */
	GSL_EDOM     GslError = 1  /* input domain error, e.g sqrt(-1) */
	GSL_ERANGE   GslError = 2  /* output range error, e.g. exp(1e100) */
	GSL_EFAULT   GslError = 3  /* invalid poGslErrorer */
	GSL_EINVAL   GslError = 4  /* invalid argument supplied by user */
	GSL_EFAILED  GslError = 5  /* generic failure */
	GSL_EFACTOR  GslError = 6  /* factorization failed */
	GSL_ESANITY  GslError = 7  /* sanity check failed - shouldn't happen */
	GSL_ENOMEM   GslError = 8  /* malloc failed */
	GSL_EBADFUNC GslError = 9  /* problem with user-supplied function */
	GSL_ERUNAWAY GslError = 10 /* iterative process is out of control */
	GSL_EMAXITER GslError = 11 /* exceeded max number of iterations */
	GSL_EZERODIV GslError = 12 /* tried to divide by zero */
	GSL_EBADTOL  GslError = 13 /* user specified an invalid tolerance */
	GSL_ETOL     GslError = 14 /* failed to reach the specified tolerance */
	GSL_EUNDRFLW GslError = 15 /* underflow */
	GSL_EOVRFLW  GslError = 16 /* overflow  */
	GSL_ELOSS    GslError = 17 /* loss of accuracy */
	GSL_EROUND   GslError = 18 /* failed because of roundoff error */
	GSL_EBADLEN  GslError = 19 /* matrix, vector lengths are not conformant */
	GSL_ENOTSQR  GslError = 20 /* matrix not square */
	GSL_ESING    GslError = 21 /* apparent singularity detected */
	GSL_EDIVERGE GslError = 22 /* GslErroregral or series is divergent */
	GSL_EUNSUP   GslError = 23 /* requested feature is not supported by the hardware */
	GSL_EUNIMPL  GslError = 24 /* requested feature not (yet) implemented */
	GSL_ECACHE   GslError = 25 /* cache limit exceeded */
	GSL_ETABLE   GslError = 26 /* table limit exceeded */
	GSL_ENOPROG  GslError = 27 /* iteration is not making progress towards solution */
	GSL_ENOPROGJ GslError = 28 /* jacobian evaluations are not improving the solution */
	GSL_ETOLF    GslError = 29 /* cannot reach the specified tolerance in F */
	GSL_ETOLX    GslError = 30 /* cannot reach the specified tolerance in X */
	GSL_ETOLG    GslError = 31 /* cannot reach the specified tolerance in gradient */
	GSL_EOF      GslError = 32 /* end of file */
)

func (GslError) String

func (ge GslError) String() string

const char * gsl_strerror (const GslError gsl_errno)

type GslErrorHandler

type GslErrorHandler struct {
	Handler GslErrorHandlerType
	// contains filtered or unexported fields
}

func SetErrorHandler

func SetErrorHandler(handler *GslErrorHandler) *GslErrorHandler

gsl_error_handler_t * gsl_set_error_handler (gsl_error_handler_t * new_handler)

func SetErrorHandlerOff

func SetErrorHandlerOff() *GslErrorHandler

gsl_error_handler_t * gsl_set_error_handler_off ()

type GslErrorHandlerType

type GslErrorHandlerType func(reason string, file string, line int, gslError GslError)

type GslFunction

type GslFunction struct {
	Function GslFunctionType
	Params   interface{}
	// contains filtered or unexported fields
}

func (GslFunction) CPtr

func (gf GslFunction) CPtr() uintptr

These pointers can be cast to the package-local types (eg. *C.gsl_function) to perform the call.

func (*GslFunction) Eval

func (f *GslFunction) Eval(x float64) float64

type GslFunctionFdf

type GslFunctionFdf struct {
	Function   GslFunctionType
	Derivative GslFunctionType
	Fdf        GslFunctionFdfType
	Params     interface{}
	// contains filtered or unexported fields
}

func (GslFunctionFdf) CPtr

func (gf GslFunctionFdf) CPtr() uintptr

func (*GslFunctionFdf) Eval

func (f *GslFunctionFdf) Eval(x float64) (float64, float64)

func (*GslFunctionFdf) EvalDf

func (f *GslFunctionFdf) EvalDf(x float64) float64

func (*GslFunctionFdf) EvalF

func (f *GslFunctionFdf) EvalF(x float64) float64

type GslFunctionFdfType

type GslFunctionFdfType func(x float64, params interface{}) (float64, float64)

type GslFunctionType

type GslFunctionType func(x float64, params interface{}) float64

type GslReference

type GslReference struct {
	// contains filtered or unexported fields
}

func (*GslReference) AliasGroup

func (ref *GslReference) AliasGroup() *ReferenceList

func (*GslReference) Ptr

func (ref *GslReference) Ptr() uintptr

type ReferenceList

type ReferenceList struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
sf
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
airy
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
bessel/cylindrical
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
bessel/fractional
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
bessel/spherical
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
clausen
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
coulomb
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
coupling
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
dawson
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
debye
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
dilog
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
ellint
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
elljac
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
erf
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
exp
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
expint
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
fermidirac
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
gamma
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
gegenbauer
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
hyperg
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
laguerre
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
lambert
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
legendre
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
log
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
mathieu
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
powint
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
psi
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
syncrhotron
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
transport
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
trig
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
zeta
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////
//////// AUTOMATICALLY GENERATED CODE - DO NOT EDIT //////////

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL