num4diff 0.0.17

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f446c837fe8380d46e1467a9a2c1365fd6b6e5b5571f44be19d94e3f102d566e
4
+ data.tar.gz: f5618c68783af3470c5f8f3304c94d4b9307a9eabcba53f470507a72f4d32d56
5
+ SHA512:
6
+ metadata.gz: 6ccacc59e40dcab11980802247733c4efce0bfa553a93a9d204a972e574a49e422c36fbf51a46509bf8c6dd931f85b7c9ddfd89c28bcd5fe33841dde735e54e6
7
+ data.tar.gz: 8c51b60e4d77cabdac3c4b49c2f41a2b7787f8b6ecf9b7779a98f427dedb92c49a2376ed759fba43eb615cc8e05410e3474f3c996b3e0a7c582b1a449c45a783
Binary file
data/lib/num4diff.rb ADDED
@@ -0,0 +1,19 @@
1
+ require 'ffi'
2
+
3
+ module Num4DiffLib
4
+ extend FFI::Library
5
+ spec = Gem.loaded_specs["num4diff"]
6
+ gem_root = spec.gem_dir
7
+ ffi_lib ["#{gem_root}/ext/num4diff/libnum4diff.so"]
8
+
9
+ callback :f, [:double], :double
10
+ # yi_1 = eulerMethod(yi, x, h, func)
11
+ attach_function :eulerMethod,
12
+ :CNum4Diff_eulerMethod, [:double, :double, :double, :f], :double
13
+ # yi_1 = heunMethod(yi, x, h, func)
14
+ attach_function :heunMethod,
15
+ :CNum4Diff_heunMethod, [:double, :double, :double, :f], :double
16
+ # yi_1 = rungeKuttaMethod(yi, x, h, func)
17
+ attach_function :rungeKuttaMethod,
18
+ :CNum4Diff_rungeKuttaMethod, [:double, :double, :double, :f], :double
19
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: num4diff
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.17
5
+ platform: ruby
6
+ authors:
7
+ - siranovel
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-03-17 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: numerical solution for ordinaray differential equations
14
+ email: siranovel@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - ext/num4diff/libnum4diff.so
20
+ - lib/num4diff.rb
21
+ homepage: http://github.com/siranovel/num4different
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.0.3.1
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: num for diffrent!
44
+ test_files: []