ruby_math 0.0.1
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 +7 -0
- data/.gitignore +17 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +14 -0
- data/Rakefile +11 -0
- data/lib/ruby_math.rb +83 -0
- data/lib/ruby_math/version.rb +3 -0
- data/ruby_math.gemspec +29 -0
- data/spec/ruby_math_spec.rb +19 -0
- data/spec/spec_helper.rb +8 -0
- metadata +157 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 57334caca6d21691ef7f244fbbd4f2b02aa913ae
|
4
|
+
data.tar.gz: 1cc63c3777ef78e6188d41a66550c92a25c74c17
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1007ca7eb1a2b2887548e0ca4f0301a7501aac6ca3b3c1ffa47446ae61248f2e8d4141151d05fd43e231f255e2ee1d59bfd674e4680daad2ba5426e93b3b668b
|
7
|
+
data.tar.gz: aeafd5ddd0a10d57ce5572aeba5f27ef0f5bf0edd74bf2ad7aa48f0a0e4773b563127830840ee34ca5bdb5126c6187cf4d329b7c3dc6a4e0234a0cf4a31290da
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 KevinRobayna
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
## RubyMath [](https://travis-ci.org/kevinrobayna/ruby_math) [](https://gemnasium.com/kevinrobayna/ruby_math)
|
2
|
+
Gem for mathematics method and different data structure like complex and vector and matrix and some else you're been able to see his method on Homepage of this gem
|
3
|
+
#### Author:
|
4
|
+
Kevin Robayna
|
5
|
+
#### Contributors
|
6
|
+
Kevin Robayna
|
7
|
+
## Usage
|
8
|
+
As soon as
|
9
|
+
## Contributing
|
10
|
+
1. Fork it
|
11
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
12
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
13
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
14
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/lib/ruby_math.rb
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
# = File with develop of gem RubyMath
|
2
|
+
#
|
3
|
+
# Authors: KevinRobayna
|
4
|
+
#
|
5
|
+
# Email: kevinirobaynahdez@gmail.com
|
6
|
+
#
|
7
|
+
|
8
|
+
# == Module when i'll develop gem ruby_math .
|
9
|
+
#
|
10
|
+
# For this gem i'll create a class hierarchy.
|
11
|
+
# All about this gem are onto module RubyMath.
|
12
|
+
# This module will have Complex and Vector and Matrix Class and some public method
|
13
|
+
#
|
14
|
+
|
15
|
+
|
16
|
+
require "ruby_math/version"
|
17
|
+
|
18
|
+
module RubyMath
|
19
|
+
|
20
|
+
# == Class Complex
|
21
|
+
# With this class you can work with complex data structure (a+bi) with his operators and his to_something
|
22
|
+
#
|
23
|
+
# Methods:
|
24
|
+
# to_s
|
25
|
+
# +
|
26
|
+
# -
|
27
|
+
# *
|
28
|
+
# /
|
29
|
+
# to_polar
|
30
|
+
# to_rectangular
|
31
|
+
# get_angle
|
32
|
+
# module
|
33
|
+
class Complex
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
# == Class Polar
|
38
|
+
# With this class you can work with complex data structure (a+bi) on polar mode with his operators and his to_something
|
39
|
+
#
|
40
|
+
# Methods:
|
41
|
+
# to_s
|
42
|
+
# +
|
43
|
+
# -
|
44
|
+
# *
|
45
|
+
# /
|
46
|
+
# to_binomial
|
47
|
+
# to_rectangular
|
48
|
+
# get_angle
|
49
|
+
# module
|
50
|
+
class Polar
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
# == Class Matrix
|
55
|
+
# With this class you can work with Matrix data structure [[a,b],[c,d] with his operators and his to_something
|
56
|
+
#
|
57
|
+
# Methods:
|
58
|
+
# to_s
|
59
|
+
# +
|
60
|
+
# -
|
61
|
+
# *
|
62
|
+
# /
|
63
|
+
# determinant
|
64
|
+
# inverse
|
65
|
+
class Matrix
|
66
|
+
|
67
|
+
end
|
68
|
+
|
69
|
+
# == Class Fraction
|
70
|
+
# With this class you can work with Fraction (a/b) and his operators and his to_something
|
71
|
+
#
|
72
|
+
# Methods:
|
73
|
+
# to_s
|
74
|
+
# +
|
75
|
+
# -
|
76
|
+
# *
|
77
|
+
# /
|
78
|
+
# inverse
|
79
|
+
class Fraction
|
80
|
+
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
data/ruby_math.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'ruby_math/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "ruby_math"
|
8
|
+
spec.version = RubyMath::VERSION
|
9
|
+
spec.authors = ["KevinRobayna"]
|
10
|
+
spec.email = ["k3vinaso@gmail.com"]
|
11
|
+
spec.description = %q{Gem for mathematics method and different data structure like complex and vector and matrix and some else you're been able to see his method on Homepage of this gem}
|
12
|
+
spec.summary = %q{Gem for mathematics method and data structure}
|
13
|
+
spec.homepage = "https://github.com/kevinrobayna/ruby_math"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "guard"
|
24
|
+
spec.add_development_dependency "guard-rspec"
|
25
|
+
spec.add_development_dependency "guard-bundler"
|
26
|
+
spec.add_development_dependency "guard-gitpusher"
|
27
|
+
spec.add_development_dependency "gemnasium"
|
28
|
+
|
29
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,157 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby_math
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- KevinRobayna
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: guard
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard-rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard-bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard-gitpusher
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: gemnasium
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Gem for mathematics method and different data structure like complex
|
112
|
+
and vector and matrix and some else you're been able to see his method on Homepage
|
113
|
+
of this gem
|
114
|
+
email:
|
115
|
+
- k3vinaso@gmail.com
|
116
|
+
executables: []
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
120
|
+
- .gitignore
|
121
|
+
- .travis.yml
|
122
|
+
- Gemfile
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- lib/ruby_math.rb
|
127
|
+
- lib/ruby_math/version.rb
|
128
|
+
- ruby_math.gemspec
|
129
|
+
- spec/ruby_math_spec.rb
|
130
|
+
- spec/spec_helper.rb
|
131
|
+
homepage: https://github.com/kevinrobayna/ruby_math
|
132
|
+
licenses:
|
133
|
+
- MIT
|
134
|
+
metadata: {}
|
135
|
+
post_install_message:
|
136
|
+
rdoc_options: []
|
137
|
+
require_paths:
|
138
|
+
- lib
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - '>='
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0'
|
149
|
+
requirements: []
|
150
|
+
rubyforge_project:
|
151
|
+
rubygems_version: 2.1.11
|
152
|
+
signing_key:
|
153
|
+
specification_version: 4
|
154
|
+
summary: Gem for mathematics method and data structure
|
155
|
+
test_files:
|
156
|
+
- spec/ruby_math_spec.rb
|
157
|
+
- spec/spec_helper.rb
|