Skip to content

Commit

Permalink
- Version 2.20 is ready to rock n' roll!
Browse files Browse the repository at this point in the history
- Happy new year!
  • Loading branch information
trizen committed Jan 2, 2016
1 parent d3008bf commit e62252e
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 15 deletions.
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The Artistic License 2.0

Copyright (c) 2015 Daniel Șuteu
Copyright (c) 2013-2016 Daniel Șuteu, Ioana Fălcușan

Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Expand Down Expand Up @@ -199,4 +199,3 @@ LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Sidef is a high-level, general-purpose programming language, inspired by Ruby, P

### LICENSE AND COPYRIGHT

* Copyright (C) 2013-2015 Daniel Șuteu, Ioana Fălcușan
* Copyright (C) 2013-2016 Daniel Șuteu, Ioana Fălcușan

This program is free software; you can redistribute it and/or modify it
under the terms of the *Artistic License (2.0)*. You may obtain a copy
Expand Down
3 changes: 1 addition & 2 deletions bin/sidef
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,7 @@ sub code_interactive {
}
elsif ($line eq 'copyright') {
print <<'EOT';
Copyright © 2013 Daniel Șuteu, Ioana Fălcușan
Copyright © 2014-2015 Daniel Șuteu
Copyright © 2013-2016 Daniel Șuteu, Ioana Fălcușan
All Rights Reserved.
EOT
redo;
Expand Down
2 changes: 1 addition & 1 deletion lib/Sidef.pod
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ You can find more info about Sidef, by clicking on the following links:

=head2 LICENSE AND COPYRIGHT

Copyright (C) 2013-2015 Daniel Șuteu, Ioana Fălcușan
Copyright (C) 2013-2016 Daniel Șuteu, Ioana Fălcușan

This program is free software; you can redistribute it and/or modify it
under the terms of the B<Artistic License (2.0)>. You may obtain a copy
Expand Down
2 changes: 1 addition & 1 deletion scripts/Project Euler/0016-power_digit_sum.sf
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

# Answer: 1366

say (2**1000 -> to_chars.map{.to_i}.sum);
say (2**1000 -> digits.sum);
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Answer: 1533776805

range(144, Math.inf).each { |n|
range(144, 1e100).each { |n|
var h = n*(2*n - 1);
if ((sqrt(1 + 24*h).inc %% 6) && (sqrt(1 + 8*h).dec %% 2)) {
say h;
Expand Down
2 changes: 1 addition & 1 deletion scripts/Project Euler/0046-goldbach_s_other_conjecture.sf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

var ntheory = frequire('ntheory');

range(3, Math.inf, 2).each { |n|
range(3, 1e100, 2).each { |n|
ntheory.is_prime(n) && next;

range(1, (n/2).sqrt.int).each { |i|
Expand Down
11 changes: 5 additions & 6 deletions scripts/Project Euler/0080-square_root_digital_expansion.sf
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@
# Answer: 40886

var sum = 0;
Math.accuracy(102);

local Num!PREC = 105*3.3;

for (1 ..^ 100) { |i|

var sr = i.sqrt;
next if sr.is_int;
i.is_square && next;

var x = sr.to_s;
var x = i.sqrt.to_s;
x -= /\./;
x.substr!(0, 100);

sum += x.to_i.digits.sum;
}

say sum.int;
Math.accuracy(0);
say sum;

0 comments on commit e62252e

Please sign in to comment.