-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy pathChangeLog
More file actions
7084 lines (4555 loc) · 273 KB
/
ChangeLog
File metadata and controls
7084 lines (4555 loc) · 273 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2026-03-29 Hanna Knutsson <[email protected]>
* Initial support for comparison of vectors and matrices (e.g. "[1 2 3] = [1 2 3]" returns true)
* Fix newtonsolve((x+1)^2,1) and similar (when intermediate value is zero)
2026-03-26 Hanna Knutsson <[email protected]>
* Allow use of apostrophe as thousands separator in input, when specified as group separator by locale
* Do not attempt to solve equations with five or more abs() or sgn()
* Do not allow extremely long expressions in required assumption warning
2026-03-24 Hanna Knutsson <[email protected]>
* Fix bad simplification in some cases (e.g. "√(58 + 8 × cbrt(58)^2 + 15 × cbrt(58))"), leading to recursive simplification in log() function
* Fix wrong result, e.g. wrong sign in asin(), in some cases because extremely small imaginary part of complex number was opportunistically removed (assumed zero) in too many cases
* Add ton of refrigeration unit
2026-03-21 Hanna Knutsson <[email protected]>
* Fix wrong simplification of "sin(2-cosh(x)^2/x+x)"
2026-03-20 Hanna Knutsson <[email protected]>
* Fix segfault in some cases when argument in det() contains only a single element
2026-03-19 Hanna Knutsson <[email protected]>
* Add mol/dm³, mol/L, and molar units
* Enable compiled definitions by default
2026-03-18 Hanna Knutsson <[email protected]>
* Fix loading of qalc history on Windows
2026-03-17 Hanna Knutsson <[email protected]>
* Treat 0^0 as undefined (but assume that base is non-zero by default, thus f(x)^0 = 1)
* Assume that plot function is not discontinuous if values are so close that they can safely be assumed to be equal (e.g. when approximately calculated function results in horizontal line, e.g. x^log(a, x))
2026-03-14 Hanna Knutsson <[email protected]>
* Use max 4 decimals, and min 2 decimals, by default (with less decimals for large numbers and more decimals for small numbers) for display of value of converted currencies
2026-03-13 Hanna Knutsson <[email protected]>
* Add slug unit
* Add pcm, ppm, ppb, ppt, and ppq (parts per ...) as variables
2026-03-10 Hanna Knutsson <[email protected]>
* Improve interval calculation (avoid "interval potentially calculated wide" when interval calculation is set to interval arithmetic) with division by zero and/or both real and complex numbers in derivative of expression
* Fix adaptive interval display when "where" expression contains interval function
2026-03-03 Hanna Knutsson <[email protected]>
* Add lakh and crore variables
2026-02-27 Hanna Knutsson <[email protected]>
* Improve simplification
* Fix root(x, n)=z when z is a complex number (should return false)
2026-02-26 Hanna Knutsson <[email protected]>
* Fix recursive variable in "where" expression
2026-02-24 Hanna Knutsson <[email protected]>
* Add XAG, XAU, XPD, and XPT currencies (precious metals)
2026-02-22 Hanna Knutsson <[email protected]>
* abs(x+a*abs(x)) equals x+a*abs(x) if a>=1, or abs(x)-x if a=-1
* Enable abs(f(x)) and sgn(f(x)) substitution for all inequalities
* Improve handling of abs(x)/x-sgn(x)
2026-02-21 Hanna Knutsson <[email protected]>
* Factorize a+2*sqrt(c) to (sqrt(n)+sqrt(m))^2 (and similar) and simplify sqrt(a+b*sqrt(c))
* Increase time before forced abortion with high precision
2026-01-20 Hanna Knutsson <[email protected]>
* Improve factorization and simplification with radicals
* Improve simplification of log function, e.g. ln(x^2+2x+1)
* Fix x^2+y^2-1=0 && y-x=0
* Fix 0^(a/ln(0)) (delay ln(0)=-infinity);
2026-02-19 Hanna Knutsson <[email protected]>
* Simplify a^(b/ln(a)) to e^b
* Complete the square when first exponent equals second exponent times two, e.g. x+2*sqrt(x)+1=(sqrt(x)+2)^2
* Do not prefer no exponent in factor over exponent < 1, thus avoiding negative exponents, e.g. x+sqrt(x)=(sqrt(x)+1)*sqrt(x) instead of (1/sqrt(x)+1)*x)
2026-02-18 Hanna Knutsson <[email protected]>
* Improve check for division by zero in factor when solving f(x)*g(x)=0 (e.g. "(1/sqrt(x)+1)*x=0" returned the invalid solution)
* Do not show negative exponents (if "negexp" is deactivated) when expressions contains unknown variables, even if all units have negative exponents
* Do show warning about denominators assumed non-zero when converting to expression with non-unit objects
2026-02-17 Hanna Knutsson <[email protected]>
* Fix (x-y)/(y-x)+1 not simplified
* Do not show expression in complex exponential form when possibly not real but not complex or arg() fails for the expression
2026-02-16 Hanna Knutsson <[email protected]>
* Use L'Hôpital's rule for 0^0 and infinity^0 (in addition to 1^infinity)
* When limit fails, try unexpanded expression
* Show warning when using limit function
* 0^(a*i) is undefined (not zero)
2026-02-09 Hanna Knutsson <[email protected]>
* sgn(x^a)=sgn(x)^a if a is real
* Normalize sign of argument in sgn, erf, root (with odd degree), and cbrt functions (e.g. cbrt(x-y)=-cbrt(y-x))
* Fix negative exponents always used for units with rounding set to (halfway) down or up
2026-02-08 Hanna Knutsson <[email protected]>
* Improve solving of abs(f(x))=0, abs(f(x))<=a, and abs(f(x))>=a
2026-02-06 Hanna Knutsson <[email protected]>
* Delay simplification of integer inequalities (e.g. from n>0 to n>=1), and further simplify inequalities at end of evaluation when it is safe to ignore the possibility that the value of an unknown variable has a unit
2026-01-27 Hanna Knutsson <[email protected]>
* Improve handling of "to mixed" after previous conversion statement (e.g. "1 m to in to mixed")
* Add missing "mixed" option for to command in qalc
2026-01-26 Hanna Knutsson <[email protected]>
* Set initial random seed using /dev/random, or BCryptGenRandom (on Windows)
* Do not initialize and seed random state until random number functions are used
2026-01-15 Hanna Knutsson <[email protected]>
* Fix segfault in some corner cases when converting approximate units before uncertainty calculation
2026-01-14 Hanna Knutsson <[email protected]>
* Simplify (x <= a || x >= a+1) when x and a are integers (fixes abs(x-1)=abs(1-x))
2026-01-13 Hanna Knutsson <[email protected]>
* Exclude functions with expression containing "plot(" from calculate-as-you-type
* Update currencies to reflect that BGN has been replaced with EUR as official currency
2026-01-11 Hanna Knutsson <[email protected]>
* Clean up code for reading default values from function expression and make it more forgiving and consistent for input which deviates from the ideal
2026-01-08 Hanna Knutsson <[email protected]>
* Add exact values for multiples of pi/12 (15°) in sin() and cos(), and tan(7/12*pi*n)
* Fix loading of approximate variable with both approximate and exact values (e.g. in vector)
* Fix missing parenthesis for exact number shown as approximate in vector
2026-01-05 Hanna Knutsson <[email protected]>
* Fix conversion to non-unit expression beginning with zero (when not before decimal separator) or minus
2026-01-03 Hanna Knutsson <[email protected]>
* Add example and support for x, y, and z without preceding backslash in function() function
* Support X, Y, and Z (uppercase) without backslash for function creation, in qalc
* Fix support for vector as only argument to function in function() function
2025-12-31 Hanna Knutsson <[email protected]>
* Completion for commands and options
2025-12-30 Hanna Knutsson <[email protected]>
* Parse +/- before implicit multiplication when not preceded by number (e.g. "7 km +/- 5m")
2025-12-29 Hanna Knutsson <[email protected]>
* Fix abortion of matrix resize in some cases
* Improve efficiency and block errors and warnings in Calculator::findMatchingUnit()
2025-12-22 Hanna Knutsson <[email protected]>
* Always consider x^(a+b) equivalent to x^a * x^b (fixes "x^(y+z) - x^y * x^z" returns "(1 − 1)x^(y + z)")
* Simplify root(a, x) to a^(1/x) when x represents a rational number, a is real, and a != 0 and x > 0, or a > 0 and x != 0
* Do not allow zero as 2nd argument in root function
* Reduce evaluation (perform for a smaller subset of malformed unit expression) in CompositeUnit::setBaseExpression()
* Do not interpret expression after "./" as "where"-expression if there is no left hand side expression
* Predict timeout error for extremely large numbers in Calculator::calculateAndPrint()
* Do not show global object deactivated error when reading expressions from file
* Improve decision to not show calculate-as-you-type result for incomplete object name (e.g. "integ" interpreted as "int(e*g)")
2025-12-20 Hanna Knutsson <[email protected]>
* Simplify (x = a || x >= a+1) and (x = a || x <= a - 1) when x and a are integers (fixes abs(x-1)=abs(1-x))
2025-12-18 Hanna Knutsson <[email protected]>
* Do not show result for variable assignment when -t and -f command line options are used
* Ellipsize large matrices and vectors when a subset of output (e.g. in a failed function), in qalc
2025-12-16 Hanna Knutsson <[email protected]>
* Do not remove duplicate whitespace characters from text strings (in quotation marks)
* Improve speed of vector rank and mode
* Reduce unnecessary approximation of vector/matrix elements
* Fix exchange rates marked as used (and subsequently updated) after calculation of expression with only one currency (while conversion to more optimal currency was attempted conversion to € occured)
2025-12-11 Hanna Knutsson <[email protected]>
* Improve speed of vector sort
* Improve efficieny of MathStructure child deletion
* Do not ask questions when --defaults is used
2025-11-26 Hanna Knutsson <[email protected]>
* Fix floating point conversion when comma is used as decimal separator
2025-11-24 Hanna Knutsson <[email protected]>
* Fix (almost) endless loop with increasingly complex equations in x+x^(1/a) => x=(b-x)^a (e.g. when solving "x + y = k/2 and x^2 + y^2 = k")
* Do not append multiple duplicate (sort of) equations (e.g. "x^51+sqrt(x)=3" returned "x^51 + √(x) = 3 && 6x^51 − x^102 + x = 9")
* Fix crash on Windows during output of extremely small or large (> 10^323228497) floating point number
2025-11-22 Hanna Knutsson <[email protected]>
* Fix compilation with readline < 7.0
* Fix compilation with mpfr < 4.0
2025-11-21 Đoàn Trần Công Danh <[email protected]>
* Drop intltool requirement
2025-11-14 Hanna Knutsson <[email protected]>
* Fix default data property argument ("info")
* Limit range of arguments in binomial function
2025-11-13 Hanna Knutsson <[email protected]>
* Show vector, with many elements, in result using colon function when possible
2025-11-10 Hanna Knutsson <[email protected]>
* Add abortion point in bernoulli function with non-zero second argument
* Add abortion point in zeta function with negative integer as first argument and second argument != 1
2025-11-09 Hanna Knutsson <[email protected]>
* Fix handling of single quotation marks
* Limit the range of supported arguments in igamma function to avoid segfault and very slow unabortable calculations
* Fix use of options "ignore locale" and "language" in command line arguments
* Reduce max argument of nextprime() and prevprime()
2025-11-08 Hanna Knutsson <[email protected]>
* Show error when plot function is used when Gnuplot is not found or is disabled by "--without-gnuplot-call"
* Fix segfault with entrywise operation on a column vector and an empty vector (e.g. "[1; 2].*[]")
* Fix segfaults with "{" or "}" in expression (qalc not affected)
2025-11-06 Hanna Knutsson <[email protected]>
* Add reshape() function
* Add warning when matrix/vector has been expanded in slice() or part()
* Improve support for multiple preferred languages on Windows
2025-11-01 Hanna Knutsson <[email protected]>
* Fix compilation without readline
* Add circshift and replacePart functions
* v[i, ...]=... syntax for assignment of part of matrix/vector variable
* Rename and improve area (now "part"), limits ("slice"), and mergevectors ("combine") functions
* Improve language handling in definitions files
2025-10-30 Hanna Knutsson <[email protected]>
* Add default currency option in qalc
2025-10-29 Hanna Knutsson <[email protected]>
* Limit the range of supported arguments in bessely and besselj functions (to avoid very slow unabortable calculations), and add abortion points
* Limit time used for dual calculation with time command line argument to same limit as without
* Do not try to calculate exact result with automatic approximation for expressions with iterative functions
2025-10-22 Hanna Knutsson <[email protected]>
* Fix infinite loop during factorization (e.g. when calculating "base(1234567,x,3)=2^31") on Windows
2025-10-21 Hanna Knutsson <[email protected]>
* Hide mode string (when show-mode-in-prompt is enabled) when asking for user input
* Improve interpretation of function expressions with x, y, and/or z in object names (e.g. "x year"), and/or within quotation marks (e.g. "x*code('x')"), in qalc
2025-10-18 Hanna Knutsson <[email protected]>
* Avoid "Did you mean..." warning with same original text string as suggested
2025-10-17 Hanna Knutsson <[email protected]>
* Fix crash after factorization with calculate-as-you-type enabled
* Fix segfault with both calculate-as-you-type and RPN mode enabled
* Improve support for character encodings other than UTF-8
2025-10-16 Hanna Knutsson <[email protected]>
* New completion method which presents a numbered list of matches and lets the user select an item by entering the corresponding number
* Completion mode option
* Refine completion matching
* Hide "101" name variants
2025-10-13 Hanna Knutsson <[email protected]>
* Show error when function or variable disabled by "--disable-insecure" is used
* Fix "make test" (unittest) when compiled with --disable-insecure
* Fix matching of multiple words in title
* Fix compilation with -fsanitize=undefined
2025-10-09 Hanna Knutsson <[email protected]>
* Improve speed when performing many multiple calculations read from file (by a factor of about 100 for simple calculations)
* Increase responsiveness by decreasing the length of sleep periods (from 10 to 1 ms) while waiting
* Improve calculation timer accuracy and add workaround for low time resolution for sleep on Windows
2025-10-08 Hanna Knutsson <[email protected]>
* Allow any separator before time in date/time value if colon is used, and allow space as separator even if quotation marks are not used
* Allow use of Z after date for UTC time (without any time specified)
* Do not allow left over characters after date
* Fix negative time zone in date and time input
2025-10-07 Hanna Knutsson <[email protected]>
* Use category and title from existing local variable/function when using "=" for variable/function assignment
* Fix output of calculate-as-you-type parsed value (division was displayed using negative exponent) for excluded functions
* Do not write unnecessary (de)activate global objects to local definitions
* Always include million, thousand, hundred (they are not ambiguous like other large numbers)
* Fix make distcheck
2025-10-05 Hanna Knutsson <[email protected]>
* Move erg/gram from equivalent to absorbed dose category
* If last character is a digit, include both letters and numerals in matched word for completion
* Fix reference names not used for reference of base units in some cases causing failure to load 13 units with Russian translation
* Make astronomical unit symbol case insensitive and use lower-case letters by default ("au")
2025-10-04 Hanna Knutsson <[email protected]>
* Calculate with interval/uncertainty in where expression even if exact mode
* Fix display of "calculate as you type" and "save config" options, and remove duplicate "save mode" on Windows, in mode list
* Update names for Loschmidt, Molary volume of ideal gas, and Sackur tetrode constants to improve consistency
* Update value of HiggsBoson, quark_c, and quark_t constants
* Add StandardGravity_unit name
* Minor adjustment to Fine-Structure and Rydberg constants to more precisely reflect CODATA values for derived constants
* Use current mode for display of value, place units and uncertanity on same line, for variables in qalc
2025-09-30 Hanna Knutsson <[email protected]>
* Improve accuracy for intervals in solutions to equations when using interval arithmetic
* Improve handling of intervals in where expressions
* Move jerk, snap, crackle, and pop to subcategory
* Change title "Gee" to "Standard Gravity (unit)" and add standard gravity per second
2025-09-29 Hanna Knutsson <[email protected]>
* Avoid slow display of extreme numbers (> 2^10000000) with calculate-as-you-type
* Add min/km and min/mile (pace)
* Fix output of extremely large exact number with unnecessarily low precision with PrintOptions::preverve_precision activated
* Restrict number of digits (10000) for extremely large numbers when saving variable to file
* Fix 10 in scientific notation for approximate number in variable value displayed with decimals
2025-09-25 Hanna Knutsson <[email protected]>
* Fix segfault when calculating log(a^n, a) with interval arthmetic is disabled
* Show warning and ask for confirmation when deactivating interval arithmetic in qalc
* (Re)activate interval arithmetic in qalc (if configuration from prevision version)
2025-09-24 Hanna Knutsson <[email protected]>
* Fix language option without encoding (without ".utf8" at end)
* Fix LANGUAGE and LANG variables for translation of definitions on platforms other than Window
* Fix scruple unit typo ("scuple")
* Hide questionable IUNS calorie unit
* Initialize tm_isdst with -1 to make time zone determination more predictable, and accurate, for time around when daylight saving changes
2025-09-22 Hanna Knutsson <[email protected]>
* Make titles for derived units without special symbols more consistent
* Automatically update calculate-as-you-type calculations every second when the expression contains now or uptime variable, or time() function
* Automatically calculate expression with "to"-operator even if it contains no other operator or number
* Fix id of uptime variable (was same as id for plus infinity)
2025-09-21 Hanna Knutsson <[email protected]>
* Add Kayser, Lambert, Foot-Lambert, Darcy, and Millidarcy units
* Fix unit selection for automatic conversion from single unit with quantity one in some cases (e.g. barye)
2025-09-19 Hanna Knutsson <[email protected]>
* Use mol as base unit for Einstein and clarify that Einstein refers to one mole of pohoton
* Match object name on words after underscore, e.g. oz in fl_oz (find/list command)
* Move (micro)einstein/(m²⋅s) to new category (molar flux) and add corresponding SI units
2025-09-18 Hanna Knutsson <[email protected]>
* Fix inequality with 1/f(x) on one side, e.g. "1/(x-2) <= 2"
* Add erg/(cm²⋅s) unit
* Lower max bit width in bitrot(), bitset(), and setbits() functions, and max steps in shift()
2025-09-17 Hanna Knutsson <[email protected]>
* Fix endless loop in Calculator::hasToExpression() with expression containing negative circled sans-serif digit dingbat
* Add (reduced) compton wavelength for muon, neutron, proton, and tau
* Add ƛ_C symbol to reduced compton wavelength and change alternative symbol for natural unit of length to ƛ_unit
* Stricter command argument in command() function
* Fix search term with more than one word and search for word preceded by parenthesis in title
* Specify minimal vector size for linearfit(), quadraticfit(), and cubicfit() functions
2025-09-15 Hanna Knutsson <[email protected]>
* More efficient reducing of vector size (fixes segfault when aborting plot with very large number of samples)
2025-09-14 Hanna Knutsson <[email protected]>
* Fix segfault when plot data generation is aborted before first y value has been calculated
2025-09-12 Hanna Knutsson <[email protected]>
* Fix segfault (infinite loop) in Calculator::findMatchingUnit() with "sr*Pa^2"
* Improve abortion of prime functions, and fix segfault when aborting prevprime() function
* Fix possible freeze when creating CompositeUnit with malformed expression (primarily relevant when parsing expression after "to" operator)
* Lower highest number of bits (to 10 000) in floating point conversion functions to avoid unresponsive application
2025-09-11 Hanna Knutsson <[email protected]>
* Fix value of Planck unit (was rounded to 7 decimals)
2025-09-08 Hanna Knutsson <[email protected]>
* Relocate qalc.history to $XDG_STATE_HOME (~/.local/state)
2025-09-03 Hanna Knutsson <[email protected]>
* Do not show calculate as you type result for data set function with "info" (default) as second argument
* Separate translation of "info" as data set argument from "info" as qalc command
* Add "simple" to-operator option for non-scientific notation and apply non-scientific notation (exp off) for "decimal"
2025-09-01 Hanna Knutsson <[email protected]>
* Show warning about default assumptions the first time an equation is solved, in qalc
* Show warning when trying to calculate logarithm of quantity with unit, or value with unit in exponent
* Show warning "(!)" when calculate as you type expression, in qalc, results in a question
2025-08-31 Hanna Knutsson <[email protected]>
* Fix segfault with very small numbers (when floatValue() should return zero), high number of bits, and insufficient precision, in floating point conversion
2025-08-30 Hanna Knutsson <[email protected]>
* Update calculation of fraction of year (with day counting basis 0 and 1) to match method used in spreadsheets other than Gnumeric
2025-08-29 Hanna Knutsson <[email protected]>
* Add output in scientific (sci), or engineering (eng), notation as "to"-operator option (e.g. 1000 000 to sci = 1E6; also affects use of unit prefixes, negative unit exponents, etc.)
2025-08-27 Hanna Knutsson <[email protected]>
* Fix dollarde() and dollarfr() functions
2025-08-22 Hanna Knutsson <[email protected]>
* Allow use of non-existing variables, without using quotation marks or backslash (now also supported in X variable value), in plot expressions, and set appropriate assumptions in all cases (this affects GUIs but not the plot() function)
2025-08-20 Hanna Knutsson <[email protected]>
* Parse 'p' in hexadecimal number as an operator (raise and multiply after parsing during calculation, e.g. 5p10 = 0x5 * 0x2^10), as with scientific E-notation, in order to improve display of parsed expression and avoid slow and very memory intensive calculations which might cause segfault in mpz_ui_pow_ui
* Fix poolvar(), ttest(), and cor() functions
* cor() and pearson() are the same function
* Simplify (do not use csum() function) poolvar(), covar(), meandev(), var(), varp(), rms(), geomean(), harmmean(), and weighmean() functions
* Change default quantile algorithm from 8 to 7
* Only allow positive values in geomean() and harmmean() functions
2025-08-16 Hanna Knutsson <[email protected]>
* Fix calculate as you type and indentation with prompt string containing Unicode characters, control characters, and/or escape sequences
* Add "save config" option (if disabled qalc.cfg is never automatically updated)
2025-08-11 Hanna Knutsson <[email protected]>
* Add symbols/abbreviations with variant name (US, UK) as suffix (shown as subscript), and hide corresponding symbol/abbreviation with variant as prefix
* Add TeX scaled point unit
* Change "ATA Pica" to "Johnson Pica" and "ATA Point" to "American Point", and make corresponding name/symbol changes
* Set minimum preferred prefix to 0 for metric ton
* Return first argument of uncertainty() function directly without evaluation, in midpoint() function
2025-08-09 Hanna Knutsson <[email protected]>
* Add TeX point, twip, and agate typography units
2025-08-03 Hanna Knutsson <[email protected]>
* Fix segfault when parsing "( \" followed by operator with RPN syntax
* Fix segfault in parsing of text argument in some cases (with RPN syntax)
2025-08-02 Hanna Knutsson <[email protected]>
* Add support for input of functions with more than one argument using RPN syntax
2025-08-01 Hanna Knutsson <[email protected]>
* Load exchange rates even if exchange rates updates is not enabled (compiled with --without-libcurl), and show error message when exrates command is used in this case
2025-07-29 Hanna Knutsson <[email protected]>
* Fix qError() function
2025-07-26 Hanna Knutsson <[email protected]>
* Fix completion of text string ending with capital E
2025-07-22 Hanna Knutsson <[email protected]>
* Fix input of inverse trigonometric function using Unicode power (e.g. sin⁻¹(x))
* Add support for input of exponent before argument of trigonometric function (e.g. sin²(x))
2025-07-21 Hanna Knutsson <[email protected]>
* Fix segfault during output of both approximate and exact logical OR value without (in)equality
* Do not add linebreak, in qalc, after OR outside of result display and when result does not contain (in)equality
* Fix display of result aborted because of time limit in some cases in qalc
2025-07-19 Hanna Knutsson <[email protected]>
* Return exact integers in more case in log() function
* Fix segfault during calculation of (in)equality with root() function with insufficient number of arguments
2025-07-17 Hanna Knutsson <[email protected]>
* Fix segfault with text argument containing potential text returning function, or variable containing text value
* Add support for "to 1/n" as alternative to "to fraction"
* Ask for interpretation of comma (when comma is not default decimal separator)
2025-07-10 Hanna Knutsson <[email protected]>
* Fix calculate as you type and indentation for show-mode-in-prompt with custom mode strings
2025-07-09 Hanna Knutsson <[email protected]>
* Support for input of second argument of log() function with a number before parenthesis (e.g. log153(23409) = log_153(23409) = log(23409, 153))
* Add lb and log_2 names to log2() function, and lg and log_10 to log10()
* Add micron unit
* Convert micron and kph before calculation
2025-07-08 Hanna Knutsson <[email protected]>
* Fix locale used for definitions when language option is set in qalc
2025-07-07 Marko Zajc <[email protected]>
* Do not colorize "E" in scientific E notation
2025-07-06 Cookie04DE <[email protected]>
* Add new binary prefixes (robi, quebi)
* Enable use of recently added SI prefixes in output by default
2025-07-02 Hanna Knutsson <[email protected]>
* Fix non-localized data set key properties for languages where translations for multiple territories is available (e.g. zh_CN and zh_TW)
* Use semicolon as argument separator in output when comma is used as digit group separator
* Add indentation to each line of error/warning/information message with newline character (e.g. data object property list) in qalc
* Fix dataset copyright translation (the last translation in the data file were used regardless of language)
* Hide class property in elements data set
2025-07-01 Hanna Knutsson <[email protected]>
* Customizable prompt in qalc
2025-06-21 Hanna Knutsson <[email protected]>
* Improve avoidance of random number precalculation in iterative functions
* Do not overwrite user definitions when running tests
* Use inverse when converting from s to Hz (and similar)
2025-06-20 Hanna Knutsson <[email protected]>
* Calculate random function in function argument occurring multple times in function definition
* Improve random function handling in "where" expression
2025-06-15 Hanna Knutsson <[email protected]>
* Improve check for functions not compatible with calulate-as-you-type (less false positives)
2025-06-13 Hanna Knutsson <[email protected]>
* Improve output for repeating decimals (do not repeat zero, e.g. in 1/81, and fix single repeating decimal with overline)
2025-06-02 Hanna Knutsson <[email protected]>
* Fix handling of a single vector argument in times() function
* Warn in save() function when function expression contains conversion using "to"
2025-06-01 Hanna Knutsson <[email protected]>
* Remove symbols/names from XOF, XAF
* Avoid using multiple exchange rates sources for conversion between two currencies
2025-05-31 Hanna Knutsson <[email protected]>
* Add symbols for THB, CRC, MVR, MUR, and NPR
* Fix name for TRY, KES, and PAB
* Replace SLL with SLE, and STD with STN
* Use Eswatini instead of Swaziland as country name
2025-05-29 Hanna Knutsson <[email protected]>
* Disable calculate as you type for expression containing export, load, or command function (in addition to save and plot)
2025-05-17 Hanna Knutsson <[email protected]>
* Only allow numbers and white space in exchanges rates
* Add fallback URL for exchange-api
2025-05-16 Hanna Knutsson <[email protected]>
* Only convert right-hand side value for (in)equalities, when converting to dimensionless or angle units (for original values without unit), or non-linear units
* Reset exact value (for dual approximation) when applying "to" command in qalc
* Show error when trying to perform multiple conversions at same time using "to" command (without preceding expression on the same line)
* Fix segfault when exact and approximate results (of equation) have non-matching format (should not occur)
2025-05-10 Hanna Knutsson <[email protected]>
* Fix angle conversion for (in)equalities (both sides where converted)
2025-05-01 Hanna Knutsson <[email protected]>
* Improve handling of user functions returning value with angle unit, in angle arguments
2025-04-30 howaboutuser <[email protected]>
* Add traditional Chinese translation
2025-04-22 Hanna Knutsson <[email protected]>
* Add support for units in limit() (separate units before calculating limit)
* Calculate limit for values containing infinity (not only infinite numbers) for definite integrals (do not return nonsense value for "integrate(x^2 exp(−x^2/(2m^2)),−infinity m,infinity m,x)")
* Treat approximate integer as integer for dimension, fix positive rational non-integer dimension not resulting in error, and do not test if number of steps is a positive integer if the sixth argument is negative, in genvector()
* Remove quotation marks (at beginning and end) from default value of text argument, even if the resulting text string is not empty
2025-04-12 Hanna Knutsson <[email protected]>
* Fix default separator in load() and export() functions
* Show a warning when it appears as if the user tries to convert part of an expression (when there is an closing bracket without an opening bracket after "to")
2025-04-03 Hanna Knutsson <[email protected]>
* Add boolean argument for reversed conversion (to text string) in bin(), oct(), dec(), hex(), and base()
* Improve handling of function, returning text string, in text argument
* Fix µ_B name/symbol for Bohr magneton
* Fix name for gal/s and planck/bohr
2025-03-30 Hanna Knutsson <[email protected]>
* Fix abort using SIGINT (Ctrl+C) during factor command (and some other commands)
2025-03-23 Hanna Knutsson <[email protected]>
* Fix incorrect limit without direction for expression containing tan(x) when value to approach is pi/2
* Fix warning for some limits with tan(x)
* Do not return zero for tan(pi/2)-tan(pi/2)
2025-03-19 Hanna Knutsson <[email protected]>
* Fix assumption conflict in solve("v3"/"r1"*"r2"+"v3"=2.5,"v3") - set do_polynomial_division=true in solve() and use same simplification for factorization test during solving of equation regardless of state of do_polynomial_disivison (both changes fixes the issue separately)
* Use LANGUAGE instead of LANG environment variable on Windows in order to avoid changing regional format settings
* Add "language" option in qalc
* Fix angle unit in output for "mode" command in qalc
2025-03-18 Rafael Franco <[email protected]>
* Fix autocalculate input offset with readline vi mode
2025-03-09 Hanna Knutsson <[email protected]>
* Support all real numbers in binomial(), comb(), and perm() functions (and use binomial() in the other two functions)
* Fix non-localized data set key properties (when localized version is available)
* Make copyright text of Elements and Planets data sets translatable
2025-03-08 Hanna Knutsson <[email protected]>
* Improve decision to use parentheses for tab/ctrl+i result insert in qalc
2025-03-07 Hanna Knutsson <[email protected]>
* Improve simplification and speed in diff() function for high orders by applying polynomial division and factorization between iterations
2025-03-03 Hanna Knutsson <[email protected]>
* Add support for display of repeating decimals using overline (vinculum) instead of ellipsis
* Remove confusing MRC name/symbol from MR (memory recall) variable
2025-02-20 Hanna Knutsson <[email protected]>
* Convert turn left over after unit conversion to radians (e.g. "10000Nm*250*rpm to W")
2025-02-17 Hanna Knutsson <[email protected]>
* Split function description into multiple text blocks, at newline, in help/info output in qalc in order to avoid blank lines when output does not fit terminal screen
2025-02-13 Hanna Knutsson <[email protected]>
* Do not convert to inactive unit
* Fix calculate as you type with RPN syntax (update when last character is an operator)
* Support calculate as you type with RPN stack enabled
* Fix "where" operator using a saved equation (the "where" expression is a variable containing an equality or inequality)
* Add Ctrl+I shortcut for input of the previous result, either with text of value, or as temporary variable (replaced in history on exit) for approximate or long values
2025-02-01 Hanna Knutsson <[email protected]>
* Return x=a*e^(i*r) (with r instead of n), with a warning informing the user that r represents any real number, for abs(x)=a
2025-01-31 Hanna Knutsson <[email protected]>
* Do not show value twice, if not translated, in description of plot function
2025-01-19 Hanna Knutsson <[email protected]>
* Fix solve() function with replace() function as first argument (fixes solve2() function)
2025-01-18 Hanna Knutsson <[email protected]>
* Do not show couldn't write preferences warning if file is a symlink
2025-01-08 Hanna Knutsson <[email protected]>
* Avoid recalculation of old calculate as you type expression when expression is empty, or calculation of empty expression before any calculation has occured, and calculation or parsing settings have been modified
* Add description to ans variable
2025-01-03 Hanna Knutsson <[email protected]>
* Fix rounding in 1/# conversion to integer (e.g. "1/2 to 0.99")
2025-01-02 Hanna Knutsson <[email protected]>
* Always use four digits for year in date (e.g. "0064-07-18" instead of "64-07-18")
* Support input of date using dd-mm-yyyy format
2024-12-27 Hanna Knutsson <[email protected]>
* Fix solving of x^4-4x^3+10x^2-12x+1=0, and similar, in exact mode
* Use hours or minutes as default unit for conversion to time unit of expression with time format but no units (e.g. "0:00:12 to s")
2024-12-24 Hanna Knutsson <[email protected]>
* Fix dual/auto approximation when unable to find exact solution to equation
* Fix unability to find approximate solutions to some high degree equations (e.g. "x⁴ − 4x³ + 10x² − 12x = −1")
2024-12-12 Hanna Knutsson <[email protected]>
* Fix terminal columns and rows when piping/redirecting input (call rl_initialize() even if readline() is used)
2024-12-09 Hanna Knutsson <[email protected]>
* Add factor() function (returns integer or polynomial factors in a vector)
* Fix automatic variable detection in select()
2024-12-08 Hanna Knutsson <[email protected]>
* a(i) and a[i] syntax (the latter with restrictions for a) for element in vector
* Set ans variable to solution(s) of equation (as if solve() were used)
2024-12-04 Hanna Knutsson <[email protected]>
* Fix compilation without readline
2024-11-27 Hanna Knutsson <[email protected]>
* Fix ans variables with calculate as you type activated
2024-11-25 Hanna Knutsson <[email protected]>
* Add plot() function example, and support expression in y=f(x) format
2024-11-20 Hanna Knutsson <[email protected]>
* Fix test of equation solution in some cases (fixes "sqrt(x-1/x)+sqrt(1-1/x)-x=0" when approximation is not exact)
* Fix current value for "help set approximation" when approximation is exact but auto/dual approximation is not reset (after "exact" command)
2024-11-18 Hanna Knutsson <[email protected]>
* Option to specify number of displayed significant digits, instead of using precision (if PrintOptions::max_decimals < -1, digits = -max_decimals)
2024-11-15 Hanna Knutsson <[email protected]>
* Improve decision to automatically convert unchanged quantity with unit
* Fix segfault with very large integer raised by very large integer (integer length multiplied by exponent overflows long long int), e.g. "fs^EiK"
* Fix wrong output of converted unit with non-numerical exponent in some cases (e.g. ft^x converted to m without expansion)
* Improve calculation of formatted string length (for filtering of multiple results in Calculator::calculateAndPrint())
* Remove "timed out" alternative results in Calculator::calculateAndPrint()
* Place "approx." on same line as value (instead of as equals sign) in qalc
* Display "aborted" for long aborted result in qalc
2024-11-11 Hanna Knutsson <[email protected]>
* Fix case conversion of µ to M and similar (compare initial text string when converted back to lower case)
2024-11-06 Hanna Knutsson <[email protected]>
* Add multilimit() function
2024-11-06 Stefan Gerlach <[email protected]>
* Fix issues building with MSVC
2024-11-02 Hanna Knutsson <[email protected]>
* Fix spacing after implicit mulitplication interpretation question in qalc
* Fix formatting when commands/expression is read from file before interactive mode
2024-10-27 Marko Zajc <[email protected]>
* Add triple() function
2024-10-19 Hanna Knutsson <[email protected]>
* Fix clear using Ctrl+L when input line is not empty
* Improved detection of charsets other than UTF-8
2024-10-18 Hanna Knutsson <[email protected]>
* Add calculate as you type (disabled by default) to qalc
2024-10-14 Hanna Knutsson <[email protected]>
* Improve ability to abort matrix functions (e.g. identity() with large argument)
2024-10-07 Hanna Knutsson <[email protected]>
* Do not show warning for logarithmic ratio unit, with quantity, as function argument
2024-09-29 Hanna Knutsson <[email protected]>
* Fix inability to abort randpoisson() with very high rate value
2024-09-28 Hanna Knutsson <[email protected]>
* Fix crash with empty vector in plot function, e.g. plot([])
2024-09-20 Hanna Knutsson <[email protected]>
* Do not show single input decimal number as only combined fraction if fraction format is set to dual
* Apply fraction format also for integers if set to percent, permille, or permyriad
* Add (hidden) support for percent, permille, and permyriad fraction formats in qalc
2024-09-18 Hanna Knutsson <[email protected]>
* Fix segfault with recursive (self-referencing) function
2024-09-17 Hanna Knutsson <[email protected]>
* Fix save definitions option
* When questions are avoided (when reading commands/expression from file or in result only mode), create temporary objects for "variable" and "function" commands, do not ask before replacing object, and fail without question for illegal names
* Avoid asking questions when reading commands/expressions from file before interactive mode
* Fix line break for output from command line expression or file, before interactive mode
* Update "exp" option documentation to reflect that custom negative values are allowed
* "unkeep" command (reverse of "keep")
2024-09-16 Hanna Knutsson <[email protected]>
* Remove unnecessary calculation for output of integers with non-decimal number base (fixes delay with very high precision)
* Fix input of negative exponent in scientific e notation with rpn syntax
2024-09-12 Hanna Knutsson <[email protected]>
* Add nmi symbol for nautical mile
2024-09-01 Hanna Knutsson <[email protected]>
* Do not show single input decimal number as fraction by default if small or large enough to be displayed using scientific notation
2024-08-31 Hanna Knutsson <[email protected]>
* Support abbreviations for scientific (sci) and engineering (eng) as options for scientific notation (exp)
2024-08-30 Hanna Knutsson <[email protected]>
* Fix superfluous "did you mean..." warning for two functions with parenthesis without separator (e.g. "atan2(a,b)atan2(c,d)")
* Fix definite integral for 1/sqrt(1-x^2), with lower limit <= -1 and/or upper limit >= 1, and similar (temporary workaround)
2024-08-10 Hanna Knutsson <[email protected]>
* Fix parsing of 1°2'3" as 1°+2'+3" (and similar)
* Update nounit() function description
2024-08-04 Hanna Knutsson <[email protected]>
* Add Calculator::parseToExpression()
* Minor fixes for "to" conversion in Calculator::calculateAndPrint()
2024-07-24 Hanna Knutsson <[email protected]>
* Add free_thread_caches() function
* Place n and C last in variable isolation priority order
* Fix interpretation of mH₂O, and related units with Unicode subscript, in qalc
* Fix memory leaks
2024-07-14 Hanna Knutsson <[email protected]>
* Fix saving of percentage interpretation in qalc
2024-07-09 Marko Zajc <[email protected]>
* Disable load() and export() functions when --disable-insecure compile option is enabled
* Fix a potential segfault when freeing DataObject
2024-07-09 Hanna Knutsson <[email protected]>
* Improve compatibility with MSVC (including replacement of variable length arrays)
* Show error for unrecognized command line options when expression is separated from options by "--"
2024-07-03 Hanna Knutsson <[email protected]>
* Fix Calculator::reset()
2024-07-01 Hanna Knutsson <[email protected]>
* Improve handling of "where" expression when variable name is placed after inequality symbol
* Improve handling of "where" expression in exact mode
* Improve removal of n in exact mode
2024-06-27 Hanna Knutsson <[email protected]>
* 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 <[email protected]>
* Always return false for 1/f(x)=0 (not f(x)=infinity)
* Do not solve ln(f(x))=-infinity
2024-06-15 Hanna Knutsson <[email protected]>
* Add therm and thermie units (IT, ISO, and U.S.)
* Use exact Btu relation
* Use symbol "cal" for thermochemical (instead of international table) calorie
* Add IUNS calorie
* Fix input of scientific E-notation using lowercase e in numbers using concise interval notation, in expressions
2024-06-11 Hanna Knutsson <[email protected]>
* Always allow "ignore comma" option (will change default decimal separator if not dot), and show more informative error message for "ignore dot" if decimals separator is dot
* Do not mark decimal separator question as asked after percentage calculation has been asked
2024-06-10 Hanna Knutsson <[email protected]>
* Add MathStructure::representsFinite() to improve handling when unknown if value is real or complex
* Fix "bit width" and "signed integer" arguments in setbits()
2024-06-06 Hanna Knutsson <[email protected]>
* 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 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
2024-06-05 Hanna Knutsson <[email protected]>
* Fix negative-size-param (crash) when a variable name/symbol with more than 20 characters is used in "where" expression
* Fix approximation mode changed with AUTOMATIC_APPROXIMATION_SINGLE in calculate_dual_exact (affects calculate-as-you-type in qalculate-qt)
2024-05-30 Hanna Knutsson <[email protected]>
* Update values of physical constants with CODATA 2022 values; Change title and names/symbols of weak mixing angle (prepend "sin2" to theta variants and change order)
2024-05-26 Hanna Knutsson <[email protected]>
* Return exact negative integers in log10()
* Decrease (potentially) number of false negatives for represents... functions
* Add descriptions for is... and represents... functions
* Fix RoundFunction::represents...
* Check for exact solution equaly simplified as approximation value in calculate_dual_exact when approximation is AUTOMATIC_APPROXIMATION_SINGLE
* Fix confusing behaviour of complex forms other than rectangular in some case with equalities and inequalities
2024-05-23 Hanna Knutsson <[email protected]>
* Remove n from equation solution if possible using assumptions of x
* Fix auto/dual approximation with "where" expression
* Fix Number::getCentralInteger()
* "n > a" equals "n >= floor(a)", if a is not an integer, and equivalent for other inequality operators
* Fix handling of where expressions with multiple inequality statements for a single variable, e.g. "where x>0 and x<10" (parsed expression were as aborted, and calculated value always 1)
2024-05-19 Hanna Knutsson <[email protected]>
* Fix potential (but unlikely) segfault when integrating expression with abs() and empty ln()
* Add allroots() function
* Fix unnecessary parenthesis (with wrong color for closing bracket) around unit with exponent for colorized HTML output (affects qalculate-qt)
2024-05-12 Hanna Knutsson <[email protected]>