Skip to content

Commit

Permalink
Return n >= a + 1 for n > a, and n <= a - 1 for n < a, if a is an int…
Browse files Browse the repository at this point in the history
…eger (and n represents an integer); Improve MathStructure::representsFinite(); Increment version number; Update exchange rates
  • Loading branch information
hanna-kn committed Jun 28, 2024
1 parent d24c445 commit 4c25f6f
Show file tree
Hide file tree
Showing 18 changed files with 954 additions and 979 deletions.
6 changes: 5 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-06-27 Hanna Knutsson <hanna.knutsson@protonmail.com>

* Return n >= a + 1 for n > a, and n <= a - 1 for n < a, if a is an integer (and n represents an integer)

2024-06-22 Hanna Knutsson <hanna.knutsson@protonmail.com>

* Always return false for 1/f(x)=0 (not f(x)=infinity)
Expand Down Expand Up @@ -26,7 +30,7 @@
* Preserve allow_infinite parameter for recursive comparison in MathStructure::equals()
* Return true for infinity multiplied by zero in MathStructure::representsUndefined()
* Add recursion counter to MathStructure::isolate_x() and MathStructure::isolate_x_sub() (variable isolation) to avoid stack overflow
* Return true both text strings are empty in equalsIgnoreCase()
* Return true if both text strings are empty in equalsIgnoreCase()
* Fix parenthesis added in front of multiplication sign in some cases
* Use less strict rules when comparing with previous expression (to avoid infinite loop) when isolating variable, in MathStructure::isolate_x_sub(); * Do not apply x+x^(1/a)=b => x=(b-x)^a if (part of) x represents undefined

Expand Down
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dnl ----------------------
dnl | initialize autotools |---------------------------------------------------
dnl ----------------------

AC_INIT([libqalculate],[5.1.1])
AC_INIT([libqalculate],[5.2.0])
AC_CONFIG_SRCDIR(libqalculate/Calculator.cc)
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS(config.h)
Expand Down Expand Up @@ -69,7 +69,7 @@ AC_DEFINE([HAVE_PTHREADS],1,
dnl libtool versioning for libqalculate

dnl increment if the interface has additions, changes, removals.
QALCULATE_CURRENT=24
QALCULATE_CURRENT=25

dnl increment any time the source changes; set to
dnl 0 if you increment CURRENT
Expand All @@ -78,7 +78,7 @@ QALCULATE_REVISION=0
dnl increment if any interfaces have been added; set to 0
dnl if any interfaces have been removed. removal has
dnl precedence over adding, so set to 0 if both happened.
QALCULATE_AGE=1
QALCULATE_AGE=2

AC_SUBST(QALCULATE_CURRENT)
AC_SUBST(QALCULATE_REVISION)
Expand Down
60 changes: 30 additions & 30 deletions data/eurofxref-daily.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,37 @@
<gesmes:name>European Central Bank</gesmes:name>
</gesmes:Sender>
<Cube>
<Cube time='2024-04-29'>
<Cube currency='USD' rate='1.0720'/>
<Cube currency='JPY' rate='167.53'/>
<Cube time='2024-06-24'>
<Cube currency='USD' rate='1.0730'/>
<Cube currency='JPY' rate='171.17'/>
<Cube currency='BGN' rate='1.9558'/>
<Cube currency='CZK' rate='25.175'/>
<Cube currency='DKK' rate='7.4581'/>
<Cube currency='GBP' rate='0.85493'/>
<Cube currency='HUF' rate='391.64'/>
<Cube currency='PLN' rate='4.3255'/>
<Cube currency='RON' rate='4.9759'/>
<Cube currency='SEK' rate='11.6850'/>
<Cube currency='CHF' rate='0.9776'/>
<Cube currency='ISK' rate='150.30'/>
<Cube currency='NOK' rate='11.7835'/>
<Cube currency='TRY' rate='34.7103'/>
<Cube currency='AUD' rate='1.6322'/>
<Cube currency='BRL' rate='5.4706'/>
<Cube currency='CAD' rate='1.4635'/>
<Cube currency='CNY' rate='7.7627'/>
<Cube currency='HKD' rate='8.3904'/>
<Cube currency='IDR' rate='17408.74'/>
<Cube currency='ILS' rate='4.0316'/>
<Cube currency='INR' rate='89.4610'/>
<Cube currency='KRW' rate='1476.15'/>
<Cube currency='MXN' rate='18.3202'/>
<Cube currency='MYR' rate='5.1108'/>
<Cube currency='NZD' rate='1.7932'/>
<Cube currency='PHP' rate='61.858'/>
<Cube currency='SGD' rate='1.4578'/>
<Cube currency='THB' rate='39.696'/>
<Cube currency='ZAR' rate='20.0504'/>
<Cube currency='CZK' rate='24.893'/>
<Cube currency='DKK' rate='7.4593'/>
<Cube currency='GBP' rate='0.84730'/>
<Cube currency='HUF' rate='394.36'/>
<Cube currency='PLN' rate='4.3003'/>
<Cube currency='RON' rate='4.9774'/>
<Cube currency='SEK' rate='11.2555'/>
<Cube currency='CHF' rate='0.9586'/>
<Cube currency='ISK' rate='149.10'/>
<Cube currency='NOK' rate='11.3490'/>
<Cube currency='TRY' rate='35.2953'/>
<Cube currency='AUD' rate='1.6157'/>
<Cube currency='BRL' rate='5.8278'/>
<Cube currency='CAD' rate='1.4682'/>
<Cube currency='CNY' rate='7.7891'/>
<Cube currency='HKD' rate='8.3772'/>
<Cube currency='IDR' rate='17596.13'/>
<Cube currency='ILS' rate='4.0003'/>
<Cube currency='INR' rate='89.5833'/>
<Cube currency='KRW' rate='1489.57'/>
<Cube currency='MXN' rate='19.3887'/>
<Cube currency='MYR' rate='5.0554'/>
<Cube currency='NZD' rate='1.7543'/>
<Cube currency='PHP' rate='63.066'/>
<Cube currency='SGD' rate='1.4520'/>
<Cube currency='THB' rate='39.347'/>
<Cube currency='ZAR' rate='19.5122'/>
</Cube>
</Cube>
</gesmes:Envelope>
2 changes: 1 addition & 1 deletion data/functions.xml.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<QALCULATE version="5.1.0">
<QALCULATE version="5.2.0">
<category>
<_title>Matrices &amp; Vectors</_title>
<builtin_function name="vector">
Expand Down
Loading

0 comments on commit 4c25f6f

Please sign in to comment.