@danielsimonjr/mathts-wasm 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,25 +25,26 @@
25
25
  (type $23 (func (param i32 i32 f64) (result i32)))
26
26
  (type $24 (func (param i32 i32 i32 i32 i32) (result i32)))
27
27
  (type $25 (func (param i32 f64) (result i32)))
28
- (type $26 (func (param i32 i32 i32 i32 i32)))
29
- (type $27 (func (param i32 i32 i32) (result f64)))
30
- (type $28 (func (param f64 i64) (result i32)))
31
- (type $29 (func (param f64 f64 i32) (result f64)))
32
- (type $30 (func (param f64 i32 f64 i32 i32)))
33
- (type $31 (func (param i32 f64 f64)))
34
- (type $32 (func (param i32 i32 i32 i32) (result f64)))
35
- (type $33 (func (param i32 i32 i32 i32 f64)))
36
- (type $34 (func (param i32 i32 i32 i32 i32 i32)))
37
- (type $35 (func (param f64 i32 i32)))
38
- (type $36 (func (param f64 i32 i32 i32 i32 i32 f64 i32)))
39
- (type $37 (func (param f64 i32 i32 i32 i32 f64 i32)))
40
- (type $38 (func (param i32 i32 i32 i32 i32 i32 i32)))
41
- (type $39 (func (param i32 f64 f64) (result f64)))
42
- (type $40 (func (param i32 i32 f64 f64 f64 f64) (result i32)))
43
- (type $41 (func (param i32 i32 i32 i32 i32 i32) (result i32)))
44
- (type $42 (func (param f64 f64 f64 f64) (result f64)))
45
- (type $43 (func (param i32 i32 f64 f64)))
46
- (type $44 (func (param i32 f64 f64 i32)))
28
+ (type $26 (func (param f64 i32) (result f64)))
29
+ (type $27 (func (param f64 f64 i32) (result f64)))
30
+ (type $28 (func (param i32 i32 i32 i32 i32)))
31
+ (type $29 (func (param i32 i32 i32) (result f64)))
32
+ (type $30 (func (param f64 i64) (result i32)))
33
+ (type $31 (func (param f64 i32 f64 i32 i32)))
34
+ (type $32 (func (param i32 f64 f64)))
35
+ (type $33 (func (param i32 i32 i32 i32) (result f64)))
36
+ (type $34 (func (param i32 i32 i32 i32 f64)))
37
+ (type $35 (func (param i32 i32 i32 i32 i32 i32)))
38
+ (type $36 (func (param f64 i32 i32)))
39
+ (type $37 (func (param f64 i32 i32 i32 i32 i32 f64 i32)))
40
+ (type $38 (func (param f64 i32 i32 i32 i32 f64 i32)))
41
+ (type $39 (func (param i32 i32 i32 i32 i32 i32 i32)))
42
+ (type $40 (func (param i32 f64 f64) (result f64)))
43
+ (type $41 (func (param i32 i32 f64 f64 f64 f64) (result i32)))
44
+ (type $42 (func (param i32 i32 i32 i32 i32 i32) (result i32)))
45
+ (type $43 (func (param f64 f64 f64 f64) (result f64)))
46
+ (type $44 (func (param i32 i32 f64 f64)))
47
+ (type $45 (func (param i32 f64 f64 i32)))
47
48
  (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
48
49
  (global $~lib/rt/stub/startOffset (mut i32) (i32.const 0))
49
50
  (global $~lib/rt/stub/offset (mut i32) (i32.const 0))
@@ -76,16 +77,13 @@
76
77
  (global $src/special/_LGAMMA_C6 f64 (f64.const -0.13857109526572012))
77
78
  (global $src/special/_LGAMMA_C7 f64 (f64.const 9.984369578019572e-06))
78
79
  (global $src/special/_LGAMMA_C8 f64 (f64.const 1.5056327351493116e-07))
79
- (global $src/special/AIRY_C0 f64 (f64.const 1))
80
- (global $src/special/AIRY_C1 f64 (f64.const 0.06944444444444445))
81
- (global $src/special/AIRY_C2 f64 (f64.const 0.037133487654320986))
82
- (global $src/special/AIRY_C3 f64 (f64.const 0.03799305912780064))
83
- (global $src/special/AIRY_C4 f64 (f64.const 0.05764919041266972))
84
- (global $src/special/AIRY_C5 f64 (f64.const 0.09312024312583891))
85
- (global $src/special/AIRY_C6 f64 (f64.const 0.170399635527114))
80
+ (global $src/special/_EULER_GAMMA f64 (f64.const 0.5772156649015329))
81
+ (global $src/special/_TWO_OVER_PI f64 (f64.const 0.6366197723675814))
82
+ (global $src/special/_ONE_OVER_PI f64 (f64.const 0.3183098861837907))
83
+ (global $src/special/_BESSEL_SERIES_MAX f64 (f64.const 13))
86
84
  (global $src/special/AI0 f64 (f64.const 0.3550280538878172))
87
85
  (global $src/special/AI_PRIME0 f64 (f64.const 0.2588194037928068))
88
- (global $src/special/XBIG f64 (f64.const 4.5))
86
+ (global $src/special/XBIG f64 (f64.const 5))
89
87
  (global $~lib/native/ASC_SHRINK_LEVEL i32 (i32.const 0))
90
88
  (global $~lib/math/rempio2_y0 (mut f64) (f64.const 0))
91
89
  (global $~lib/math/rempio2_y1 (mut f64) (f64.const 0))
@@ -26834,18 +26832,264 @@
26834
26832
  local.get $out
26835
26833
  return
26836
26834
  )
26835
+ (func $src/special/_besselJ0Series (param $x f64) (result f64)
26836
+ (local $z f64)
26837
+ (local $term f64)
26838
+ (local $sum f64)
26839
+ (local $k i32)
26840
+ (local $kf f64)
26841
+ (local $x|6 f64)
26842
+ (local $x|7 f64)
26843
+ f64.const -0.25
26844
+ local.get $x
26845
+ f64.mul
26846
+ local.get $x
26847
+ f64.mul
26848
+ local.set $z
26849
+ f64.const 1
26850
+ local.set $term
26851
+ f64.const 1
26852
+ local.set $sum
26853
+ i32.const 1
26854
+ local.set $k
26855
+ block $for-break0
26856
+ loop $for-loop|0
26857
+ local.get $k
26858
+ i32.const 80
26859
+ i32.le_s
26860
+ if
26861
+ local.get $k
26862
+ f64.convert_i32_s
26863
+ local.set $kf
26864
+ local.get $term
26865
+ local.get $z
26866
+ local.get $kf
26867
+ local.get $kf
26868
+ f64.mul
26869
+ f64.div
26870
+ f64.mul
26871
+ local.set $term
26872
+ local.get $sum
26873
+ local.get $term
26874
+ f64.add
26875
+ local.set $sum
26876
+ block $~lib/math/NativeMath.abs|inlined.40 (result f64)
26877
+ local.get $term
26878
+ local.set $x|6
26879
+ local.get $x|6
26880
+ f64.abs
26881
+ br $~lib/math/NativeMath.abs|inlined.40
26882
+ end
26883
+ block $~lib/math/NativeMath.abs|inlined.41 (result f64)
26884
+ local.get $sum
26885
+ local.set $x|7
26886
+ local.get $x|7
26887
+ f64.abs
26888
+ br $~lib/math/NativeMath.abs|inlined.41
26889
+ end
26890
+ f64.const 1e-17
26891
+ f64.mul
26892
+ f64.le
26893
+ if
26894
+ br $for-break0
26895
+ end
26896
+ local.get $k
26897
+ i32.const 1
26898
+ i32.add
26899
+ local.set $k
26900
+ br $for-loop|0
26901
+ end
26902
+ end
26903
+ end
26904
+ local.get $sum
26905
+ return
26906
+ )
26907
+ (func $src/special/_besselHankel (param $nu f64) (param $x f64) (param $wantY i32) (result f64)
26908
+ (local $mu f64)
26909
+ (local $P f64)
26910
+ (local $Q f64)
26911
+ (local $a f64)
26912
+ (local $xk f64)
26913
+ (local $prevMag f64)
26914
+ (local $k i32)
26915
+ (local $twokm1 f64)
26916
+ (local $t f64)
26917
+ (local $x|12 f64)
26918
+ (local $mag f64)
26919
+ (local $m4 i32)
26920
+ (local $s f64)
26921
+ (local $chi f64)
26922
+ (local $x|17 f64)
26923
+ (local $amp f64)
26924
+ f64.const 4
26925
+ local.get $nu
26926
+ f64.mul
26927
+ local.get $nu
26928
+ f64.mul
26929
+ local.set $mu
26930
+ f64.const 1
26931
+ local.set $P
26932
+ f64.const 0
26933
+ local.set $Q
26934
+ f64.const 1
26935
+ local.set $a
26936
+ f64.const 1
26937
+ local.set $xk
26938
+ f64.const inf
26939
+ local.set $prevMag
26940
+ i32.const 1
26941
+ local.set $k
26942
+ block $for-break0
26943
+ loop $for-loop|0
26944
+ local.get $k
26945
+ i32.const 40
26946
+ i32.le_s
26947
+ if
26948
+ f64.const 2
26949
+ local.get $k
26950
+ f64.convert_i32_s
26951
+ f64.mul
26952
+ f64.const 1
26953
+ f64.sub
26954
+ local.set $twokm1
26955
+ local.get $a
26956
+ local.get $mu
26957
+ local.get $twokm1
26958
+ local.get $twokm1
26959
+ f64.mul
26960
+ f64.sub
26961
+ f64.mul
26962
+ f64.const 8
26963
+ local.get $k
26964
+ f64.convert_i32_s
26965
+ f64.mul
26966
+ f64.div
26967
+ local.set $a
26968
+ local.get $xk
26969
+ local.get $x
26970
+ f64.mul
26971
+ local.set $xk
26972
+ local.get $a
26973
+ local.get $xk
26974
+ f64.div
26975
+ local.set $t
26976
+ block $~lib/math/NativeMath.abs|inlined.42 (result f64)
26977
+ local.get $t
26978
+ local.set $x|12
26979
+ local.get $x|12
26980
+ f64.abs
26981
+ br $~lib/math/NativeMath.abs|inlined.42
26982
+ end
26983
+ local.set $mag
26984
+ local.get $mag
26985
+ local.get $prevMag
26986
+ f64.gt
26987
+ if
26988
+ br $for-break0
26989
+ end
26990
+ local.get $mag
26991
+ local.set $prevMag
26992
+ local.get $k
26993
+ i32.const 3
26994
+ i32.and
26995
+ local.set $m4
26996
+ local.get $m4
26997
+ i32.const 1
26998
+ i32.eq
26999
+ if (result i32)
27000
+ i32.const 1
27001
+ else
27002
+ local.get $m4
27003
+ i32.const 0
27004
+ i32.eq
27005
+ end
27006
+ if (result f64)
27007
+ f64.const 1
27008
+ else
27009
+ f64.const -1
27010
+ end
27011
+ local.set $s
27012
+ local.get $k
27013
+ i32.const 1
27014
+ i32.and
27015
+ i32.const 1
27016
+ i32.eq
27017
+ if
27018
+ local.get $Q
27019
+ local.get $s
27020
+ local.get $t
27021
+ f64.mul
27022
+ f64.add
27023
+ local.set $Q
27024
+ else
27025
+ local.get $P
27026
+ local.get $s
27027
+ local.get $t
27028
+ f64.mul
27029
+ f64.add
27030
+ local.set $P
27031
+ end
27032
+ local.get $k
27033
+ i32.const 1
27034
+ i32.add
27035
+ local.set $k
27036
+ br $for-loop|0
27037
+ end
27038
+ end
27039
+ end
27040
+ local.get $x
27041
+ local.get $nu
27042
+ f64.const 0.5
27043
+ f64.mul
27044
+ f64.const 0.25
27045
+ f64.add
27046
+ global.get $~lib/math/NativeMath.PI
27047
+ f64.mul
27048
+ f64.sub
27049
+ local.set $chi
27050
+ block $~lib/math/NativeMath.sqrt|inlined.9 (result f64)
27051
+ f64.const 2
27052
+ global.get $~lib/math/NativeMath.PI
27053
+ local.get $x
27054
+ f64.mul
27055
+ f64.div
27056
+ local.set $x|17
27057
+ local.get $x|17
27058
+ f64.sqrt
27059
+ br $~lib/math/NativeMath.sqrt|inlined.9
27060
+ end
27061
+ local.set $amp
27062
+ local.get $wantY
27063
+ if (result f64)
27064
+ local.get $amp
27065
+ local.get $P
27066
+ local.get $chi
27067
+ call $~lib/math/NativeMath.sin
27068
+ f64.mul
27069
+ local.get $Q
27070
+ local.get $chi
27071
+ call $~lib/math/NativeMath.cos
27072
+ f64.mul
27073
+ f64.add
27074
+ f64.mul
27075
+ else
27076
+ local.get $amp
27077
+ local.get $P
27078
+ local.get $chi
27079
+ call $~lib/math/NativeMath.cos
27080
+ f64.mul
27081
+ local.get $Q
27082
+ local.get $chi
27083
+ call $~lib/math/NativeMath.sin
27084
+ f64.mul
27085
+ f64.sub
27086
+ f64.mul
27087
+ end
27088
+ return
27089
+ )
26837
27090
  (func $src/special/_besselJ0 (param $x f64) (result f64)
26838
27091
  (local $x|1 f64)
26839
27092
  (local $ax f64)
26840
- (local $y f64)
26841
- (local $ans1 f64)
26842
- (local $ans2 f64)
26843
- (local $z f64)
26844
- (local $y|7 f64)
26845
- (local $xx f64)
26846
- (local $ans1|9 f64)
26847
- (local $ans2|10 f64)
26848
- (local $x|11 f64)
26849
27093
  block $~lib/math/NativeMath.abs|inlined.39 (result f64)
26850
27094
  local.get $x
26851
27095
  local.set $x|1
@@ -26855,129 +27099,17 @@
26855
27099
  end
26856
27100
  local.set $ax
26857
27101
  local.get $ax
26858
- f64.const 8
26859
- f64.lt
26860
- if
26861
- local.get $ax
27102
+ global.get $src/special/_BESSEL_SERIES_MAX
27103
+ f64.le
27104
+ if (result f64)
26862
27105
  local.get $ax
26863
- f64.mul
26864
- local.set $y
26865
- f64.const 57568490574
26866
- local.get $y
26867
- f64.const -13362590354
26868
- local.get $y
26869
- f64.const 651619640.7
26870
- local.get $y
26871
- f64.const -11214424.18
26872
- local.get $y
26873
- f64.const 77392.33017
26874
- local.get $y
26875
- f64.const -184.9052456
26876
- f64.mul
26877
- f64.add
26878
- f64.mul
26879
- f64.add
26880
- f64.mul
26881
- f64.add
26882
- f64.mul
26883
- f64.add
26884
- f64.mul
26885
- f64.add
26886
- local.set $ans1
26887
- f64.const 57568490411
26888
- local.get $y
26889
- f64.const 1029532985
26890
- local.get $y
26891
- f64.const 9494680.718
26892
- local.get $y
26893
- f64.const 59272.64853
26894
- local.get $y
26895
- f64.const 267.8532712
26896
- local.get $y
26897
- f64.add
26898
- f64.mul
26899
- f64.add
26900
- f64.mul
26901
- f64.add
26902
- f64.mul
26903
- f64.add
26904
- f64.mul
26905
- f64.add
26906
- local.set $ans2
26907
- local.get $ans1
26908
- local.get $ans2
26909
- f64.div
26910
- return
26911
- end
26912
- f64.const 8
26913
- local.get $ax
26914
- f64.div
26915
- local.set $z
26916
- local.get $z
26917
- local.get $z
26918
- f64.mul
26919
- local.set $y|7
26920
- local.get $ax
26921
- f64.const 0.785398164
26922
- f64.sub
26923
- local.set $xx
26924
- f64.const 1
26925
- local.get $y|7
26926
- f64.const -0.001098628627
26927
- local.get $y|7
26928
- f64.const 0.00002734510407
26929
- local.get $y|7
26930
- f64.const -2.073370639e-06
26931
- local.get $y|7
26932
- f64.const 2.093887211e-07
26933
- f64.mul
26934
- f64.add
26935
- f64.mul
26936
- f64.add
26937
- f64.mul
26938
- f64.add
26939
- f64.mul
26940
- f64.add
26941
- local.set $ans1|9
26942
- f64.const -0.01562499995
26943
- local.get $y|7
26944
- f64.const 0.0001430488765
26945
- local.get $y|7
26946
- f64.const -6.911147651e-06
26947
- local.get $y|7
26948
- f64.const 7.621095161e-07
26949
- local.get $y|7
26950
- f64.const 9.34935152e-08
26951
- f64.mul
26952
- f64.sub
26953
- f64.mul
26954
- f64.add
26955
- f64.mul
26956
- f64.add
26957
- f64.mul
26958
- f64.add
26959
- local.set $ans2|10
26960
- block $~lib/math/NativeMath.sqrt|inlined.9 (result f64)
26961
- f64.const 0.636619772
27106
+ call $src/special/_besselJ0Series
27107
+ else
27108
+ f64.const 0
26962
27109
  local.get $ax
26963
- f64.div
26964
- local.set $x|11
26965
- local.get $x|11
26966
- f64.sqrt
26967
- br $~lib/math/NativeMath.sqrt|inlined.9
27110
+ i32.const 0
27111
+ call $src/special/_besselHankel
26968
27112
  end
26969
- local.get $xx
26970
- call $~lib/math/NativeMath.cos
26971
- local.get $ans1|9
26972
- f64.mul
26973
- local.get $z
26974
- local.get $xx
26975
- call $~lib/math/NativeMath.sin
26976
- f64.mul
26977
- local.get $ans2|10
26978
- f64.mul
26979
- f64.sub
26980
- f64.mul
26981
27113
  return
26982
27114
  )
