newtest 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bb308542528af6ecf47a646bb8f378024227c6a0e0e7954a66190e6a04159c5
4
- data.tar.gz: 4a502a6891441e63dad13d8a77214bcc0b2625305914cdf7bab8acf3bfdfc709
3
+ metadata.gz: b398350376e1add90ec669cec41ff5313de7e3adbb6877164a0b8202447a82d2
4
+ data.tar.gz: 917c9aa5e39413f8352e16c3f0add5004a4cce1d19bea349d89fe2a6331cff16
5
5
  SHA512:
6
- metadata.gz: e03196fa4cd50dbc689c93b8e15b65d98b731d0e01293949a0043c6abdb822607b04f98ddd1a8010e27ce9744687e9c071c8d911958fbe0bb90d08c312947ddd
7
- data.tar.gz: fe18c40edac8a331d9a9c1e1e6c679d4fa03b2a322956ed6885b688289acd7c8b5d4475600f1e59bf038ade5c41abe3ca8f12e6f52d42f487a4cdbe00f912e48
6
+ metadata.gz: 4f762668124f346d770cba3c32025e96e76a1772a6551802323e46c3d9d5498cd24e845cb6e92cbd7ea69bd0ac76142b8d3c8c177cb6826001b7d32a25d336f7
7
+ data.tar.gz: 0acdc0974423473839f665e171008ccf7dc9a1a17acb4f61b33a330a58b7e90ccea0ce7caa6eaf39e79aa9434363359696bebf2c03b7da9b0061df90a1d2bfa6
@@ -1,3 +1,3 @@
1
1
  module Newtest
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/newtest.rb CHANGED
@@ -15,4 +15,16 @@ module Newtest
15
15
  puts %Q{Nghiem cua PT la: #{-b}/#{a}}
16
16
  end
17
17
  end
18
+ def self.giaiPT2(a,b,c)
19
+ d = (b*b) - 4*a*c
20
+ if d<0
21
+ puts "PT VN"
22
+ elsif d==0
23
+ puts %Q{PT co nghiem kep: #{-b}/#{2*a}}
24
+ else
25
+ e = Math.sqrt(d)
26
+ puts %Q{PT co nghiem 1: #{-b} - #{e}/#{2*a}}
27
+ puts %Q{PT co nghiem 2: #{-b} + #{e}/#{2*a}}
28
+ end
29
+ end
18
30
  end
data/newtest-0.0.1.gem ADDED
Binary file
data/newtest-0.0.2.gem ADDED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newtest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Q.
@@ -55,6 +55,8 @@ files:
55
55
  - bin/setup
56
56
  - lib/newtest.rb
57
57
  - lib/newtest/version.rb
58
+ - newtest-0.0.1.gem
59
+ - newtest-0.0.2.gem
58
60
  - newtest.gemspec
59
61
  homepage: https://github.com/chanari/newtest
60
62
  licenses: