text stringlengths 0 601k |
|---|
let node , leaf = Schema . ( fix ( fun recursive -> recursive . obj " Node " ~ fields ( : fun ( node , _leaf ) -> [ field " children " ~ typ ( : non_null ( list ( non_null node ) ) ) ~ args [ ] : ~ resolve ( : fun { ctx = ( ) } t -> match t with | Node ( _ , xs ) -> xs | Leaf _ -> [ ] ) ; field " element " ~ typ ( : no... |
let list_to_seq n l = let rec aux n l ( ) = match ( n , l ) with | _ , [ ] | 0 , _ -> Seq . Nil | _ , x :: tail -> Seq . Cons ( x , aux ( n - 1 ) tail ) in aux n l |
let schema = Schema . ( schema [ field " tree " ~ typ ( : non_null node ) ~ args [ ] : ~ resolve ( : fun _ ( ) -> Node ( 0 , [ Node ( 1 , [ Leaf 2 ] ) ] ) ) ; field " users " ~ typ ( : non_null ( list ( non_null user ) ) ) ~ args : Arg . [ ] ~ resolve ( : fun _ ( ) -> ! users ) ; ] ~ mutations : [ field " add_user " ~ ... |
let a = Sci . format [ | Sci . num_2 ; Sci . num_1 ; Sci . num_0 ] | ; ; |
let b = Sci . format [ | Sci . num_1 ; Sci . num_2 ; Sci . num_0 ] | ; ; |
let c = Sci . format [ | Sci . num_4 ; Sci . num_0 ; Sci . num_4 ] | ; ; |
let d = Sci . format [ | Sci . num_2 ; Sci . num_1 ; Num . minus_num Sci . num_1 ] | ; ; |
let e = Sci . format [ | Sci . num_1 ; Sci . num_2 ; Num . minus_num Sci . num_1 ] | ; ; |
let m = Sci . square_module a ; ; |
let n = Sci . plus a b ; ; |
let o = Sci . plus b a ; ; |
let p = Sci . plus a d ; ; |
let q = Sci . minus a d ; ; |
let r = Sci . mult a d ; ; |
let s = Sci . div a d ; ; |
let t = Sci . int_pow 800 a ; ; |
let u = Sci . sci_fact ( Num . num_of_int 69 ) ; ; |
let pi = Sci . sci_approx_pi 50 ; ; |
let ipi = Sci . sci_approx_ipi 50 ; ; |
let v = Sci . sci_of_complex [ | [ | 1 . ; 2 . ] | ; [ | - 2 . ; 1 . ] | ] | ; ; |
let maf = Sci . sci_of_num Sci . num_2_pow_1024 ; ; |
let mmff = Sci . int_pow 65536 maf ; ; |
let r = Sci . real_sqrt_1024 Sci . sci_2 ; ; |
let r0 = Sci . complex_of_sci ( Sci . sqrt_1024 Sci . sci_2i ) ; ; |
let r1 = Sci . complex_of_sci ( Sci . sqrt_1024 ( Sci . sci_of_float ( - 0 . 75 ) ) ) ; ; |
let sol = Sci . solve_degree_2_1024 Sci . sci_1 Sci . sci_1 Sci . sci_1 ; ; |
let sol0 = Array . map Sci . complex_of_sci sol ; ; |
let z = Sci . plus_1024 Sci . half_pi_1000_10 Sci . half_pi_1000_10 ; ; |
let y = Sci . mult_1024 Sci . half_pi_1000_10 Sci . pi_1000_10 ; ; |
let x = Sci . mult Sci . pi_1000_10 Sci . half_pi_1000_10 ; ; |
let rr = Sci . int_pow_1024 2 r ; ; |
let a0 = [ [ || 0 . 999537131586786143 ; - 1 . 22955137826996658e - 19 ] | ; [ | 1 . 22955137826996658e - 19 ; 0 . 999537131586786143 ] ] ; ; || |
let b0 = [ [ || 0 . 999845450393193 ; - 4 . 10992935015358837e - 20 ] | ; [ | 4 . 10992935015358837e - 20 ; 0 . 999845450393193 ] ] || ; ; |
let c0 = [ [ || 0 . 999948456937 ; - 1 . 37138697602e - 20 ] | ; [ | 1 . 37138697602e - 20 ; 0 . 999948456937 ] ] || ; ; |
let aA = Sci . sci_of_complex a0 ; ; |
let bB = Sci . sci_of_complex b0 ; ; |
let cC = Sci . sci_of_complex c0 ; ; |
let dD = Sci . aitken_seki_1024 aA bB cC ; ; |
let d = Sci . complex_of_sci dD ; ; |
let aa = Sci . sci_of_complex [ [ || 1 . 00093397534851669 ; 1 . 88849435087711631e - 21 ] | ; [ |- 1 . 88849435087711631e - 21 ; 1 . 00093397534851669 ] ] || ; ; |
let bb = Sci . sci_of_complex [ [ || 1 . 0003103531 ; 6 . 25561639667e - 22 ] | ; [ |- 6 . 25561639667e - 22 ; 1 . 0003103531 ] ] || ; ; |
let cc = Sci . sci_of_complex [ [ || 1 . 00010334391 ; 2 . 08088496508e - 22 ] | ; [ |- 2 . 08088496508e - 22 ; 1 . 00010334391 ] ] || ; ; |
let dd = Sci . sci_of_complex [ [ || 1 . 0000344361 ; 6 . 93150212666e - 23 ] | ; [ |- 6 . 93150212666e - 23 ; 1 . 0000344361 ] ] || ; ; |
let ee = Sci . sci_of_complex [ [ || 1 . 00001147738 ; 2 . 30997019396e - 23 ] | ; [ |- 2 . 30997019396e - 23 ; 1 . 00001147738 ] ] || ; ; |
let ff = Sci . shanks2_1024 aa bb cc dd ee ; ; |
let f = Sci . complex_of_sci ff ; ; |
let s0 = [ | aA ; bB ; cC ] | ; ; |
let s1 = [ | aa ; bb ; cc ; dd ; ee ] | ; ; |
let ddd = Sci . wynn_1024 2 0 s0 ; ; |
let d_d = Sci . complex_of_sci ddd ; ; |
let d0 = Sci . wynn_rho_1024 2 0 s0 ; ; |
let d1 = Sci . complex_of_sci ddd ; ; |
let fff = Sci . wynn_1024 4 0 s1 ; ; |
let f_f = Sci . complex_of_sci fff ; ; |
let f0 = Sci . wynn_rho_1024 4 0 s1 ; ; |
let f1 = Sci . complex_of_sci f0 ; ; |
let f2 = Sci . aitken_seki_rec_1024 2 0 s1 ; ; |
let f3 = Sci . complex_of_sci f2 ; ; |
let ffff = Sci . mult_1024 Sci . sci_1024 fff ; ; |
let fF = Sci . brezinski_1024 2 0 s1 ; ; |
let rc2 = Sci . real_cubic_root_1024 Sci . sci_2 ; ; |
let vrc2 = Sci . mult_1024 ( Sci . mult_1024 rc2 rc2 ) rc2 ; ; |
let rc3 = Sci . real_cubic_root_1024 Sci . sci_3 ; ; |
let vrc3 = Sci . mult_1024 ( Sci . mult_1024 rc3 rc3 ) rc3 ; ; |
let rcm3000 = Sci . real_cubic_root_1024 ( Sci . sci_of_float ( - 3000 . ) ) ; ; |
let vrcm3000 = Sci . mult_1024 ( Sci . mult_1024 rcm3000 rcm3000 ) rcm3000 ; ; |
let c2 = Sci . cubic_root_1024 Sci . sci_2 ; ; |
let vc2 = Sci . mult_1024 ( Sci . mult_1024 c2 c2 ) c2 ; ; |
let c3 = Sci . cubic_root_1024 Sci . sci_3 ; ; |
let vc3 = Sci . mult_1024 ( Sci . mult_1024 c3 c3 ) c3 ; ; |
let m3000 = Sci . sci_of_float ( - 3000 . ) ; ; |
let cm3000 = Sci . cubic_root_1024 m3000 ; ; |
let vcm3000 = Sci . mult_1024 ( Sci . mult_1024 cm3000 cm3000 ) cm3000 ; ; |
let c3i = Sci . cubic_root_1024 Sci . sci_3i ; ; |
let vc3i = Sci . mult_1024 ( Sci . mult_1024 c3i c3i ) c3i ; ; |
let m3000i = Sci . mult m3000 Sci . sci_i ; ; |
let cm3000i = Sci . cubic_root_1024 m3000i ; ; |
let vcm3000i = Sci . mult_1024 ( Sci . mult_1024 cm3000i cm3000i ) cm3000i ; ; |
let vj = Sci . mult_1024 ( Sci . mult_1024 Sci . sci_1024_j Sci . sci_1024_j ) Sci . sci_1024_j ; ; |
let fr2 = Sci . nth_root_1024 5 Sci . sci_2 ; ; |
let vfr2 = Sci . int_pow 5 fr2 ; ; |
let k = Sci . sci_1024_primitive_root_of_unity 5 ; ; |
let vk = Sci . int_pow_1024 5 k ; ; |
let s0 = Sci . solve_degree_3_1024 Sci . sci_1 Sci . sci_0 Sci . sci_0 Sci . sci_minus_1 ; ; |
let s1 = Array . map ( Sci . int_pow_1024 3 ) s0 ; ; |
let s2 = Sci . solve_degree_3_1024 Sci . sci_1 Sci . sci_0 Sci . sci_0 m3000i ; ; |
let s3 = Array . map ( Sci . int_pow_1024 3 ) s2 ; ; |
let s4 = Sci . solve_degree_3_1024 Sci . sci_1 Sci . sci_1 Sci . sci_1 Sci . sci_1 ; ; |
let s5 = Array . map ( Sci . int_pow_1024 4 ) s4 ; ; |
let s6 = Sci . solve_degree_4_1024 Sci . sci_1 Sci . sci_0 Sci . sci_0 Sci . sci_0 Sci . sci_minus_1 ; ; |
let s7 = Array . map ( Sci . int_pow_1024 4 ) s6 ; ; |
let s8 = Sci . solve_degree_4_1024 Sci . sci_1 Sci . sci_1 Sci . sci_1 Sci . sci_1 Sci . sci_1 ; ; |
let s9 = Array . map ( Sci . int_pow_1024 5 ) s8 ; ; |
let p4 = Sci . quarter_pi_1024 ; ; |
let ta = Sci . direct_tan_1024 0 . 01 p4 ; ; |
let tb = Sci . tan_1024 p4 ; ; |
let ta0 = Sci . minus_1024 ta Sci . sci_1 ; ; |
let tb0 = Sci . minus_1024 tb Sci . sci_1 ; ; |
let c10 = Sci . cos_1024 Sci . quarter_pi_1024 ; ; |
let c11 = Sci . mult_1024 c10 c10 ; ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.