26983
27115
  (func $src/special/bessel_j0_f64 (param $xs i32) (result i32)
@@ -27013,19 +27145,89 @@
27013
27145
  local.get $out
27014
27146
  return
27015
27147
  )
27148
+ (func $src/special/_besselJ1Series (param $x f64) (result f64)
27149
+ (local $z f64)
27150
+ (local $term f64)
27151
+ (local $sum f64)
27152
+ (local $k i32)
27153
+ (local $kf f64)
27154
+ (local $x|6 f64)
27155
+ (local $x|7 f64)
27156
+ f64.const -0.25
27157
+ local.get $x
27158
+ f64.mul
27159
+ local.get $x
27160
+ f64.mul
27161
+ local.set $z
27162
+ f64.const 1
27163
+ local.set $term
27164
+ f64.const 1
27165
+ local.set $sum
27166
+ i32.const 1
27167
+ local.set $k
27168
+ block $for-break0
27169
+ loop $for-loop|0
27170
+ local.get $k
27171
+ i32.const 80
27172
+ i32.le_s
27173
+ if
27174
+ local.get $k
27175
+ f64.convert_i32_s
27176
+ local.set $kf
27177
+ local.get $term
27178
+ local.get $z
27179
+ local.get $kf
27180
+ local.get $kf
27181
+ f64.const 1
27182
+ f64.add
27183
+ f64.mul
27184
+ f64.div
27185
+ f64.mul
27186
+ local.set $term
27187
+ local.get $sum
27188
+ local.get $term
27189
+ f64.add
27190
+ local.set $sum
27191
+ block $~lib/math/NativeMath.abs|inlined.44 (result f64)
27192
+ local.get $term
27193
+ local.set $x|6
27194
+ local.get $x|6
27195
+ f64.abs
27196
+ br $~lib/math/NativeMath.abs|inlined.44
27197
+ end
27198
+ block $~lib/math/NativeMath.abs|inlined.45 (result f64)
27199
+ local.get $sum
27200
+ local.set $x|7
27201
+ local.get $x|7
27202
+ f64.abs
27203
+ br $~lib/math/NativeMath.abs|inlined.45
27204
+ end
27205
+ f64.const 1e-17
27206
+ f64.mul
27207
+ f64.le
27208
+ if
27209
+ br $for-break0
27210
+ end
27211
+ local.get $k
27212
+ i32.const 1
27213
+ i32.add
27214
+ local.set $k
27215
+ br $for-loop|0
27216
+ end
27217
+ end
27218
+ end
27219
+ f64.const 0.5
27220
+ local.get $x
27221
+ f64.mul
27222
+ local.get $sum
27223
+ f64.mul
27224
+ return
27225
+ )
27016
27226
  (func $src/special/_besselJ1 (param $x f64) (result f64)
27017
27227
  (local $sign f64)
27018
27228
  (local $x|2 f64)
27019
27229
  (local $ax f64)
27020
- (local $y f64)
27021
- (local $ans1 f64)
27022
- (local $ans2 f64)
27023
- (local $z f64)
27024
- (local $y|8 f64)
27025
- (local $xx f64)
27026
- (local $ans1|10 f64)
27027
- (local $ans2|11 f64)
27028
- (local $x|12 f64)
27230
+ (local $val f64)
27029
27231
  local.get $x
27030
27232
  f64.const 0
27031
27233
  f64.lt
@@ -27035,143 +27237,29 @@
27035
27237
  f64.const 1
27036
27238
  end
27037
27239
  local.set $sign
27038
- block $~lib/math/NativeMath.abs|inlined.40 (result f64)
27240
+ block $~lib/math/NativeMath.abs|inlined.43 (result f64)
27039
27241
  local.get $x
27040
27242
  local.set $x|2
27041
27243
  local.get $x|2
27042
27244
  f64.abs
27043
- br $~lib/math/NativeMath.abs|inlined.40
27245
+ br $~lib/math/NativeMath.abs|inlined.43
27044
27246
  end
27045
27247
  local.set $ax
27046
27248
  local.get $ax
27047
- f64.const 8
27048
- f64.lt
27049
- if
27050
- local.get $ax
27249
+ global.get $src/special/_BESSEL_SERIES_MAX
27250
+ f64.le
27251
+ if (result f64)
27051
27252
  local.get $ax
27052
- f64.mul
27053
- local.set $y
27253
+ call $src/special/_besselJ1Series
27254
+ else
27255
+ f64.const 1
27054
27256
  local.get $ax
27055
- f64.const 72362614232
27056
- local.get $y
27057
- f64.const -7895059235
27058
- local.get $y
27059
- f64.const 242396853.1
27060
- local.get $y
27061
- f64.const -2972611.439
27062
- local.get $y
27063
- f64.const 15704.4826
27064
- local.get $y
27065
- f64.const -30.16036606
27066
- f64.mul
27067
- f64.add
27068
- f64.mul
27069
- f64.add
27070
- f64.mul
27071
- f64.add
27072
- f64.mul
27073
- f64.add
27074
- f64.mul
27075
- f64.add
27076
- f64.mul
27077
- local.set $ans1
27078
- f64.const 144725228442
27079
- local.get $y
27080
- f64.const 2300535178
27081
- local.get $y
27082
- f64.const 18583304.74
27083
- local.get $y
27084
- f64.const 99447.43394
27085
- local.get $y
27086
- f64.const 376.9991397
27087
- local.get $y
27088
- f64.add
27089
- f64.mul
27090
- f64.add
27091
- f64.mul
27092
- f64.add
27093
- f64.mul
27094
- f64.add
27095
- f64.mul
27096
- f64.add
27097
- local.set $ans2
27098
- local.get $sign
27099
- local.get $ans1
27100
- f64.mul
27101
- local.get $ans2
27102
- f64.div
27103
- return
27257
+ i32.const 0
27258
+ call $src/special/_besselHankel
27104
27259
  end
27105
- f64.const 8
27106
- local.get $ax
27107
- f64.div
27108
- local.set $z
27109
- local.get $z
27110
- local.get $z
27111
- f64.mul
27112
- local.set $y|8
27113
- local.get $ax
27114
- f64.const 2.356194491
27115
- f64.sub
27116
- local.set $xx
27117
- f64.const 1
27118
- local.get $y|8
27119
- f64.const 0.00183105
27120
- local.get $y|8
27121
- f64.const -0.00003516396496
27122
- local.get $y|8
27123
- f64.const 2.457520174e-06
27124
- local.get $y|8
27125
- f64.const 2.404127372e-07
27126
- f64.mul
27127
- f64.sub
27128
- f64.mul
27129
- f64.add
27130
- f64.mul
27131
- f64.add
27132
- f64.mul
27133
- f64.add
27134
- local.set $ans1|10
27135
- f64.const 0.04687499995
27136
- local.get $y|8
27137
- f64.const -0.0002002690873
27138
- local.get $y|8
27139
- f64.const 8.449199096e-06
27140
- local.get $y|8
27141
- f64.const -8.820898866e-07
27142
- local.get $y|8
27143
- f64.const 1.057874125e-07
27144
- f64.mul
27145
- f64.add
27146
- f64.mul
27147
- f64.add
27148
- f64.mul
27149
- f64.add
27150
- f64.mul
27151
- f64.add
27152
- local.set $ans2|11
27260
+ local.set $val
27153
27261
  local.get $sign
27154
- block $~lib/math/NativeMath.sqrt|inlined.10 (result f64)
27155
- f64.const 0.636619772
27156
- local.get $ax
27157
- f64.div
27158
- local.set $x|12
27159
- local.get $x|12
27160
- f64.sqrt
27161
- br $~lib/math/NativeMath.sqrt|inlined.10
27162
- end
27163
- f64.mul
27164
- local.get $xx
27165
- call $~lib/math/NativeMath.cos
27166
- local.get $ans1|10
27167
- f64.mul
27168
- local.get $z
27169
- local.get $xx
27170
- call $~lib/math/NativeMath.sin
27171
- f64.mul
27172
- local.get $ans2|11
27173
- f64.mul
27174
- f64.sub
27262
+ local.get $val
27175
27263
  f64.mul
27176
27264
  return
27177
27265
  )
@@ -27276,12 +27364,12 @@
27276
27364
  f64.mul
27277
27365
  return
27278
27366
  end
27279
- block $~lib/math/NativeMath.abs|inlined.41 (result f64)
27367
+ block $~lib/math/NativeMath.abs|inlined.46 (result f64)
27280
27368
  local.get $x
27281
27369
  local.set $x|4
27282
27370
  local.get $x|4
27283
27371
  f64.abs
27284
- br $~lib/math/NativeMath.abs|inlined.41
27372
+ br $~lib/math/NativeMath.abs|inlined.46
27285
27373
  end
27286
27374
  f64.const 1e-15
27287
27375
  f64.lt
@@ -27289,23 +27377,16 @@
27289
27377
  f64.const 0
27290
27378
  return
27291
27379
  end
