vector_number 0.6.0 → 0.6.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 +4 -4
- data/README.md +1 -1
- data/lib/vector_number/version.rb +1 -1
- metadata +4 -6
- data/doc/vector_space.svg +0 -94
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25f09e35dd54faff983f9cf09a5243621ddb491e537c4efededf24fe52293dd1
|
|
4
|
+
data.tar.gz: acfe2627613a81b1ee3262a66d6eca033adb0c8eb9d00550496352d2f7e53a0f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 111166b11c37f6a2f731d0bfb1ecd765c023002bc5f47f587dc4b8b756df6e06eb4752c9904069616c78b87a90b7562cec0d5231d7928accb6e9d72dac33384c
|
|
7
|
+
data.tar.gz: 2221c913375975beb5e081f312c621231e423fb57a0eb5b2f3167e0f93b2c3a8518aaf3b249f1344caa02e7635ae065c0e7e6e7a7ec8d2dc770d95514b1c3a4b
|
data/README.md
CHANGED
|
@@ -144,7 +144,7 @@ Length of a VectorNumber in any given dimension is given by a real number, calle
|
|
|
144
144
|
|
|
145
145
|
This might be more easily imagined as a geometric vector. For example, this is a graphic representation of a vector `3 * VectorNumber[1] + 2 * VectorNumber[1i] + 3 * VectorNumber["string"] + 4.5 * VectorNumber[[1,2,3]]` in the vector space:
|
|
146
146
|
|
|
147
|
-

|
|
147
|
+

