num4diff 0.0.17 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/lib/num4diff.rb +4 -4
  4. metadata +24 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f446c837fe8380d46e1467a9a2c1365fd6b6e5b5571f44be19d94e3f102d566e
4
- data.tar.gz: f5618c68783af3470c5f8f3304c94d4b9307a9eabcba53f470507a72f4d32d56
3
+ metadata.gz: c3d43e9112ccd0bdbd28aaf6f696a8b7b09f4acf72976d77f62e0153563670f5
4
+ data.tar.gz: 04ed46b9e7a0105515984b9a6f1fd35f89b39a053ef15a4a60ac4b4b78fc8de1
5
5
  SHA512:
6
- metadata.gz: 6ccacc59e40dcab11980802247733c4efce0bfa553a93a9d204a972e574a49e422c36fbf51a46509bf8c6dd931f85b7c9ddfd89c28bcd5fe33841dde735e54e6
7
- data.tar.gz: 8c51b60e4d77cabdac3c4b49c2f41a2b7787f8b6ecf9b7779a98f427dedb92c49a2376ed759fba43eb615cc8e05410e3474f3c996b3e0a7c582b1a449c45a783
6
+ metadata.gz: 7d004ed6d244e4148e1acdfd4e7b57ec3042c5eb16fa85f9ca818804329c30d38314b4e9a5244640bfa08b63f99873cd7671b7388d8928043933b918fb92670b
7
+ data.tar.gz: 34dde17525dce52b5f9553a9382e029fe5e7547dd4164f82fa13a6b05ddea389129e9e2a6a3d6eaed4cbdf77447580d55eff3b9d0d5cde8204aac677c70dcdcb
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 siranovel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/lib/num4diff.rb CHANGED
@@ -5,15 +5,15 @@ module Num4DiffLib
5
5
  spec = Gem.loaded_specs["num4diff"]
6
6
  gem_root = spec.gem_dir
7
7
  ffi_lib ["#{gem_root}/ext/num4diff/libnum4diff.so"]
8
-
8
+ # y = f(xi)
9
9
  callback :f, [:double], :double
10
- # yi_1 = eulerMethod(yi, x, h, func)
10
+ # yi_1 = eulerMethod(yi, xi, h, func)
11
11
  attach_function :eulerMethod,
12
12
  :CNum4Diff_eulerMethod, [:double, :double, :double, :f], :double
13
- # yi_1 = heunMethod(yi, x, h, func)
13
+ # yi_1 = heunMethod(yi, xi, h, func)
14
14
  attach_function :heunMethod,
15
15
  :CNum4Diff_heunMethod, [:double, :double, :double, :f], :double
16
- # yi_1 = rungeKuttaMethod(yi, x, h, func)
16
+ # yi_1 = rungeKuttaMethod(yi, xi, h, func)
17
17
  attach_function :rungeKuttaMethod,
18
18
  :CNum4Diff_rungeKuttaMethod, [:double, :double, :double, :f], :double
19
19
  end
metadata CHANGED
@@ -1,21 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: num4diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - siranovel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-17 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2022-03-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ffi
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.15.0
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '1.15'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 1.15.0
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.15'
13
33
  description: numerical solution for ordinaray differential equations
14
34
  email: siranovel@gmail.com
15
35
  executables: []
16
36
  extensions: []
17
37
  extra_rdoc_files: []
18
38
  files:
39
+ - LICENSE
19
40
  - ext/num4diff/libnum4diff.so
20
41
  - lib/num4diff.rb
21
42
  homepage: http://github.com/siranovel/num4different