27292
- local.get $ni
27293
- i32.const 20
27294
- i32.le_s
27295
- if (result i32)
27296
- i32.const 1
27297
- else
27298
- block $~lib/math/NativeMath.abs|inlined.42 (result f64)
27299
- local.get $x
27300
- local.set $x|5
27301
- local.get $x|5
27302
- f64.abs
27303
- br $~lib/math/NativeMath.abs|inlined.42
27304
- end
27305
- local.get $ni
27306
- f64.convert_i32_s
27307
- f64.gt
27380
+ block $~lib/math/NativeMath.abs|inlined.47 (result f64)
27381
+ local.get $x
27382
+ local.set $x|5
27383
+ local.get $x|5
27384
+ f64.abs
27385
+ br $~lib/math/NativeMath.abs|inlined.47
27308
27386
  end
27387
+ local.get $ni
27388
+ f64.convert_i32_s
27389
+ f64.gt
27309
27390
  if
27310
27391
  local.get $x
27311
27392
  call $src/special/_besselJ0
@@ -27347,7 +27428,7 @@
27347
27428
  f64.mul
27348
27429
  return
27349
27430
  end
27350
- block $~lib/math/NativeMath.sqrt|inlined.11 (result f64)
27431
+ block $~lib/math/NativeMath.sqrt|inlined.10 (result f64)
27351
27432
  f64.const 40
27352
27433
  local.get $ni
27353
27434
  f64.convert_i32_s
@@ -27355,7 +27436,7 @@
27355
27436
  local.set $x|10
27356
27437
  local.get $x|10
27357
27438
  f64.sqrt
27358
- br $~lib/math/NativeMath.sqrt|inlined.11
27439
+ br $~lib/math/NativeMath.sqrt|inlined.10
27359
27440
  end
27360
27441
  i32.trunc_sat_f64_s
27361
27442
  local.set $isqrt
@@ -27410,7 +27491,7 @@
27410
27491
  local.get $ni
27411
27492
  i32.eq
27412
27493
  if
27413
- local.get $jNext|14
27494
+ local.get $jCurr|15
27414
27495
  local.set $resultVal
27415
27496
  end
27416
27497
  local.get $k|18
@@ -27419,32 +27500,201 @@
27419
27500
  i32.const 0
27420
27501
  i32.eq
27421
27502
  if
27422
- local.get $sum
27423
- local.get $jCurr|15
27503
+ local.get $sum
27504
+ local.get $jCurr|15
27505
+ f64.add
27506
+ local.set $sum
27507
+ end
27508
+ local.get $k|18
27509
+ i32.const 1
27510
+ i32.sub
27511
+ local.set $k|18
27512
+ br $for-loop|1
27513
+ end
27514
+ end
27515
+ f64.const 2
27516
+ local.get $sum
27517
+ f64.mul
27518
+ local.get $jCurr|15
27519
+ f64.sub
27520
+ local.set $sum
27521
+ local.get $sign
27522
+ local.get $resultVal
27523
+ local.get $sum
27524
+ f64.div
27525
+ f64.mul
27526
+ return
27527
+ )
27528
+ (func $src/special/bessel_jn_f64 (param $n i32) (param $xs i32) (result i32)
27529
+ (local $out i32)
27530
+ (local $i i32)
27531
+ i32.const 0
27532
+ local.get $xs
27533
+ call $~lib/typedarray/Float64Array#get:length
27534
+ call $~lib/typedarray/Float64Array#constructor
27535
+ local.set $out
27536
+ i32.const 0
27537
+ local.set $i
27538
+ loop $for-loop|0
27539
+ local.get $i
27540
+ local.get $xs
27541
+ call $~lib/typedarray/Float64Array#get:length
27542
+ i32.lt_s
27543
+ if
27544
+ local.get $out
27545
+ local.get $i
27546
+ local.get $n
27547
+ local.get $xs
27548
+ local.get $i
27549
+ call $~lib/typedarray/Float64Array#__get
27550
+ call $src/special/_besselJn
27551
+ call $~lib/typedarray/Float64Array#__set
27552
+ local.get $i
27553
+ i32.const 1
27554
+ i32.add
27555
+ local.set $i
27556
+ br $for-loop|0
27557
+ end
27558
+ end
27559
+ local.get $out
27560
+ return
27561
+ )
27562
+ (func $src/special/_besselY0Series (param $x f64) (result f64)
27563
+ (local $z f64)
27564
+ (local $u f64)
27565
+ (local $h f64)
27566
+ (local $s f64)
27567
+ (local $sign f64)
27568
+ (local $k i32)
27569
+ (local $kf f64)
27570
+ (local $d f64)
27571
+ (local $x|9 f64)
27572
+ (local $x|10 f64)
27573
+ f64.const 0.25
27574
+ local.get $x
27575
+ f64.mul
27576
+ local.get $x
27577
+ f64.mul
27578
+ local.set $z
27579
+ f64.const 1
27580
+ local.set $u
27581
+ f64.const 0
27582
+ local.set $h
27583
+ f64.const 0
27584
+ local.set $s
27585
+ f64.const 1
27586
+ local.set $sign
27587
+ i32.const 1
27588
+ local.set $k
27589
+ block $for-break0
27590
+ loop $for-loop|0
27591
+ local.get $k
27592
+ i32.const 80
27593
+ i32.le_s
27594
+ if
27595
+ local.get $k
27596
+ f64.convert_i32_s
27597
+ local.set $kf
27598
+ local.get $u
27599
+ local.get $z
27600
+ local.get $kf
27601
+ local.get $kf
27602
+ f64.mul
27603
+ f64.div
27604
+ f64.mul
27605
+ local.set $u
27606
+ local.get $h
27607
+ f64.const 1
27608
+ local.get $kf
27609
+ f64.div
27424
27610
  f64.add
27425
- local.set $sum
27611
+ local.set $h
27612
+ local.get $sign
27613
+ local.get $h
27614
+ f64.mul
27615
+ local.get $u
27616
+ f64.mul
27617
+ local.set $d
27618
+ local.get $s
27619
+ local.get $d
27620
+ f64.add
27621
+ local.set $s
27622
+ local.get $sign
27623
+ f64.neg
27624
+ local.set $sign
27625
+ local.get $k
27626
+ i32.const 2
27627
+ i32.gt_s
27628
+ if (result i32)
27629
+ block $~lib/math/NativeMath.abs|inlined.48 (result f64)
27630
+ local.get $d
27631
+ local.set $x|9
27632
+ local.get $x|9
27633
+ f64.abs
27634
+ br $~lib/math/NativeMath.abs|inlined.48
27635
+ end
27636
+ block $~lib/math/NativeMath.abs|inlined.49 (result f64)
27637
+ local.get $s
27638
+ local.set $x|10
27639
+ local.get $x|10
27640
+ f64.abs
27641
+ br $~lib/math/NativeMath.abs|inlined.49
27642
+ end
27643
+ f64.const 1e-17
27644
+ f64.mul
27645
+ f64.le
27646
+ else
27647
+ i32.const 0
27648
+ end
27649
+ if
27650
+ br $for-break0
27651
+ end
27652
+ local.get $k
27653
+ i32.const 1
27654
+ i32.add
27655
+ local.set $k
27656
+ br $for-loop|0
27426
27657
  end
27427
- local.get $k|18
27428
- i32.const 1
27429
- i32.sub
27430
- local.set $k|18
27431
- br $for-loop|1
27432
27658
  end
27433
27659
  end
27434
- f64.const 2
27435
- local.get $sum
27660
+ global.get $src/special/_TWO_OVER_PI
27661
+ f64.const 0.5
27662
+ local.get $x
27436
27663
  f64.mul
27437
- local.get $jCurr|15
27438
- f64.sub
27439
- local.set $sum
27440
- local.get $sign
27441
- local.get $resultVal
27442
- local.get $sum
27443
- f64.div
27664
+ call $~lib/math/NativeMath.log
27665
+ global.get $src/special/_EULER_GAMMA
27666
+ f64.add
27667
+ local.get $x
27668
+ call $src/special/_besselJ0Series
27669
+ f64.mul
27670
+ local.get $s
27671
+ f64.add
27444
27672
  f64.mul
27445
27673
  return
27446
27674
  )
