make_bodies   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/core/nbody_lang_shootout.xtm

Implementation

(bind-func make_bodies
  (lambda ()
    (let ((bodies:planet* (halloc 5))
          (sun:planet* (pref-ptr bodies 0))
          (jupiter:planet* (pref-ptr bodies 1))
          (saturn:planet* (pref-ptr bodies 2))
          (uranus:planet* (pref-ptr bodies 3))
          (neptune:planet* (pref-ptr bodies 4)))
      (tfill! sun 0.0 0.0 0.0 0.0 0.0 0.0 (* 1.0 solar_mass))
      (tfill! jupiter
              4.84143144246472090e+00
              -1.16032004402742839e+00
              -1.03622044471123109e-01
              (* 1.66007664274403694e-03 days_per_year)
              (* 7.69901118419740425e-03 days_per_year)
              (* -6.90460016972063023e-05 days_per_year)
              (* 9.54791938424326609e-04 solar_mass))
      (tfill! saturn
              8.34336671824457987e+00
              4.12479856412430479e+00
              -4.03523417114321381e-01
              (* -2.76742510726862411e-03 days_per_year)
              (* 4.99852801234917238e-03 days_per_year)
              (* 2.30417297573763929e-05 days_per_year)
              (* 2.85885980666130812e-04 solar_mass))
      (tfill! uranus
             1.28943695621391310e+01
             -1.51111514016986312e+01
             -2.23307578892655734e-01
             (* 2.96460137564761618e-03 days_per_year)
             (* 2.37847173959480950e-03 days_per_year)
             (* -2.96589568540237556e-05 days_per_year)
             (* 4.36624404335156298e-05 solar_mass))
      (tfill! neptune
              1.53796971148509165e+01
              -2.59193146099879641e+01
              1.79258772950371181e-01
              (* 2.68067772490389322e-03 days_per_year)
              (* 1.62824170038242295e-03 days_per_year)
              (* -9.51592254519715870e-05 days_per_year)
              (* 5.15138902046611451e-05 solar_mass))
      bodies)))


Back to Index

Similar Entries

  • CV_MAKE_TYPE    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/xtmcv.xtm
  • aiProcess_MakeLeftHanded    scheme    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • cl:make-list    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • cvMakeColour    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opencv.xtm
  • glfw_make_context_current    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • impc:ir:compile:make-closure    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compile:make-closureenv    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compile:make-env    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compile:make-static    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:make-array    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:make-tuple    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compiler:make-vector    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:make-arglist-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:make-const-string    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:make-function-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:make-string    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:make-struct-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:make-struct-str-env    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ti:make-array-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:make-tuple-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:make-vector-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:nativef-generics-make-gtypes-unique    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • init_bodies    xtlang    /digego/extempore/tree/v0.8.9/examples/core/nbody_lang_shootout.xtm
  • make-bezier    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • make-envelope    xtlang    /digego/extempore/tree/v0.8.9/tests/core/xtlang.xtm
  • make-environment    macro    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • make-instrument    macro    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • make-list    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • make-list-with-proc    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • make-metre    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • make-metro    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • make-rhythm    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • make-timeline    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • make-vector-with-proc    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • make_instrument    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments.xtm
  • make_instrument    xtlang    /digego/extempore/tree/v0.8.9/libs/external/instruments_ext.xtm
  • make_mono    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/TSM_library.xtm
  • make_static_scheme_wrapper_ir    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • make_window_transparent    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/win32.xtm
  • match-result:make    scheme    /digego/extempore/tree/v0.8.9/libs/base/pattern.xtm
  • matcher:make    scheme    /digego/extempore/tree/v0.8.9/libs/base/pattern.xtm
  • my-inc-maker    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-inc-maker-wrapper    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • pc:make-chord    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • pc:make-chord-fixed    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • plet-make-bindings    scheme    /digego/extempore/tree/v0.8.9/libs/base/pattern.xtm
  • sys_dir_make    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_dir_make_recursive    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • xtm_make_model    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm