本文整理匯總了Golang中github.com/dtromb/gogsl/sf.GslSfResult類的典型用法代碼示例。如果您正苦於以下問題:Golang GslSfResult類的具體用法?Golang GslSfResult怎麽用?Golang GslSfResult使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了GslSfResult類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: TestSf
func TestSf(t *testing.T) {
var x float64 = 5.0
var result sf.GslSfResult
expected := -0.17759677131433830434739701
status := bessel.J0E(x, &result)
fmt.Printf("status = %s\n", gogsl.GslError(status).String())
fmt.Printf("J0(5.0) = %.18f\n"+
" +/- % .18f\n", result.Val(), result.Err())
fmt.Printf("exact = %.18f\n", expected)
if math.Abs(result.Val()-expected) > result.Err() {
t.Error("incorrect value")
}
}
示例2: LnchooseE
func LnchooseE(n uint32, m uint32, result *sf.GslSfResult) int32 {
return int32(C.gsl_sf_lnchoose_e(C.uint(n), C.uint(m), (*C.gsl_sf_result)(unsafe.Pointer(result.Ptr()))))
}
示例3: LaguerreNE
func LaguerreNE(n int32, a float64, x float64, result *sf.GslSfResult) int32 {
return int32(C.gsl_sf_laguerre_n_e(C.int(n), C.double(a), C.double(x), (*C.gsl_sf_result)(unsafe.Pointer(result.Ptr()))))
}
示例4: LngammaSgnE
func LngammaSgnE(x float64, resultLg *sf.GslSfResult) (int32, float64) {
var _outptr_2 C.double
_result := int32(C.gsl_sf_lngamma_sgn_e(C.double(x), (*C.gsl_sf_result)(unsafe.Pointer(resultLg.Ptr())), &_outptr_2))
return _result, *(*float64)(unsafe.Pointer(&_outptr_2))
}
示例5: LngammaComplexE
func LngammaComplexE(zr float64, zi float64, lnr *sf.GslSfResult, arg *sf.GslSfResult) int32 {
return int32(C.gsl_sf_lngamma_complex_e(C.double(zr), C.double(zi), (*C.gsl_sf_result)(unsafe.Pointer(lnr.Ptr())), (*C.gsl_sf_result)(unsafe.Pointer(arg.Ptr()))))
}
示例6: PochrelE
func PochrelE(a float64, x float64, result *sf.GslSfResult) int32 {
return int32(C.gsl_sf_pochrel_e(C.double(a), C.double(x), (*C.gsl_sf_result)(unsafe.Pointer(result.Ptr()))))
}
示例7: LnbetaE
func LnbetaE(a float64, b float64, result *sf.GslSfResult) int32 {
return int32(C.gsl_sf_lnbeta_e(C.double(a), C.double(b), (*C.gsl_sf_result)(unsafe.Pointer(result.Ptr()))))
}
示例8: RJE
func RJE(x float64, y float64, z float64, p float64, mode sf.GslMode, result *sf.GslSfResult) int32 {
return int32(C.gsl_sf_ellint_RJ_e(C.double(x), C.double(y), C.double(z), C.double(p), C.gsl_mode_t(mode), (*C.gsl_sf_result)(unsafe.Pointer(result.Ptr()))))
}
示例9: Wm1E
func Wm1E(x float64, result *sf.GslSfResult) int32 {
return int32(C.gsl_sf_lambert_Wm1_e(C.double(x), (*C.gsl_sf_result)(unsafe.Pointer(result.Ptr()))))
}
示例10: EcompE
func EcompE(k float64, mode sf.GslMode, result *sf.GslSfResult) int32 {
return int32(C.gsl_sf_ellint_Ecomp_e(C.double(k), C.gsl_mode_t(mode), (*C.gsl_sf_result)(unsafe.Pointer(result.Ptr()))))
}
示例11: DE
func DE(phi float64, k float64, n float64, mode sf.GslMode, result *sf.GslSfResult) int32 {
return int32(C.gsl_sf_ellint_D_e(C.double(phi), C.double(k), C.double(n), C.gsl_mode_t(mode), (*C.gsl_sf_result)(unsafe.Pointer(result.Ptr()))))
}
示例12: CLE
func CLE(l float64, eta float64, result *sf.GslSfResult) int32 {
return int32(C.gsl_sf_coulomb_CL_e(C.double(l), C.double(eta), (*C.gsl_sf_result)(unsafe.Pointer(result.Ptr()))))
}
示例13: WaveFGE
func WaveFGE(eta float64, x float64, lF float64, k int32, f *sf.GslSfResult, fp *sf.GslSfResult, g *sf.GslSfResult, gp *sf.GslSfResult, expF []float64, expG []float64) int32 {
_slice_header_8 := (*reflect.SliceHeader)(unsafe.Pointer(&expF))
_slice_header_9 := (*reflect.SliceHeader)(unsafe.Pointer(&expG))
return int32(C.gsl_sf_coulomb_wave_FG_e(C.double(eta), C.double(x), C.double(lF), C.int(k), (*C.gsl_sf_result)(unsafe.Pointer(f.Ptr())), (*C.gsl_sf_result)(unsafe.Pointer(fp.Ptr())), (*C.gsl_sf_result)(unsafe.Pointer(g.Ptr())), (*C.gsl_sf_result)(unsafe.Pointer(gp.Ptr())), (*C.double)(unsafe.Pointer(_slice_header_8.Data)), (*C.double)(unsafe.Pointer(_slice_header_9.Data))))
}
示例14: HydrogenicRE
func HydrogenicRE(n int32, l int32, z float64, r float64, result *sf.GslSfResult) int32 {
return int32(C.gsl_sf_hydrogenicR_e(C.int(n), C.int(l), C.double(z), C.double(r), (*C.gsl_sf_result)(unsafe.Pointer(result.Ptr()))))
}
示例15: TaylorcoeffE
func TaylorcoeffE(n int32, x float64, result *sf.GslSfResult) int32 {
return int32(C.gsl_sf_taylorcoeff_e(C.int(n), C.double(x), (*C.gsl_sf_result)(unsafe.Pointer(result.Ptr()))))
}