27447
- (func $src/special/bessel_jn_f64 (param $n i32) (param $xs i32) (result i32)
27675
+ (func $src/special/_besselY0 (param $x f64) (result f64)
27676
+ local.get $x
27677
+ f64.const 0
27678
+ f64.le
27679
+ if
27680
+ f64.const nan:0x8000000000000
27681
+ return
27682
+ end
27683
+ local.get $x
27684
+ global.get $src/special/_BESSEL_SERIES_MAX
27685
+ f64.le
27686
+ if (result f64)
27687
+ local.get $x
27688
+ call $src/special/_besselY0Series
27689
+ else
27690
+ f64.const 0
27691
+ local.get $x
27692
+ i32.const 1
27693
+ call $src/special/_besselHankel
27694
+ end
27695
+ return
27696
+ )
27697
+ (func $src/special/bessel_y0_f64 (param $xs i32) (result i32)
27448
27698
  (local $out i32)
27449
27699
  (local $i i32)
27450
27700
  i32.const 0
@@ -27462,11 +27712,10 @@
27462
27712
  if
27463
27713
  local.get $out
27464
27714
  local.get $i
27465
- local.get $n
27466
27715
  local.get $xs
27467
27716
  local.get $i
27468
27717
  call $~lib/typedarray/Float64Array#__get
27469
- call $src/special/_besselJn
27718
+ call $src/special/_besselY0
27470
27719
  call $~lib/typedarray/Float64Array#__set
27471
27720
  local.get $i
27472
27721
  i32.const 1
@@ -27478,200 +27727,139 @@
27478
27727
  local.get $out
27479
27728
  return
27480
27729
  )
27481
- (func $src/special/_besselY0 (param $x f64) (result f64)
27482
- (local $y f64)
27483
- (local $ans1 f64)
27484
- (local $ans2 f64)
27730
+ (func $src/special/_besselY1Series (param $x f64) (result f64)
27485
27731
  (local $z f64)
27486
- (local $y|5 f64)
27487
- (local $xx f64)
27488
- (local $ans1|7 f64)
27489
- (local $ans2|8 f64)
27732
+ (local $v f64)
27733
+ (local $hk f64)
27734
+ (local $hk1 f64)
27735
+ (local $s f64)
27736
+ (local $k i32)
27737
+ (local $kf f64)
27738
+ (local $d f64)
27490
27739
  (local $x|9 f64)
27740
+ (local $x|10 f64)
27741
+ f64.const -0.25
27491
27742
  local.get $x
27492
- f64.const 0
27493
- f64.le
27494
- if
27495
- f64.const nan:0x8000000000000
27496
- return
27497
- end
27498
- local.get $x
27499
- f64.const 8
27500
- f64.lt
27501
- if
27502
- local.get $x
27503
- local.get $x
27504
- f64.mul
27505
- local.set $y
27506
- f64.const -2957821389
27507
- local.get $y
27508
- f64.const 7062834065
27509
- local.get $y
27510
- f64.const -512359803.6
27511
- local.get $y
27512
- f64.const 10879881.29
27513
- local.get $y
27514
- f64.const -86327.92757
27515
- local.get $y
27516
- f64.const 228.4622733
27517
- f64.mul
27518
- f64.add
27519
- f64.mul
27520
- f64.add
27521
- f64.mul
27522
- f64.add
27523
- f64.mul
27524
- f64.add
27525
- f64.mul
27526
- f64.add
27527
- local.set $ans1
27528
- f64.const 40076544269
27529
- local.get $y
27530
- f64.const 745249964.8
27531
- local.get $y
27532
- f64.const 7189466.438
27533
- local.get $y
27534
- f64.const 47447.2647
27535
- local.get $y
27536
- f64.const 226.1030244
27537
- local.get $y
27538
- f64.add
27539
- f64.mul
27540
- f64.add
27541
- f64.mul
27542
- f64.add
27543
- f64.mul
27544
- f64.add
27545
- f64.mul
27546
- f64.add
27547
- local.set $ans2
27548
- local.get $ans1
27549
- local.get $ans2
27550
- f64.div
27551
- f64.const 0.636619772
27552
- local.get $x
27553
- call $src/special/_besselJ0
27554
- f64.mul
27555
- local.get $x
27556
- call $~lib/math/NativeMath.log
27557
- f64.mul
27558
- f64.add
27559
- return
27560
- end
27561
- f64.const 8
27743
+ f64.mul
27562
27744
  local.get $x
27563
- f64.div
27745
+ f64.mul
27564
27746
  local.set $z
27565
- local.get $z
27566
- local.get $z
27747
+ f64.const 0.5
27748
+ local.get $x
27749
+ f64.mul
27750
+ local.set $v
27751
+ f64.const 0
27752
+ local.set $hk
27753
+ f64.const 1
27754
+ local.set $hk1
27755
+ local.get $hk
27756
+ local.get $hk1
27757
+ f64.add
27758
+ local.get $v
27567
27759
  f64.mul
27568
- local.set $y|5
27760
+ local.set $s
27761
+ i32.const 1
27762
+ local.set $k
27763
+ block $for-break0
27764
+ loop $for-loop|0
27765
+ local.get $k
27766
+ i32.const 80
27767
+ i32.le_s
27768
+ if
27769
+ local.get $k
27770
+ f64.convert_i32_s
27771
+ local.set $kf
27772
+ local.get $v
27773
+ local.get $z
27774
+ local.get $kf
27775
+ local.get $kf
27776
+ f64.const 1
27777
+ f64.add
27778
+ f64.mul
27779
+ f64.div
27780
+ f64.mul
27781
+ local.set $v
27782
+ local.get $hk
27783
+ f64.const 1
27784
+ local.get $kf
27785
+ f64.div
27786
+ f64.add
27787
+ local.set $hk
27788
+ local.get $hk1
27789
+ f64.const 1
27790
+ local.get $kf
27791
+ f64.const 1
27792
+ f64.add
27793
+ f64.div
27794
+ f64.add
27795
+ local.set $hk1
27796
+ local.get $hk
27797
+ local.get $hk1
27798
+ f64.add
27799
+ local.get $v
27800
+ f64.mul
27801
+ local.set $d
27802
+ local.get $s
27803
+ local.get $d
27804
+ f64.add
27805
+ local.set $s
27806
+ local.get $k
27807
+ i32.const 2
27808
+ i32.gt_s
27809
+ if (result i32)
27810
+ block $~lib/math/NativeMath.abs|inlined.50 (result f64)
27811
+ local.get $d
27812
+ local.set $x|9
27813
+ local.get $x|9
27814
+ f64.abs
27815
+ br $~lib/math/NativeMath.abs|inlined.50
27816
+ end
27817
+ block $~lib/math/NativeMath.abs|inlined.51 (result f64)
27818
+ local.get $s
27819
+ local.set $x|10
27820
+ local.get $x|10
27821
+ f64.abs
27822
+ br $~lib/math/NativeMath.abs|inlined.51
27823
+ end
27824
+ f64.const 1e-17
27825
+ f64.mul
27826
+ f64.le
27827
+ else
27828
+ i32.const 0
27829
+ end
27830
+ if
27831
+ br $for-break0
27832
+ end
27833
+ local.get $k
27834
+ i32.const 1
27835
+ i32.add
27836
+ local.set $k
27837
+ br $for-loop|0
27838
+ end
27839
+ end
27840
+ end
27841
+ global.get $src/special/_TWO_OVER_PI
27842
+ f64.const 0.5
27569
27843
  local.get $x
27570
- f64.const 0.785398164
27571
- f64.sub
27572
- local.set $xx
27573
- f64.const 1
27574
- local.get $y|5
27575
- f64.const -0.001098628627
27576
- local.get $y|5
27577
- f64.const 0.00002734510407
27578
- local.get $y|5
27579
- f64.const -2.073370639e-06
27580
- local.get $y|5
27581
- f64.const 2.093887211e-07
27582
- f64.mul
27583
- f64.add
27584
- f64.mul
27585
- f64.add
27586
27844
  f64.mul
27845
+ call $~lib/math/NativeMath.log
27846
+ global.get $src/special/_EULER_GAMMA
27587
27847
  f64.add
27588
27848
  f64.mul
27589
- f64.add
27590
- local.set $ans1|7
27591
- f64.const -0.01562499995
27592
- local.get $y|5
27593
- f64.const 0.0001430488765
27594
- local.get $y|5
27595
- f64.const -6.911147651e-06
27596
- local.get $y|5
27597
- f64.const 7.621095161e-07
27598
- local.get $y|5
27599
- f64.const 9.34935152e-08
27849
+ local.get $x
27850
+ call $src/special/_besselJ1Series
27600
27851
  f64.mul
27852
+ global.get $src/special/_TWO_OVER_PI
27853
+ local.get $x
27854
+ f64.div
27601
27855
  f64.sub
27856
+ global.get $src/special/_ONE_OVER_PI
27857
+ local.get $s
27602
27858
  f64.mul
27603
- f64.add
27604
- f64.mul
27605
- f64.add
27606
- f64.mul
27607
- f64.add
27608
- local.set $ans2|8
27609
- block $~lib/math/NativeMath.sqrt|inlined.12 (result f64)
27610
- f64.const 0.636619772
27611
- local.get $x
27612
- f64.div
27613
- local.set $x|9
27614
- local.get $x|9
27615
- f64.sqrt
27616
- br $~lib/math/NativeMath.sqrt|inlined.12
27617
- end
27618
- local.get $xx
27619
- call $~lib/math/NativeMath.sin
27620
- local.get $ans1|7
27621
- f64.mul
27622
- local.get $z
27623
- local.get $xx
27624
- call $~lib/math/NativeMath.cos
27625
- f64.mul
27626
- local.get $ans2|8
27627
- f64.mul
27628
- f64.add
27629
- f64.mul
27630
- return
27631
- )
27632
- (func $src/special/bessel_y0_f64 (param $xs i32) (result i32)
27633
- (local $out i32)
27634
- (local $i i32)
27635
- i32.const 0
27636
- local.get $xs
27637
- call $~lib/typedarray/Float64Array#get:length
27638
- call $~lib/typedarray/Float64Array#constructor
27639
- local.set $out
27640
- i32.const 0
27641
- local.set $i
27642
- loop $for-loop|0
27643
- local.get $i
27644
- local.get $xs
27645
- call $~lib/typedarray/Float64Array#get:length
27646
- i32.lt_s
27647
- if
27648
- local.get $out
27649
- local.get $i
27650
- local.get $xs
27651
- local.get $i
27652
- call $~lib/typedarray/Float64Array#__get
27653
- call $src/special/_besselY0
27654
- call $~lib/typedarray/Float64Array#__set
27655
- local.get $i
27656
- i32.const 1
27657
- i32.add
27658
- local.set $i
27659
- br $for-loop|0
27660
- end
27661
- end
27662
- local.get $out
27859
+ f64.sub
27663
27860
  return
27664
27861
  )
27665
27862
  (func $src/special/_besselY1 (param $x f64) (result f64)
27666
- (local $y f64)
27667
- (local $ans1 f64)
27668
- (local $ans2 f64)
27669
- (local $z f64)
27670
- (local $y|5 f64)
27671
- (local $xx f64)
27672
- (local $ans1|7 f64)
27673
- (local $ans2|8 f64)
27674
- (local $x|9 f64)
27675
27863
  local.get $x
27676
27864
  f64.const 0
27677
27865
  f64.le
@@ -27680,147 +27868,17 @@
27680
27868
  return
27681
27869
  end
27682
27870
  local.get $x
27683
- f64.const 8
27684
- f64.lt
27685
- if
27686
- local.get $x
27687
- local.get $x
27688
- f64.mul
27689
- local.set $y
27690
- local.get $x
27691
- f64.const -4900604943e3
27692
- local.get $y
27693
- f64.const 127527439e4
27694
- local.get $y
27695
- f64.const -51534381390
27696
- local.get $y
27697
- f64.const 734926455.1
27698
- local.get $y
27699
- f64.const -4237922.726
27700
- local.get $y
27701
- f64.const 8511.937935
27702
- f64.mul
27703
- f64.add
27704
- f64.mul
27705
- f64.add
27706
- f64.mul
27707
- f64.add
27708
- f64.mul
27709
- f64.add
27710
- f64.mul
27711
- f64.add
27712
- f64.mul
27713
- local.set $ans1
27714
- f64.const 2490985738e4
27715
- local.get $y
27716
- f64.const 424441966400
27717
- local.get $y
27718
- f64.const 3733650367
27719
- local.get $y
27720
- f64.const 22459040.02
27721
- local.get $y
27722
- f64.const 102042.605
27723
- local.get $y
27724
- f64.const 354.9632885
27725
- local.get $y
27726
- f64.add
27727
- f64.mul
27728
- f64.add
27729
- f64.mul
27730
- f64.add
27731
- f64.mul
27732
- f64.add
27733
- f64.mul
27734
- f64.add
27735
- f64.mul
27736
- f64.add
27737
- local.set $ans2
27738
- local.get $ans1
27739
- local.get $ans2
27740
- f64.div
27741
- f64.const 0.636619772
27742
- local.get $x
27743
- call $src/special/_besselJ1
27871
+ global.get $src/special/_BESSEL_SERIES_MAX
27872
+ f64.le
27873
+ if (result f64)
27744
27874
  local.get $x
27745
- call $~lib/math/NativeMath.log
27746
- f64.mul
27875
+ call $src/special/_besselY1Series
27876
+ else
27747
27877
  f64.const 1
27748
27878
  local.get $x
27749
- f64.div
27750
- f64.sub
27751
- f64.mul
27752
- f64.add
27753
- return
27754
- end
27755
- f64.const 8
27756
- local.get $x
27757
- f64.div
27758
- local.set $z
27759
- local.get $z
27760
- local.get $z
27761
- f64.mul
27762
- local.set $y|5
27763
- local.get $x
27764
- f64.const 2.356194491
27765
- f64.sub
27766
- local.set $xx
27767
- f64.const 1
27768
- local.get $y|5
27769
- f64.const 0.00183105
27770
- local.get $y|5
27771
- f64.const -0.00003516396496
27772
- local.get $y|5
27773
- f64.const 2.457520174e-06
27774
- local.get $y|5
27775
- f64.const 2.404127372e-07
27776
- f64.mul
27777
- f64.sub
27778
- f64.mul
27779
- f64.add
27780
- f64.mul
27781
- f64.add
27782
- f64.mul
27783
- f64.add
27784
- local.set $ans1|7
27785
- f64.const 0.04687499995
27786
- local.get $y|5
27787
- f64.const -0.0002002690873
27788
- local.get $y|5
27789
- f64.const 8.449199096e-06
27790
- local.get $y|5
27791
- f64.const -8.820898866e-07
27792
- local.get $y|5
27793
- f64.const 1.057874125e-07
27794
- f64.mul
27795
- f64.add
27796
- f64.mul
27797
- f64.add
27798
- f64.mul
27799
- f64.add
27800
- f64.mul
27801
- f64.add
27802
- local.set $ans2|8
27803
- block $~lib/math/NativeMath.sqrt|inlined.13 (result f64)
27804
- f64.const 0.636619772
27805
- local.get $x
27806
- f64.div
27807
- local.set $x|9
27808
- local.get $x|9
27809
- f64.sqrt
27810
- br $~lib/math/NativeMath.sqrt|inlined.13
27879
+ i32.const 1
27880
+ call $src/special/_besselHankel
27811
27881
  end
27812
- local.get $xx
27813
- call $~lib/math/NativeMath.sin
27814
- local.get $ans1|7
27815
- f64.mul
27816
- local.get $z
27817
- local.get $xx
27818
- call $~lib/math/NativeMath.cos
27819
- f64.mul
27820
- local.get $ans2|8
27821
- f64.mul
27822
- f64.add
27823
- f64.mul
27824
27882
  return
27825
27883
  )
27826
27884
  (func $src/special/bessel_y1_f64 (param $xs i32) (result i32)
@@ -27993,240 +28051,363 @@
27993
28051
  local.get $out
27994
28052
  return
27995
28053
  )
27996
- (func $src/special/_airyAiAsymptoteLargePos (param $x f64) (result f64)
27997
- (local $xp f64)
27998
- (local $x|2 f64)
27999
- (local $x32 f64)
28000
- (local $zeta f64)
28001
- (local $p f64)
28002
- (local $zk f64)
28003
- (local $x|7 f64)
28004
- local.get $x
28005
- f64.const 0.25
28006
- call $~lib/math/NativeMath.pow
28007
- local.set $xp
28008
- local.get $x
28009
- block $~lib/math/NativeMath.sqrt|inlined.14 (result f64)
28010
- local.get $x
28011
- local.set $x|2
28012
- local.get $x|2
28013
- f64.sqrt
28014
- br $~lib/math/NativeMath.sqrt|inlined.14
28015
- end
28054
+ (func $src/special/_airyU (param $uPrev f64) (param $k i32) (result f64)
28055
+ (local $kf f64)
28056
+ local.get $k
28057
+ f64.convert_i32_s
28058
+ local.set $kf
28059
+ local.get $uPrev
28060
+ f64.const 6
28061
+ local.get $kf
28016
28062
  f64.mul
28017
- local.set $x32
28018
- f64.const 2
28019
- f64.const 3
28020
- f64.div
28021
- local.get $x32
28063
+ f64.const 5
28064
+ f64.sub
28022
28065
  f64.mul
28023
- local.set $zeta
28024
- global.get $src/special/AIRY_C0
28025
- local.set $p
28026
- local.get $zeta
28027
- local.set $zk
28028
- local.get $p
28029
- global.get $src/special/AIRY_C1
28030
- local.get $zk
28031
- f64.div
28066
+ f64.const 6
28067
+ local.get $kf
28068
+ f64.mul
28069
+ f64.const 3
28032
28070
  f64.sub
28033
- local.set $p
28034
- local.get $zk
28035
- local.get $zeta
28036
28071
  f64.mul
28037
- local.set $zk
28038
- local.get $p
28039
- global.get $src/special/AIRY_C2
28040
- local.get $zk
28041
- f64.div
28042
- f64.add
28043
- local.set $p
28044
- local.get $zk
28045
- local.get $zeta
28072
+ f64.const 6
28073
+ local.get $kf
28046
28074
  f64.mul
28047
- local.set $zk
28048
- local.get $p
28049
- global.get $src/special/AIRY_C3
28050
- local.get $zk
28051
- f64.div
28075
+ f64.const 1
28052
28076
  f64.sub
28053
- local.set $p
28054
- local.get $zk
28055
- local.get $zeta
28056
28077
  f64.mul
28057
- local.set $zk
28058
- local.get $p
28059
- global.get $src/special/AIRY_C4
28060
- local.get $zk
28061
- f64.div
28062
- f64.add
28063
- local.set $p
28064
- local.get $zk
28065
- local.get $zeta
28078
+ f64.const 2
28079
+ local.get $kf
28066
28080
  f64.mul
28067
- local.set $zk
28068
- local.get $p
28069
- global.get $src/special/AIRY_C5
28070
- local.get $zk
28071
- f64.div
28081
+ f64.const 1
28072
28082
  f64.sub
28073
- local.set $p
28074
- local.get $zk
28075
- local.get $zeta
28083
+ f64.const 216
28076
28084
  f64.mul
28077
- local.set $zk
28078
- local.get $p
28079
- global.get $src/special/AIRY_C6
28080
- local.get $zk
28085
+ local.get $kf
28086
+ f64.mul
28087
+ f64.div
28088
+ return
28089
+ )
28090
+ (func $src/special/_airyAsymptotePos (param $x f64) (param $isAi i32) (result f64)
28091
+ (local $xp f64)
28092
+ (local $x|3 f64)
28093
+ (local $zeta f64)
28094
+ (local $u f64)
28095
+ (local $zk f64)
28096
+ (local $sum f64)
28097
+ (local $prevMag f64)
28098
+ (local $k i32)
28099
+ (local $t f64)
28100
+ (local $x|11 f64)
28101
+ (local $mag f64)
28102
+ (local $x|13 f64)
28103
+ (local $sp f64)
28104
+ local.get $x
28105
+ f64.const 0.25
28106
+ call $~lib/math/NativeMath.pow
28107
+ local.set $xp
28108
+ f64.const 2
28109
+ f64.const 3
28081
28110
  f64.div
28082
- f64.add
28083
- local.set $p
28084
- local.get $zeta
28085
- f64.neg
28086
- call $~lib/math/NativeMath.exp
28087
- local.get $p
28111
+ local.get $x
28088
28112
  f64.mul
28089
- f64.const 2
28090
- block $~lib/math/NativeMath.sqrt|inlined.15 (result f64)
28091
- global.get $~lib/math/NativeMath.PI
28092
- local.set $x|7
28093
- local.get $x|7
28113
+ block $~lib/math/NativeMath.sqrt|inlined.11 (result f64)
28114
+ local.get $x
28115
+ local.set $x|3
28116
+ local.get $x|3
28094
28117
  f64.sqrt
28095
- br $~lib/math/NativeMath.sqrt|inlined.15
28118
+ br $~lib/math/NativeMath.sqrt|inlined.11
28096
28119
  end
28097
28120
  f64.mul
28098
- local.get $xp
28099
- f64.mul
28100
- f64.div
28121
+ local.set $zeta
28122
+ f64.const 1
28123
+ local.set $u
28124
+ f64.const 1
28125
+ local.set $zk
28126
+ f64.const 1
28127
+ local.set $sum
28128
+ f64.const inf
28129
+ local.set $prevMag
28130
+ i32.const 1
28131
+ local.set $k
28132
+ block $for-break0
28133
+ loop $for-loop|0
28134
+ local.get $k
28135
+ i32.const 40
28136
+ i32.le_s
28137
+ if
28138
+ local.get $u
28139
+ local.get $k
28140
+ call $src/special/_airyU
28141
+ local.set $u
28142
+ local.get $zk
28143
+ local.get $zeta
28144
+ f64.mul
28145
+ local.set $zk
28146
+ local.get $u
28147
+ local.get $zk
28148
+ f64.div
28149
+ local.set $t
28150
+ block $~lib/math/NativeMath.abs|inlined.52 (result f64)
28151
+ local.get $t
28152
+ local.set $x|11
28153
+ local.get $x|11
28154
+ f64.abs
28155
+ br $~lib/math/NativeMath.abs|inlined.52
28156
+ end
28157
+ local.set $mag
28158
+ local.get $mag
28159
+ local.get $prevMag
28160
+ f64.gt
28161
+ if
28162
+ br $for-break0
28163
+ end
28164
+ local.get $mag
28165
+ local.set $prevMag
28166
+ local.get $sum
28167
+ local.get $isAi
28168
+ if (result i32)
28169
+ local.get $k
28170
+ i32.const 1
28171
+ i32.and
28172
+ i32.const 1
28173
+ i32.eq
28174
+ else
28175
+ i32.const 0
28176
+ end
28177
+ if (result f64)
28178
+ local.get $t
28179
+ f64.neg
28180
+ else
28181
+ local.get $t
28182
+ end
28183
+ f64.add
28184
+ local.set $sum
28185
+ local.get $k
28186
+ i32.const 1
28187
+ i32.add
28188
+ local.set $k
28189
+ br $for-loop|0
28190
+ end
28191
+ end
28192
+ end
28193
+ block $~lib/math/NativeMath.sqrt|inlined.12 (result f64)
28194
+ global.get $~lib/math/NativeMath.PI
28195
+ local.set $x|13
28196
+ local.get $x|13
28197
+ f64.sqrt
28198
+ br $~lib/math/NativeMath.sqrt|inlined.12
28199
+ end
28200
+ local.set $sp
28201
+ local.get $isAi
28202
+ if (result f64)
28203
+ local.get $zeta
28204
+ f64.neg
28205
+ call $~lib/math/NativeMath.exp
28206
+ local.get $sum
28207
+ f64.mul
28208
+ f64.const 2
28209
+ local.get $sp
28210
+ f64.mul
28211
+ local.get $xp
28212
+ f64.mul
28213
+ f64.div
28214
+ else
28215
+ local.get $zeta
28216
+ call $~lib/math/NativeMath.exp
28217
+ local.get $sum
28218
+ f64.mul
28219
+ local.get $sp
28220
+ local.get $xp
28221
+ f64.mul
28222
+ f64.div
28223
+ end
28101
28224
  return
28102
28225
  )
28103
- (func $src/special/_airyAiAsymptoteLargeNeg (param $x f64) (result f64)
28104
- (local $x|1 f64)
28226
+ (func $src/special/_airyAsymptoteNeg (param $x f64) (param $isAi i32) (result f64)
28227
+ (local $x|2 f64)
28105
28228
  (local $ax f64)
28106
28229
  (local $axp f64)
28107
- (local $x|4 f64)
28108
- (local $ax32 f64)
28230
+ (local $x|5 f64)
28109
28231
  (local $zeta f64)
28110
- (local $theta f64)
28111
- (local $p f64)
28112
- (local $q f64)
28232
+ (local $u f64)
28113
28233
  (local $zk f64)
28114
- (local $x|11 f64)
28115
- block $~lib/math/NativeMath.abs|inlined.43 (result f64)
28234
+ (local $P f64)
28235
+ (local $Q f64)
28236
+ (local $prevMag f64)
28237
+ (local $k i32)
28238
+ (local $t f64)
28239
+ (local $x|14 f64)
28240
+ (local $mag f64)
28241
+ (local $m4 i32)
28242
+ (local $s f64)
28243
+ (local $theta f64)
28244
+ (local $x|19 f64)
28245
+ (local $sp f64)
28246
+ block $~lib/math/NativeMath.abs|inlined.53 (result f64)
28116
28247
  local.get $x
28117
- local.set $x|1
28118
- local.get $x|1
28248
+ local.set $x|2
28249
+ local.get $x|2
28119
28250
  f64.abs
28120
- br $~lib/math/NativeMath.abs|inlined.43
28251
+ br $~lib/math/NativeMath.abs|inlined.53
28121
28252
  end
28122
28253
  local.set $ax
28123
28254
  local.get $ax
28124
28255
  f64.const 0.25
28125
28256
  call $~lib/math/NativeMath.pow
28126
28257
  local.set $axp
28258
+ f64.const 2
28259
+ f64.const 3
28260
+ f64.div
28127
28261
  local.get $ax
28128
- block $~lib/math/NativeMath.sqrt|inlined.16 (result f64)
28262
+ f64.mul
28263
+ block $~lib/math/NativeMath.sqrt|inlined.13 (result f64)
28129
28264
  local.get $ax
28130
- local.set $x|4
28131
- local.get $x|4
28265
+ local.set $x|5
28266
+ local.get $x|5
28132
28267
  f64.sqrt
28133
- br $~lib/math/NativeMath.sqrt|inlined.16
28268
+ br $~lib/math/NativeMath.sqrt|inlined.13
28134
28269
  end
28135
28270
  f64.mul
28136
- local.set $ax32
28137
- f64.const 2
28138
- f64.const 3
28139
- f64.div
28140
- local.get $ax32
28141
- f64.mul
28142
28271
  local.set $zeta
28143
- local.get $zeta
28144
- global.get $~lib/math/NativeMath.PI
28145
- f64.const 4
28146
- f64.div
28147
- f64.sub
28148
- local.set $theta
28149
- global.get $src/special/AIRY_C0
28150
- local.set $p
28151
- f64.const 0
28152
- local.set $q
28153
- local.get $zeta
28154
- local.set $zk
28155
- local.get $q
28156
- global.get $src/special/AIRY_C1
28157
- local.get $zk
28158
- f64.div
28159
- f64.sub
28160
- local.set $q
28161
- local.get $zk
28162
- local.get $zeta
28163
- f64.mul
28164
- local.set $zk
28165
- local.get $p
28166
- global.get $src/special/AIRY_C2
28167
- local.get $zk
28168
- f64.div
28169
- f64.add
28170
- local.set $p
28171
- local.get $zk
28172
- local.get $zeta
28173
- f64.mul
28174
- local.set $zk
28175
- local.get $q
28176
- global.get $src/special/AIRY_C3
28177
- local.get $zk
28178
- f64.div
28179
- f64.sub
28180
- local.set $q
28181
- local.get $zk
28182
- local.get $zeta
28183
- f64.mul
28184
- local.set $zk
28185
- local.get $p
28186
- global.get $src/special/AIRY_C4
28187
- local.get $zk
28188
- f64.div
28189
- f64.add
28190
- local.set $p
28191
- local.get $zk
28192
- local.get $zeta
28193
- f64.mul
28272
+ f64.const 1
28273
+ local.set $u
28274
+ f64.const 1
28194
28275
  local.set $zk
28195
- local.get $q
28196
- global.get $src/special/AIRY_C5
28197
- local.get $zk
28198
- f64.div
28199
- f64.sub
28200
- local.set $q
28201
- local.get $zk
28276
+ f64.const 1
28277
+ local.set $P
28278
+ f64.const 0
28279
+ local.set $Q
28280
+ f64.const inf
28281
+ local.set $prevMag
28282
+ i32.const 1
28283
+ local.set $k
28284
+ block $for-break0
28285
+ loop $for-loop|0
28286
+ local.get $k
28287
+ i32.const 40
28288
+ i32.le_s
28289
+ if
28290
+ local.get $u
28291
+ local.get $k
28292
+ call $src/special/_airyU
28293
+ local.set $u
28294
+ local.get $zk
28295
+ local.get $zeta
28296
+ f64.mul
28297
+ local.set $zk
28298
+ local.get $u
28299
+ local.get $zk
28300
+ f64.div
28301
+ local.set $t
28302
+ block $~lib/math/NativeMath.abs|inlined.54 (result f64)
28303
+ local.get $t
28304
+ local.set $x|14
28305
+ local.get $x|14
28306
+ f64.abs
28307
+ br $~lib/math/NativeMath.abs|inlined.54
28308
+ end
28309
+ local.set $mag
28310
+ local.get $mag
28311
+ local.get $prevMag
28312
+ f64.gt
28313
+ if
28314
+ br $for-break0
28315
+ end
28316
+ local.get $mag
28317
+ local.set $prevMag
28318
+ local.get $k
28319
+ i32.const 3
28320
+ i32.and
28321
+ local.set $m4
28322
+ local.get $m4
28323
+ i32.const 1
28324
+ i32.eq
28325
+ if (result i32)
28326
+ i32.const 1
28327
+ else
28328
+ local.get $m4
28329
+ i32.const 0
28330
+ i32.eq
28331
+ end
28332
+ if (result f64)
28333
+ f64.const 1
28334
+ else
28335
+ f64.const -1
28336
+ end
28337
+ local.set $s
28338
+ local.get $k
28339
+ i32.const 1
28340
+ i32.and
28341
+ i32.const 1
28342
+ i32.eq
28343
+ if
28344
+ local.get $Q
28345
+ local.get $s
28346
+ local.get $t
28347
+ f64.mul
28348
+ f64.add
28349
+ local.set $Q
28350
+ else
28351
+ local.get $P
28352
+ local.get $s
28353
+ local.get $t
28354
+ f64.mul
28355
+ f64.add
28356
+ local.set $P
28357
+ end
28358
+ local.get $k
28359
+ i32.const 1
28360
+ i32.add
28361
+ local.set $k
28362
+ br $for-loop|0
28363
+ end
28364
+ end
28365
+ end
28202
28366
  local.get $zeta
28203
- f64.mul
28204
- local.set $zk
28205
- local.get $p
28206
- global.get $src/special/AIRY_C6
28207
- local.get $zk
28208
- f64.div
28209
- f64.add
28210
- local.set $p
28211
- local.get $theta
28212
- call $~lib/math/NativeMath.sin
28213
- local.get $p
28214
- f64.mul
28215
- local.get $theta
28216
- call $~lib/math/NativeMath.cos
28217
- local.get $q
28218
- f64.mul
28219
- f64.add
28220
- block $~lib/math/NativeMath.sqrt|inlined.17 (result f64)
28367
+ global.get $~lib/math/NativeMath.PI
28368
+ f64.const 4
28369
+ f64.div
28370
+ f64.sub
28371
+ local.set $theta
28372
+ block $~lib/math/NativeMath.sqrt|inlined.14 (result f64)
28221
28373
  global.get $~lib/math/NativeMath.PI
28222
- local.set $x|11
28223
- local.get $x|11
28374
+ local.set $x|19
28375
+ local.get $x|19
28224
28376
  f64.sqrt
28225
- br $~lib/math/NativeMath.sqrt|inlined.17
28377
+ br $~lib/math/NativeMath.sqrt|inlined.14
28378
+ end
28379
+ local.set $sp
28380
+ local.get $isAi
28381
+ if (result f64)
28382
+ local.get $theta
28383
+ call $~lib/math/NativeMath.cos
28384
+ local.get $P
28385
+ f64.mul
28386
+ local.get $theta
28387
+ call $~lib/math/NativeMath.sin
28388
+ local.get $Q
28389
+ f64.mul
28390
+ f64.add
28391
+ local.get $sp
28392
+ local.get $axp
28393
+ f64.mul
28394
+ f64.div
28395
+ else
28396
+ local.get $theta
28397
+ call $~lib/math/NativeMath.sin
28398
+ f64.neg
28399
+ local.get $P
28400
+ f64.mul
28401
+ local.get $theta
28402
+ call $~lib/math/NativeMath.cos
28403
+ local.get $Q
28404
+ f64.mul
28405
+ f64.add
28406
+ local.get $sp
28407
+ local.get $axp
28408
+ f64.mul
28409
+ f64.div
28226
28410
  end
28227
- local.get $axp
28228
- f64.mul
28229
- f64.div
28230
28411
  return
28231
28412
  )
28232
28413
  (func $src/special/_airyAiSeries (param $x f64) (result f64)
@@ -28360,37 +28541,37 @@
28360
28541
  local.get $dg
28361
28542
  f64.add
28362
28543
  local.set $g
28363
- block $~lib/math/NativeMath.abs|inlined.44 (result f64)
28544
+ block $~lib/math/NativeMath.abs|inlined.55 (result f64)
28364
28545
  local.get $df
28365
28546
  local.set $x|14
28366
28547
  local.get $x|14
28367
28548
  f64.abs
28368
- br $~lib/math/NativeMath.abs|inlined.44
28549
+ br $~lib/math/NativeMath.abs|inlined.55
28369
28550
  end
28370
- block $~lib/math/NativeMath.abs|inlined.45 (result f64)
28551
+ block $~lib/math/NativeMath.abs|inlined.56 (result f64)
28371
28552
  local.get $f
28372
28553
  local.set $x|15
28373
28554
  local.get $x|15
28374
28555
  f64.abs
28375
- br $~lib/math/NativeMath.abs|inlined.45
28556
+ br $~lib/math/NativeMath.abs|inlined.56
28376
28557
  end
28377
28558
  f64.const 1e-16
28378
28559
  f64.mul
28379
28560
  f64.lt
28380
28561
  if (result i32)
28381
- block $~lib/math/NativeMath.abs|inlined.46 (result f64)
28562
+ block $~lib/math/NativeMath.abs|inlined.57 (result f64)
28382
28563
  local.get $dg
28383
28564
  local.set $x|16
28384
28565
  local.get $x|16
28385
28566
  f64.abs
28386
- br $~lib/math/NativeMath.abs|inlined.46
28567
+ br $~lib/math/NativeMath.abs|inlined.57
28387
28568
  end
28388
- block $~lib/math/NativeMath.abs|inlined.47 (result f64)
28569
+ block $~lib/math/NativeMath.abs|inlined.58 (result f64)
28389
28570
  local.get $g
28390
28571
  local.set $x|17
28391
28572
  local.get $x|17
28392
28573
  f64.abs
28393
- br $~lib/math/NativeMath.abs|inlined.47
28574
+ br $~lib/math/NativeMath.abs|inlined.58
28394
28575
  end
28395
28576
  f64.const 1e-16
28396
28577
  f64.mul
@@ -28424,7 +28605,8 @@
28424
28605
  f64.gt
28425
28606
  if
28426
28607
  local.get $x
28427
- call $src/special/_airyAiAsymptoteLargePos
28608
+ i32.const 1
28609
+ call $src/special/_airyAsymptotePos
28428
28610
  return
28429
28611
  end
28430
28612
  local.get $x
@@ -28433,7 +28615,8 @@
28433
28615
  f64.lt
28434
28616
  if
28435
28617
  local.get $x
28436
- call $src/special/_airyAiAsymptoteLargeNeg
28618
+ i32.const 1
28619
+ call $src/special/_airyAsymptoteNeg
28437
28620
  return
28438
28621
  end
28439
28622
  local.get $x
@@ -28473,239 +28656,6 @@
28473
28656
  local.get $out
28474
28657
  return
28475
28658
  )
28476
- (func $src/special/_airyBiAsymptoteLargePos (param $x f64) (result f64)
28477
- (local $xp f64)
28478
- (local $x|2 f64)
28479
- (local $x32 f64)
28480
- (local $zeta f64)
28481
- (local $p f64)
28482
- (local $zk f64)
28483
- (local $x|7 f64)
28484
- local.get $x
28485
- f64.const 0.25
28486
- call $~lib/math/NativeMath.pow
28487
- local.set $xp
28488
- local.get $x
28489
- block $~lib/math/NativeMath.sqrt|inlined.18 (result f64)
28490
- local.get $x
28491
- local.set $x|2
28492
- local.get $x|2
28493
- f64.sqrt
28494
- br $~lib/math/NativeMath.sqrt|inlined.18
28495
- end
28496
- f64.mul
28497
- local.set $x32
28498
- f64.const 2
28499
- f64.const 3
28500
- f64.div
28501
- local.get $x32
28502
- f64.mul
28503
- local.set $zeta
28504
- global.get $src/special/AIRY_C0
28505
- local.set $p
28506
- local.get $zeta
28507
- local.set $zk
28508
- local.get $p
28509
- global.get $src/special/AIRY_C1
28510
- local.get $zk
28511
- f64.div
28512
- f64.add
28513
- local.set $p
28514
- local.get $zk
28515
- local.get $zeta
28516
- f64.mul
28517
- local.set $zk
28518
- local.get $p
28519
- global.get $src/special/AIRY_C2
28520
- local.get $zk
28521
- f64.div
28522
- f64.add
28523
- local.set $p
28524
- local.get $zk
28525
- local.get $zeta
28526
- f64.mul
28527
- local.set $zk
28528
- local.get $p
28529
- global.get $src/special/AIRY_C3
28530
- local.get $zk
28531
- f64.div
28532
- f64.add
28533
- local.set $p
28534
- local.get $zk
28535
- local.get $zeta
28536
- f64.mul
28537
- local.set $zk
28538
- local.get $p
28539
- global.get $src/special/AIRY_C4
28540
- local.get $zk
28541
- f64.div
28542
- f64.add
28543
- local.set $p
28544
- local.get $zk
28545
- local.get $zeta
28546
- f64.mul
28547
- local.set $zk
28548
- local.get $p
28549
- global.get $src/special/AIRY_C5
28550
- local.get $zk
28551
- f64.div
28552
- f64.add
28553
- local.set $p
28554
- local.get $zk
28555
- local.get $zeta
28556
- f64.mul
28557
- local.set $zk
28558
- local.get $p
28559
- global.get $src/special/AIRY_C6
28560
- local.get $zk
28561
- f64.div
28562
- f64.add
28563
- local.set $p
28564
- local.get $zeta
28565
- call $~lib/math/NativeMath.exp
28566
- local.get $p
28567
- f64.mul
28568
- block $~lib/math/NativeMath.sqrt|inlined.19 (result f64)
28569
- global.get $~lib/math/NativeMath.PI
28570
- local.set $x|7
28571
- local.get $x|7
28572
- f64.sqrt
28573
- br $~lib/math/NativeMath.sqrt|inlined.19
28574
- end
28575
- local.get $xp
28576
- f64.mul
28577
- f64.div
28578
- return
28579
- )
28580
- (func $src/special/_airyBiAsymptoteLargeNeg (param $x f64) (result f64)
28581
- (local $x|1 f64)
28582
- (local $ax f64)
28583
- (local $axp f64)
28584
- (local $x|4 f64)
28585
- (local $ax32 f64)
28586
- (local $zeta f64)
28587
- (local $theta f64)
28588
- (local $p f64)
28589
- (local $q f64)
28590
- (local $zk f64)
28591
- (local $x|11 f64)
28592
- block $~lib/math/NativeMath.abs|inlined.48 (result f64)
28593
- local.get $x
28594
- local.set $x|1
28595
- local.get $x|1
28596
- f64.abs
28597
- br $~lib/math/NativeMath.abs|inlined.48
28598
- end
28599
- local.set $ax
28600
- local.get $ax
28601
- f64.const 0.25
28602
- call $~lib/math/NativeMath.pow
28603
- local.set $axp
28604
- local.get $ax
28605
- block $~lib/math/NativeMath.sqrt|inlined.20 (result f64)
28606
- local.get $ax
28607
- local.set $x|4
28608
- local.get $x|4
28609
- f64.sqrt
28610
- br $~lib/math/NativeMath.sqrt|inlined.20
28611
- end
28612
- f64.mul
28613
- local.set $ax32
28614
- f64.const 2
28615
- f64.const 3
28616
- f64.div
28617
- local.get $ax32
28618
- f64.mul
28619
- local.set $zeta
28620
- local.get $zeta
28621
- global.get $~lib/math/NativeMath.PI
28622
- f64.const 4
28623
- f64.div
28624
- f64.add
28625
- local.set $theta
28626
- global.get $src/special/AIRY_C0
28627
- local.set $p
28628
- f64.const 0
28629
- local.set $q
28630
- local.get $zeta
28631
- local.set $zk
28632
- local.get $q
28633
- global.get $src/special/AIRY_C1
28634
- local.get $zk
28635
- f64.div
28636
- f64.sub
28637
- local.set $q
28638
- local.get $zk
28639
- local.get $zeta
28640
- f64.mul
28641
- local.set $zk
28642
- local.get $p
28643
- global.get $src/special/AIRY_C2
28644
- local.get $zk
28645
- f64.div
28646
- f64.add
28647
- local.set $p
28648
- local.get $zk
28649
- local.get $zeta
28650
- f64.mul
28651
- local.set $zk
28652
- local.get $q
28653
- global.get $src/special/AIRY_C3
28654
- local.get $zk
28655
- f64.div
28656
- f64.sub
28657
- local.set $q
28658
- local.get $zk
28659
- local.get $zeta
28660
- f64.mul
28661
- local.set $zk
28662
- local.get $p
28663
- global.get $src/special/AIRY_C4
28664
- local.get $zk
28665
- f64.div
28666
- f64.add
28667
- local.set $p
28668
- local.get $zk
28669
- local.get $zeta
28670
- f64.mul
28671
- local.set $zk
28672
- local.get $q
28673
- global.get $src/special/AIRY_C5
28674
- local.get $zk
28675
- f64.div
28676
- f64.sub
28677
- local.set $q
28678
- local.get $zk
28679
- local.get $zeta
28680
- f64.mul
28681
- local.set $zk
28682
- local.get $p
28683
- global.get $src/special/AIRY_C6
28684
- local.get $zk
28685
- f64.div
28686
- f64.add
28687
- local.set $p
28688
- local.get $theta
28689
- call $~lib/math/NativeMath.cos
28690
- local.get $p
28691
- f64.mul
28692
- local.get $theta
28693
- call $~lib/math/NativeMath.sin
28694
- local.get $q
28695
- f64.mul
28696
- f64.add
28697
- block $~lib/math/NativeMath.sqrt|inlined.21 (result f64)
28698
- global.get $~lib/math/NativeMath.PI
28699
- local.set $x|11
28700
- local.get $x|11
28701
- f64.sqrt
28702
- br $~lib/math/NativeMath.sqrt|inlined.21
28703
- end
28704
- local.get $axp
28705
- f64.mul
28706
- f64.div
28707
- return
28708
- )
28709
28659
  (func $src/special/_airyBiSeries (param $x f64) (result f64)
28710
28660
  (local $x3 f64)
28711
28661
  (local $f f64)
@@ -28838,37 +28788,37 @@
28838
28788
  local.get $dg
28839
28789
  f64.add
28840
28790
  local.set $g
28841
- block $~lib/math/NativeMath.abs|inlined.49 (result f64)
28791
+ block $~lib/math/NativeMath.abs|inlined.59 (result f64)
28842
28792
  local.get $df
28843
28793
  local.set $x|14
28844
28794
  local.get $x|14
28845
28795
  f64.abs
28846
- br $~lib/math/NativeMath.abs|inlined.49
28796
+ br $~lib/math/NativeMath.abs|inlined.59
28847
28797
  end
28848
- block $~lib/math/NativeMath.abs|inlined.50 (result f64)
28798
+ block $~lib/math/NativeMath.abs|inlined.60 (result f64)
28849
28799
  local.get $f
28850
28800
  local.set $x|15
28851
28801
  local.get $x|15
28852
28802
  f64.abs
28853
- br $~lib/math/NativeMath.abs|inlined.50
28803
+ br $~lib/math/NativeMath.abs|inlined.60
28854
28804
  end
28855
28805
  f64.const 1e-16
28856
28806
  f64.mul
28857
28807
  f64.lt
28858
28808
  if (result i32)
28859
- block $~lib/math/NativeMath.abs|inlined.51 (result f64)
28809
+ block $~lib/math/NativeMath.abs|inlined.61 (result f64)
28860
28810
  local.get $dg
28861
28811
  local.set $x|16
28862
28812
  local.get $x|16
28863
28813
  f64.abs
28864
- br $~lib/math/NativeMath.abs|inlined.51
28814
+ br $~lib/math/NativeMath.abs|inlined.61
28865
28815
  end
28866
- block $~lib/math/NativeMath.abs|inlined.52 (result f64)
28816
+ block $~lib/math/NativeMath.abs|inlined.62 (result f64)
28867
28817
  local.get $g
28868
28818
  local.set $x|17
28869
28819
  local.get $x|17
28870
28820
  f64.abs
28871
- br $~lib/math/NativeMath.abs|inlined.52
28821
+ br $~lib/math/NativeMath.abs|inlined.62
28872
28822
  end
28873
28823
  f64.const 1e-16
28874
28824
  f64.mul
@@ -28887,12 +28837,12 @@
28887
28837
  end
28888
28838
  end
28889
28839
  end
28890
- block $~lib/math/NativeMath.sqrt|inlined.22 (result f64)
28840
+ block $~lib/math/NativeMath.sqrt|inlined.15 (result f64)
28891
28841
  f64.const 3
28892
28842
  local.set $x|18
28893
28843
  local.get $x|18
28894
28844
  f64.sqrt
28895
- br $~lib/math/NativeMath.sqrt|inlined.22
28845
+ br $~lib/math/NativeMath.sqrt|inlined.15
28896
28846
  end
28897
28847
  global.get $src/special/AI0
28898
28848
  local.get $f
@@ -28910,7 +28860,8 @@
28910
28860
  f64.gt
28911
28861
  if
28912
28862
  local.get $x
28913
- call $src/special/_airyBiAsymptoteLargePos
28863
+ i32.const 0
28864
+ call $src/special/_airyAsymptotePos
28914
28865
  return
28915
28866
  end
28916
28867
  local.get $x
@@ -28919,7 +28870,8 @@
28919
28870
  f64.lt
28920
28871
  if
28921
28872
  local.get $x
28922
- call $src/special/_airyBiAsymptoteLargeNeg
28873
+ i32.const 0
28874
+ call $src/special/_airyAsymptoteNeg
28923
28875
  return
28924
28876
  end
28925
28877
  local.get $x
@@ -29007,14 +28959,14 @@
29007
28959
  end
29008
28960
  f64.const 1
29009
28961
  local.set $a
29010
- block $~lib/math/NativeMath.sqrt|inlined.23 (result f64)
28962
+ block $~lib/math/NativeMath.sqrt|inlined.16 (result f64)
29011
28963
  f64.const 1
29012
28964
  local.get $m
29013
28965
  f64.sub
29014
28966
  local.set $x
29015
28967
  local.get $x
29016
28968
  f64.sqrt
29017
- br $~lib/math/NativeMath.sqrt|inlined.23
28969
+ br $~lib/math/NativeMath.sqrt|inlined.16
29018
28970
  end
29019
28971
  local.set $b
29020
28972
  i32.const 0
@@ -29031,24 +28983,24 @@
29031
28983
  f64.const 2
29032
28984
  f64.div
29033
28985
  local.set $aNew
29034
- block $~lib/math/NativeMath.sqrt|inlined.24 (result f64)
28986
+ block $~lib/math/NativeMath.sqrt|inlined.17 (result f64)
29035
28987
  local.get $a
29036
28988
  local.get $b
29037
28989
  f64.mul
29038
28990
  local.set $x|6
29039
28991
  local.get $x|6
29040
28992
  f64.sqrt
29041
- br $~lib/math/NativeMath.sqrt|inlined.24
28993
+ br $~lib/math/NativeMath.sqrt|inlined.17
29042
28994
  end
29043
28995
  local.set $bNew
29044
- block $~lib/math/NativeMath.abs|inlined.53 (result f64)
28996
+ block $~lib/math/NativeMath.abs|inlined.63 (result f64)
29045
28997
  local.get $aNew
29046
28998
  local.get $bNew
29047
28999
  f64.sub
29048
29000
  local.set $x|8
29049
29001
  local.get $x|8
29050
29002
  f64.abs
29051
- br $~lib/math/NativeMath.abs|inlined.53
29003
+ br $~lib/math/NativeMath.abs|inlined.63
29052
29004
  end
29053
29005
  f64.const 1e-16
29054
29006
  local.get $aNew
@@ -29165,22 +29117,22 @@
29165
29117
  end
29166
29118
  f64.const 1
29167
29119
  local.set $a
29168
- block $~lib/math/NativeMath.sqrt|inlined.25 (result f64)
29120
+ block $~lib/math/NativeMath.sqrt|inlined.18 (result f64)
29169
29121
  f64.const 1
29170
29122
  local.get $m
29171
29123
  f64.sub
29172
29124
  local.set $x
29173
29125
  local.get $x
29174
29126
  f64.sqrt
29175
- br $~lib/math/NativeMath.sqrt|inlined.25
29127
+ br $~lib/math/NativeMath.sqrt|inlined.18
29176
29128
  end
29177
29129
  local.set $b
29178
- block $~lib/math/NativeMath.sqrt|inlined.26 (result f64)
29130
+ block $~lib/math/NativeMath.sqrt|inlined.19 (result f64)
29179
29131
  local.get $m
29180
29132
  local.set $x|4
29181
29133
  local.get $x|4
29182
29134
  f64.sqrt
29183
- br $~lib/math/NativeMath.sqrt|inlined.26
29135
+ br $~lib/math/NativeMath.sqrt|inlined.19
29184
29136
  end
29185
29137
  local.set $c
29186
29138
  local.get $c
@@ -29203,14 +29155,14 @@
29203
29155
  f64.const 2
29204
29156
  f64.div
29205
29157
  local.set $aNew
29206
- block $~lib/math/NativeMath.sqrt|inlined.27 (result f64)
29158
+ block $~lib/math/NativeMath.sqrt|inlined.20 (result f64)
29207
29159
  local.get $a
29208
29160
  local.get $b
29209
29161
  f64.mul
29210
29162
  local.set $x|10
29211
29163
  local.get $x|10
29212
29164
  f64.sqrt
29213
- br $~lib/math/NativeMath.sqrt|inlined.27
29165
+ br $~lib/math/NativeMath.sqrt|inlined.20
29214
29166
  end
29215
29167
  local.set $bNew
29216
29168
  local.get $a
@@ -29231,12 +29183,12 @@
29231
29183
  f64.mul
29232
29184
  f64.add
29233
29185
  local.set $sum
29234
- block $~lib/math/NativeMath.abs|inlined.54 (result f64)
29186
+ block $~lib/math/NativeMath.abs|inlined.64 (result f64)
29235
29187
  local.get $cNew
29236
29188
  local.set $x|13
29237
29189
  local.get $x|13
29238
29190
  f64.abs
29239
- br $~lib/math/NativeMath.abs|inlined.54
29191
+ br $~lib/math/NativeMath.abs|inlined.64
29240
29192
  end
29241
29193
  f64.const 1e-16
29242
29194
  local.get $aNew
@@ -29340,7 +29292,7 @@
29340
29292
  f64.const 0.5
29341
29293
  f64.lt
29342
29294
  if
29343
- block $~lib/math/NativeMath.abs|inlined.55 (result f64)
29295
+ block $~lib/math/NativeMath.abs|inlined.65 (result f64)
29344
29296
  global.get $~lib/math/NativeMath.PI
29345
29297
  local.get $x
29346
29298
  f64.mul
@@ -29348,7 +29300,7 @@
29348
29300
  local.set $x|2
29349
29301
  local.get $x|2
29350
29302
  f64.abs
29351
- br $~lib/math/NativeMath.abs|inlined.55
29303
+ br $~lib/math/NativeMath.abs|inlined.65
29352
29304
  end
29353
29305
  local.set $sinPiX
29354
29306
  local.get $sinPiX
@@ -29522,14 +29474,14 @@
29522
29474
  i32.lt_s
29523
29475
  if
29524
29476
  f64.const 2
29525
- block $~lib/math/NativeMath.sqrt|inlined.28 (result f64)
29477
+ block $~lib/math/NativeMath.sqrt|inlined.21 (result f64)
29526
29478
  local.get $xx
29527
29479
  local.get $yy
29528
29480
  f64.mul
29529
29481
  local.set $x|5
29530
29482
  local.get $x|5
29531
29483
  f64.sqrt
29532
- br $~lib/math/NativeMath.sqrt|inlined.28
29484
+ br $~lib/math/NativeMath.sqrt|inlined.21
29533
29485
  end
29534
29486
  f64.mul
29535
29487
  local.get $yy
@@ -29567,22 +29519,22 @@
29567
29519
  local.get $ave
29568
29520
  f64.div
29569
29521
  local.set $dy
29570
- block $~lib/math/NativeMath.abs|inlined.56 (result f64)
29522
+ block $~lib/math/NativeMath.abs|inlined.66 (result f64)
29571
29523
  local.get $dx
29572
29524
  local.set $x|10
29573
29525
  local.get $x|10
29574
29526
  f64.abs
29575
- br $~lib/math/NativeMath.abs|inlined.56
29527
+ br $~lib/math/NativeMath.abs|inlined.66
29576
29528
  end
29577
29529
  f64.const 1e-10
29578
29530
  f64.lt
29579
29531
  if (result i32)
29580
- block $~lib/math/NativeMath.abs|inlined.57 (result f64)
29532
+ block $~lib/math/NativeMath.abs|inlined.67 (result f64)
29581
29533
  local.get $dy
29582
29534
  local.set $x|11
29583
29535
  local.get $x|11
29584
29536
  f64.abs
29585
- br $~lib/math/NativeMath.abs|inlined.57
29537
+ br $~lib/math/NativeMath.abs|inlined.67
29586
29538
  end
29587
29539
  f64.const 1e-10
29588
29540
  f64.lt
@@ -29613,12 +29565,12 @@
29613
29565
  f64.const 1
29614
29566
  local.get $s
29615
29567
  f64.add
29616
- block $~lib/math/NativeMath.sqrt|inlined.29 (result f64)
29568
+ block $~lib/math/NativeMath.sqrt|inlined.22 (result f64)
29617
29569
  local.get $ave
29618
29570
  local.set $x|13
29619
29571
  local.get $x|13
29620
29572
  f64.sqrt
29621
- br $~lib/math/NativeMath.sqrt|inlined.29
29573
+ br $~lib/math/NativeMath.sqrt|inlined.22
29622
29574
  end
29623
29575
  f64.div
29624
29576
  return
@@ -29631,12 +29583,12 @@
29631
29583
  end
29632
29584
  end
29633
29585
  f64.const 1
29634
- block $~lib/math/NativeMath.sqrt|inlined.30 (result f64)
29586
+ block $~lib/math/NativeMath.sqrt|inlined.23 (result f64)
29635
29587
  local.get $yy
29636
29588
  local.set $x|14
29637
29589
  local.get $x|14
29638
29590
  f64.sqrt
29639
- br $~lib/math/NativeMath.sqrt|inlined.30
29591
+ br $~lib/math/NativeMath.sqrt|inlined.23
29640
29592
  end
29641
29593
  f64.div
29642
29594
  return
@@ -29736,28 +29688,28 @@
29736
29688
  i32.const 50
29737
29689
  i32.lt_s
29738
29690
  if
29739
- block $~lib/math/NativeMath.sqrt|inlined.31 (result f64)
29691
+ block $~lib/math/NativeMath.sqrt|inlined.24 (result f64)
29740
29692
  local.get $xx
29741
29693
  local.set $x|7
29742
29694
  local.get $x|7
29743
29695
  f64.sqrt
29744
- br $~lib/math/NativeMath.sqrt|inlined.31
29696
+ br $~lib/math/NativeMath.sqrt|inlined.24
29745
29697
  end
29746
29698
  local.set $sx
29747
- block $~lib/math/NativeMath.sqrt|inlined.32 (result f64)
29699
+ block $~lib/math/NativeMath.sqrt|inlined.25 (result f64)
29748
29700
  local.get $yy
29749
29701
  local.set $x|9
29750
29702
  local.get $x|9
29751
29703
  f64.sqrt
29752
- br $~lib/math/NativeMath.sqrt|inlined.32
29704
+ br $~lib/math/NativeMath.sqrt|inlined.25
29753
29705
  end
29754
29706
  local.set $sy
29755
- block $~lib/math/NativeMath.sqrt|inlined.33 (result f64)
29707
+ block $~lib/math/NativeMath.sqrt|inlined.26 (result f64)
29756
29708
  local.get $zz
29757
29709
  local.set $x|11
29758
29710
  local.get $x|11
29759
29711
  f64.sqrt
29760
- br $~lib/math/NativeMath.sqrt|inlined.33
29712
+ br $~lib/math/NativeMath.sqrt|inlined.26
29761
29713
  end
29762
29714
  local.set $sz
29763
29715
  local.get $sx
@@ -29816,22 +29768,22 @@
29816
29768
  local.get $ave
29817
29769
  f64.div
29818
29770
  local.set $dz
29819
- block $~lib/math/NativeMath.abs|inlined.58 (result f64)
29771
+ block $~lib/math/NativeMath.abs|inlined.68 (result f64)
29820
29772
  local.get $dx
29821
29773
  local.set $x|18
29822
29774
  local.get $x|18
29823
29775
  f64.abs
29824
- br $~lib/math/NativeMath.abs|inlined.58
29776
+ br $~lib/math/NativeMath.abs|inlined.68
29825
29777
  end
29826
29778
  f64.const 1e-10
29827
29779
  f64.lt
29828
29780
  if (result i32)
29829
- block $~lib/math/NativeMath.abs|inlined.59 (result f64)
29781
+ block $~lib/math/NativeMath.abs|inlined.69 (result f64)
29830
29782
  local.get $dy
29831
29783
  local.set $x|19
29832
29784
  local.get $x|19
29833
29785
  f64.abs
29834
- br $~lib/math/NativeMath.abs|inlined.59
29786
+ br $~lib/math/NativeMath.abs|inlined.69
29835
29787
  end
29836
29788
  f64.const 1e-10
29837
29789
  f64.lt
@@ -29839,12 +29791,12 @@
29839
29791
  i32.const 0
29840
29792
  end
29841
29793
  if (result i32)
29842
- block $~lib/math/NativeMath.abs|inlined.60 (result f64)
29794
+ block $~lib/math/NativeMath.abs|inlined.70 (result f64)
29843
29795
  local.get $dz
29844
29796
  local.set $x|20
29845
29797
  local.get $x|20
29846
29798
  f64.abs
29847
- br $~lib/math/NativeMath.abs|inlined.60
29799
+ br $~lib/math/NativeMath.abs|inlined.70
29848
29800
  end
29849
29801
  f64.const 1e-10
29850
29802
  f64.lt
@@ -29887,12 +29839,12 @@
29887
29839
  f64.const 14
29888
29840
  f64.div
29889
29841
  f64.add
29890
- block $~lib/math/NativeMath.sqrt|inlined.34 (result f64)
29842
+ block $~lib/math/NativeMath.sqrt|inlined.27 (result f64)
29891
29843
  local.get $ave
29892
29844
  local.set $x|23
29893
29845
  local.get $x|23
29894
29846
  f64.sqrt
29895
- br $~lib/math/NativeMath.sqrt|inlined.34
29847
+ br $~lib/math/NativeMath.sqrt|inlined.27
29896
29848
  end
29897
29849
  f64.div
29898
29850
  return
@@ -29905,12 +29857,12 @@
29905
29857
  end
29906
29858
  end
29907
29859
  f64.const 1
29908
- block $~lib/math/NativeMath.sqrt|inlined.35 (result f64)
29860
+ block $~lib/math/NativeMath.sqrt|inlined.28 (result f64)
29909
29861
  local.get $zz
29910
29862
  local.set $x|24
29911
29863
  local.get $x|24
29912
29864
  f64.sqrt
29913
- br $~lib/math/NativeMath.sqrt|inlined.35
29865
+ br $~lib/math/NativeMath.sqrt|inlined.28
29914
29866
  end
29915
29867
  f64.div
29916
29868
  return
@@ -30055,28 +30007,28 @@
30055
30007
  i32.const 50
30056
30008
  i32.lt_s
30057
30009
  if
30058
- block $~lib/math/NativeMath.sqrt|inlined.36 (result f64)
30010
+ block $~lib/math/NativeMath.sqrt|inlined.29 (result f64)
30059
30011
  local.get $xx
30060
30012
  local.set $x|9
30061
30013
  local.get $x|9
30062
30014
  f64.sqrt
30063
- br $~lib/math/NativeMath.sqrt|inlined.36
30015
+ br $~lib/math/NativeMath.sqrt|inlined.29
30064
30016
  end
30065
30017
  local.set $sx
30066
- block $~lib/math/NativeMath.sqrt|inlined.37 (result f64)
30018
+ block $~lib/math/NativeMath.sqrt|inlined.30 (result f64)
30067
30019
  local.get $yy
30068
30020
  local.set $x|11
30069
30021
  local.get $x|11
30070
30022
  f64.sqrt
30071
- br $~lib/math/NativeMath.sqrt|inlined.37
30023
+ br $~lib/math/NativeMath.sqrt|inlined.30
30072
30024
  end
30073
30025
  local.set $sy
30074
- block $~lib/math/NativeMath.sqrt|inlined.38 (result f64)
30026
+ block $~lib/math/NativeMath.sqrt|inlined.31 (result f64)
30075
30027
  local.get $zz
30076
30028
  local.set $x|13
30077
30029
  local.get $x|13
30078
30030
  f64.sqrt
30079
- br $~lib/math/NativeMath.sqrt|inlined.38
30031
+ br $~lib/math/NativeMath.sqrt|inlined.31
30080
30032
  end
30081
30033
  local.set $sz
30082
30034
  local.get $sx
@@ -30151,22 +30103,22 @@
30151
30103
  local.get $ave
30152
30104
  f64.div
30153
30105
  local.set $dz
30154
- block $~lib/math/NativeMath.abs|inlined.61 (result f64)
30106
+ block $~lib/math/NativeMath.abs|inlined.71 (result f64)
30155
30107
  local.get $dx
30156
30108
  local.set $x|20
30157
30109
  local.get $x|20
30158
30110
  f64.abs
30159
- br $~lib/math/NativeMath.abs|inlined.61
30111
+ br $~lib/math/NativeMath.abs|inlined.71
30160
30112
  end
30161
30113
  f64.const 1e-10
30162
30114
  f64.lt
30163
30115
  if (result i32)
30164
- block $~lib/math/NativeMath.abs|inlined.62 (result f64)
30116
+ block $~lib/math/NativeMath.abs|inlined.72 (result f64)
30165
30117
  local.get $dy
30166
30118
  local.set $x|21
30167
30119
  local.get $x|21
30168
30120
  f64.abs
30169
- br $~lib/math/NativeMath.abs|inlined.62
30121
+ br $~lib/math/NativeMath.abs|inlined.72
30170
30122
  end
30171
30123
  f64.const 1e-10
30172
30124
  f64.lt
@@ -30174,12 +30126,12 @@
30174
30126
  i32.const 0
30175
30127
  end
30176
30128
  if (result i32)
30177
- block $~lib/math/NativeMath.abs|inlined.63 (result f64)
30129
+ block $~lib/math/NativeMath.abs|inlined.73 (result f64)
30178
30130
  local.get $dz
30179
30131
  local.set $x|22
30180
30132
  local.get $x|22
30181
30133
  f64.abs
30182
- br $~lib/math/NativeMath.abs|inlined.63
30134
+ br $~lib/math/NativeMath.abs|inlined.73
30183
30135
  end
30184
30136
  f64.const 1e-10
30185
30137
  f64.lt
@@ -30278,12 +30230,12 @@
30278
30230
  local.get $ave
30279
30231
  local.get $ave
30280
30232
  f64.mul
30281
- block $~lib/math/NativeMath.sqrt|inlined.39 (result f64)
30233
+ block $~lib/math/NativeMath.sqrt|inlined.32 (result f64)
30282
30234
  local.get $ave
30283
30235
  local.set $x|31
30284
30236
  local.get $x|31
30285
30237
  f64.sqrt
30286
- br $~lib/math/NativeMath.sqrt|inlined.39
30238
+ br $~lib/math/NativeMath.sqrt|inlined.32
30287
30239
  end
30288
30240
  f64.mul
30289
30241
  f64.div
@@ -30304,12 +30256,12 @@
30304
30256
  local.get $zz
30305
30257
  local.get $zz
30306
30258
  f64.mul
30307
- block $~lib/math/NativeMath.sqrt|inlined.40 (result f64)
30259
+ block $~lib/math/NativeMath.sqrt|inlined.33 (result f64)
30308
30260
  local.get $zz
30309
30261
  local.set $x|32
30310
30262
  local.get $x|32
30311
30263
  f64.sqrt
30312
- br $~lib/math/NativeMath.sqrt|inlined.40
30264
+ br $~lib/math/NativeMath.sqrt|inlined.33
30313
30265
  end
30314
30266
  f64.mul
30315
30267
  f64.div
@@ -30439,28 +30391,28 @@
30439
30391
  i32.const 50
30440
30392
  i32.lt_s
30441
30393
  if
30442
- block $~lib/math/NativeMath.sqrt|inlined.41 (result f64)
30394
+ block $~lib/math/NativeMath.sqrt|inlined.34 (result f64)
30443
30395
  local.get $xx
30444
30396
  local.set $x|11
30445
30397
  local.get $x|11
30446
30398
  f64.sqrt
30447
- br $~lib/math/NativeMath.sqrt|inlined.41
30399
+ br $~lib/math/NativeMath.sqrt|inlined.34
30448
30400
  end
30449
30401
  local.set $sx
30450
- block $~lib/math/NativeMath.sqrt|inlined.42 (result f64)
30402
+ block $~lib/math/NativeMath.sqrt|inlined.35 (result f64)
30451
30403
  local.get $yy
30452
30404
  local.set $x|13
30453
30405
  local.get $x|13
30454
30406
  f64.sqrt
30455
- br $~lib/math/NativeMath.sqrt|inlined.42
30407
+ br $~lib/math/NativeMath.sqrt|inlined.35
30456
30408
  end
30457
30409
  local.set $sy
30458
- block $~lib/math/NativeMath.sqrt|inlined.43 (result f64)
30410
+ block $~lib/math/NativeMath.sqrt|inlined.36 (result f64)
30459
30411
  local.get $zz
30460
30412
  local.set $x|15
30461
30413
  local.get $x|15
30462
30414
  f64.sqrt
30463
- br $~lib/math/NativeMath.sqrt|inlined.43
30415
+ br $~lib/math/NativeMath.sqrt|inlined.36
30464
30416
  end
30465
30417
  local.set $sz
30466
30418
  local.get $sx
@@ -30575,22 +30527,22 @@
30575
30527
  local.get $ave
30576
30528
  f64.div
30577
30529
  local.set $dp
30578
- block $~lib/math/NativeMath.abs|inlined.64 (result f64)
30530
+ block $~lib/math/NativeMath.abs|inlined.74 (result f64)
30579
30531
  local.get $dx
30580
30532
  local.set $x|26
30581
30533
  local.get $x|26
30582
30534
  f64.abs
30583
- br $~lib/math/NativeMath.abs|inlined.64
30535
+ br $~lib/math/NativeMath.abs|inlined.74
30584
30536
  end
30585
30537
  f64.const 1e-10
30586
30538
  f64.lt
30587
30539
  if (result i32)
30588
- block $~lib/math/NativeMath.abs|inlined.65 (result f64)
30540
+ block $~lib/math/NativeMath.abs|inlined.75 (result f64)
30589
30541
  local.get $dy
30590
30542
  local.set $x|27
30591
30543
  local.get $x|27
30592
30544
  f64.abs
30593
- br $~lib/math/NativeMath.abs|inlined.65
30545
+ br $~lib/math/NativeMath.abs|inlined.75
30594
30546
  end
30595
30547
  f64.const 1e-10
30596
30548
  f64.lt
@@ -30598,12 +30550,12 @@
30598
30550
  i32.const 0
30599
30551
  end
30600
30552
  if (result i32)
30601
- block $~lib/math/NativeMath.abs|inlined.66 (result f64)
30553
+ block $~lib/math/NativeMath.abs|inlined.76 (result f64)
30602
30554
  local.get $dz
30603
30555
  local.set $x|28
30604
30556
  local.get $x|28
30605
30557
  f64.abs
30606
- br $~lib/math/NativeMath.abs|inlined.66
30558
+ br $~lib/math/NativeMath.abs|inlined.76
30607
30559
  end
30608
30560
  f64.const 1e-10
30609
30561
  f64.lt
@@ -30611,12 +30563,12 @@
30611
30563
  i32.const 0
30612
30564
  end
30613
30565
  if (result i32)
30614
- block $~lib/math/NativeMath.abs|inlined.67 (result f64)
30566
+ block $~lib/math/NativeMath.abs|inlined.77 (result f64)
30615
30567
  local.get $dp
30616
30568
  local.set $x|29
30617
30569
  local.get $x|29
30618
30570
  f64.abs
30619
- br $~lib/math/NativeMath.abs|inlined.67
30571
+ br $~lib/math/NativeMath.abs|inlined.77
30620
30572
  end
30621
30573
  f64.const 1e-10
30622
30574
  f64.lt
@@ -30739,12 +30691,12 @@
30739
30691
  local.get $ave
30740
30692
  local.get $ave
30741
30693
  f64.mul
30742
- block $~lib/math/NativeMath.sqrt|inlined.44 (result f64)
30694
+ block $~lib/math/NativeMath.sqrt|inlined.37 (result f64)
30743
30695
  local.get $ave
30744
30696
  local.set $x|36
30745
30697
  local.get $x|36
30746
30698
  f64.sqrt
30747
- br $~lib/math/NativeMath.sqrt|inlined.44
30699
+ br $~lib/math/NativeMath.sqrt|inlined.37
30748
30700
  end
30749
30701
  f64.mul
30750
30702
  f64.div
@@ -30765,12 +30717,12 @@
30765
30717
  local.get $pp
30766
30718
  local.get $pp
30767
30719
  f64.mul
30768
- block $~lib/math/NativeMath.sqrt|inlined.45 (result f64)
30720
+ block $~lib/math/NativeMath.sqrt|inlined.38 (result f64)
30769
30721
  local.get $pp
30770
30722
  local.set $x|37
30771
30723
  local.get $x|37
30772
30724
  f64.sqrt
30773
- br $~lib/math/NativeMath.sqrt|inlined.45
30725
+ br $~lib/math/NativeMath.sqrt|inlined.38
30774
30726
  end
30775
30727
  f64.mul
30776
30728
  f64.div