|
|
148
148
|
|
|
149
149
|
## Development
|
|
150
150
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vector_number
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Bulancov
|
|
@@ -23,10 +23,8 @@ executables: []
|
|
|
23
23
|
extensions: []
|
|
24
24
|
extra_rdoc_files:
|
|
25
25
|
- README.md
|
|
26
|
-
- doc/vector_space.svg
|
|
27
26
|
files:
|
|
28
27
|
- README.md
|
|
29
|
-
- doc/vector_space.svg
|
|
30
28
|
- lib/vector_number.rb
|
|
31
29
|
- lib/vector_number/comparing.rb
|
|
32
30
|
- lib/vector_number/converting.rb
|
|
@@ -45,9 +43,9 @@ licenses:
|
|
|
45
43
|
metadata:
|
|
46
44
|
homepage_uri: https://github.com/trinistr/vector_number
|
|
47
45
|
bug_tracker_uri: https://github.com/trinistr/vector_number/issues
|
|
48
|
-
documentation_uri: https://rubydoc.info/gems/vector_number/0.6.
|
|
49
|
-
source_code_uri: https://github.com/trinistr/vector_number/tree/v0.6.
|
|
50
|
-
changelog_uri: https://github.com/trinistr/vector_number/blob/v0.6.
|
|
46
|
+
documentation_uri: https://rubydoc.info/gems/vector_number/0.6.1
|
|
47
|
+
source_code_uri: https://github.com/trinistr/vector_number/tree/v0.6.1
|
|
48
|
+
changelog_uri: https://github.com/trinistr/vector_number/blob/v0.6.1/CHANGELOG.md
|
|
51
49
|
rubygems_mfa_required: 'true'
|
|
52
50
|
rdoc_options:
|
|
53
51
|
- "--main"
|
data/doc/vector_space.svg
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
<svg width="500" height="400" viewBox="-250 -200 500 400" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<style>
|
|
3
|
-
text {
|
|
4
|
-
font-family: 'Arial', sans-serif;
|
|
5
|
-
font-size: 14px;
|
|
6
|
-
}
|
|
7
|
-
.axis-label {
|
|
8
|
-
font-weight: bold;
|
|
9
|
-
font-size: 16px;
|
|
10
|
-
}
|
|
11
|
-
.dim-label {
|
|
12
|
-
font-size: 12px;
|
|
13
|
-
fill: #666;
|
|
14
|
-
}
|
|
15
|
-
</style>
|
|
16
|
-
|
|
17
|
-
<!-- Background -->
|
|
18
|
-
<rect x="-250" y="-200" width="500" height="400" fill="#fff0cc"/>
|
|
19
|
-
|
|
20
|
-
<!-- Coordinate system center -->
|
|
21
|
-
<circle cx="0" cy="0" r="5" fill="#000"/>
|
|
22
|
-
<text x="-50" y="-5" class="dim-label">(0,0,...)</text>
|
|
23
|
-
|
|
24
|
-
<!-- 1 (numeric) axis -->
|
|
25
|
-
<line x1="0" y1="0" x2="150" y2="0" stroke="#2196F3" stroke-width="2"/>
|
|
26
|
-
<polygon points="155,0 145,-4 145,4" fill="#2196F3"/>
|
|
27
|
-
<text x="160" y="5" class="axis-label">1</text>
|
|
28
|
-
|
|
29
|
-
<!-- i (imaginary) axis -->
|
|
30
|
-
<line x1="0" y1="0" x2="0" y2="-150" stroke="#4CAF50" stroke-width="2"/>
|
|
31
|
-
<polygon points="0,-155 -4,-145 4,-145" fill="#4CAF50"/>
|
|
32
|
-
<text x="10" y="-145" class="axis-label">i</text>
|
|
33
|
-
|
|
34
|
-
<!-- [1,2,3] axis -->
|
|
35
|
-
<line x1="0" y1="0" x2="-150" y2="150" stroke="#FF9800" stroke-width="2"/>
|
|
36
|
-
<polygon points="-154,154 -150,144 -144,150" fill="#FF9800"/>
|
|
37
|
-
<text x="-205" y="140" class="axis-label">[1,2,3]</text>
|
|
38
|
-
|
|
39
|
-
<!-- "string" axis -->
|
|
40
|
-
<line x1="0" y1="0" x2="100" y2="150" stroke="#9C27B0" stroke-width="2"/>
|
|
41
|
-
<polygon points="103,155 101,144 93,149" fill="#9C27B0"/>
|
|
42
|
-
<text x="110" y="160" class="axis-label">"string"</text>
|
|
43
|
-
|
|
44
|
-
<!-- VectorNumber -->
|
|
45
|
-
<line x1="0" y1="0" x2="118" y2="-78" stroke="#F44336" stroke-width="3"/>
|
|
46
|
-
<polygon points="120,-80 107,-78 113,-68" fill="#F44336"/>
|
|
47
|
-
<text x="120" y="-90" text-anchor="middle" font-weight="bold" fill="#F44336">
|
|
48
|
-
(3 + 2i + 3⋅"string" + 4.5⋅[1,2,3])
|
|
49
|
-
</text>
|
|
50
|
-
|
|
51
|
-
<!-- Projection lines to axes -->
|
|
52
|
-
<!-- To numeric axis -->
|
|
53
|
-
<line x1="120" y1="-80" x2="120" y2="0" stroke="#2196F3" stroke-width="1" stroke-dasharray="5,5"/>
|
|
54
|
-
<circle cx="120" cy="0" r="3" fill="#2196F3"/>
|
|
55
|
-
<text x="120" y="15" class="dim-label">3</text>
|
|
56
|
-
|
|
57
|
-
<!-- To imaginary axis -->
|
|
58
|
-
<line x1="120" y1="-80" x2="0" y2="-80" stroke="#4CAF50" stroke-width="1" stroke-dasharray="5,5"/>
|
|
59
|
-
<circle cx="0" cy="-80" r="3" fill="#4CAF50"/>
|
|
60
|
-
<text x="-15" y="-80" class="dim-label">2</text>
|
|
61
|
-
|
|
62
|
-
<!-- To [1,2,3] axis -->
|
|
63
|
-
<line x1="120" y1="-80" x2="-90" y2="90" stroke="#FF9800" stroke-width="1" stroke-dasharray="5,5"/>
|
|
64
|
-
<circle cx="-90" cy="90" r="3" fill="#FF9800"/>
|
|
65
|
-
<text x="-115" y="90" class="dim-label">4.5</text>
|
|
66
|
-
|
|
67
|
-
<!-- To "string" axis -->
|
|
68
|
-
<line x1="120" y1="-80" x2="55" y2="83" stroke="#9C27B0" stroke-width="1" stroke-dasharray="5,5"/>
|
|
69
|
-
<circle cx="55" cy="83" r="3" fill="#9C27B0"/>
|
|
70
|
-
<text x="45" y="95" class="dim-label">3</text>
|
|
71
|
-
|
|
72
|
-
<!-- Legend -->
|
|
73
|
-
<rect x="-220" y="-180" width="180" height="145" fill="white" stroke="#ccc" stroke-width="1"/>
|
|
74
|
-
|
|
75
|
-
<line x1="-210" y1="-160" x2="-202" y2="-168" stroke="#F44336" stroke-width="3"/>
|
|
76
|
-
<polygon points="-200,-170 -205,-169 -201,-165" fill="#F44336"/>
|
|
77
|
-
<text x="-190" y="-160">VectorNumber</text>
|
|
78
|
-
|
|
79
|
-
<line x1="-212" y1="-145" x2="-200" y2="-145" stroke="#2196F3" stroke-width="2"/>
|
|
80
|
-
<text x="-190" y="-140">Real dimension</text>
|
|
81
|
-
|
|
82
|
-
<line x1="-212" y1="-125" x2="-200" y2="-125" stroke="#4CAF50" stroke-width="2"/>
|
|
83
|
-
<text x="-190" y="-120">Imaginary dimension</text>
|
|
84
|
-
|
|
85
|
-
<line x1="-212" y1="-105" x2="-200" y2="-105" stroke="#9C27B0" stroke-width="2"/>
|
|
86
|
-
<text x="-190" y="-100">"string" dimension</text>
|
|
87
|
-
|
|
88
|
-
<line x1="-212" y1="-85" x2="-200" y2="-85" stroke="#FF9800" stroke-width="2"/>
|
|
89
|
-
<text x="-190" y="-80">[1,2,3] dimension</text>
|
|
90
|
-
|
|
91
|
-
<line x1="-212" y1="-65" x2="-200" y2="-65" stroke="gray" stroke-width="2"/>
|
|
92
|
-
<text x="-190" y="-60">Zero dimensions</text>
|
|
93
|
-
<text x="-190" y="-45">(not portrayed)</text>
|
|
94
|
-
</svg>
|