Up to [cvs.NetBSD.org] / pkgsrc / math / qalculate
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
*: recursive bump for icu 76 shlib major version bump
*: revbump for icu downgrade
*: recursive bump for icu 76.1 shlib bump
qalculate: update to 5.1.1 2024-05-07 Qalculate! version 5.1.1 released * This version fixes a^(f(x)) = (a^b)^(g(x)), where b equals -1, 2/3, 2 or 3, and f(x) does not equals g(x). Only libqalculate has been updated. 2024-05-06 Qalculate! version 5.1 released * Support for solving equations containing if() function * Support for solving root(a, x)=b (requires rational value for ln(a)/ln(b)) * New functions: powertower() and multiples() * New units for solar radius, mass, and luminosity * Ask for the desired interpretation the first time percent addition is used (e.g. 100 + 10% equals 110 or 100.1) * Use parentheses for exponent using scientific notation (with power of 10) * Support integer factorization of integers in matrix/vector, and of numerator and denominator in rational number * Relaxed conditions for (x^a)^b = x^(a × b) and x^a × x^b = x^(a + b) when complex numbers are deactivated (fixes segfaults) * Fix (ax + n)^2 > 1, where n is even and a is not 1, returning false * Fix setbits() function * Fix Number::equals(0, ..., true) when number is infinite (affects replace() function) * Add two's complement input and binary bits to preferences, and preserve these settings when leaving programming keypad (GTK, Qt) * Download button in dialog shown when new version is available, on Windows (GTK, Qt) * Fix AltGr (primarily for input of operators) on Windows (GTK, Qt) * Option to show parsed expression in result field (GTK) * Portuguese (Portugal) translation (GTK) * Fix updating of self-contained GNU/Linux binaries from GUI (GTK) * Improved history list efficiency (Qt) * Hide expression tooltip (after 300 ms) when input resumes, if delayed expression status is enabled (Qt) * Minor bug fixes and feature enhancements ALSO force gnu++17 for ICU75
revbump after icu and protobuf updates
*: recursive bump for gnutls p11-kit option (existing installations need the bl3.mk included, but it's now only optionally included)
qalculate: update to 5.0.0. 2024-03-10 Hanna Knutsson <hanna.knutsson@protonmail.com> * Do not apply "read precision" setting to integer exponents for values with units * Change from line to point (or dot) plot style for data with many discontinuous points 2024-03-08 Hanna Knutsson <hanna.knutsson@protonmail.com> * Replace special colorize values, for selection of Unicode exponents, with different use_unicode_signs values * Use Unicode exponents, in MathStructure::print(), if format is false, even if tagtype is not TAG_TYPE_TERMINAL * Fix Unicode exponents with number bases < 10 2024-03-01 Hanna Knutsson <hanna.knutsson@protonmail.com> * Improve parsing of text arguments - fix quotation mark replaced by feet or inches and % replaced by percent variable, remove quotation marks when parts of argument are quoted separately (a "b" "c" = "a b c"), and do not replace quoted curly brackets in expression unless necessary * Do not use sexagesimal output format for very large numbers (when scientific notation is necessary for integer part) and reduce maximal number of decimals (for last position when previous positions is non-zero) * Handle case when initial guess results in division by zero, and avoid unnecessary error messages, in newtonsolve() 2024-02-27 Hanna Knutsson <hanna.knutsson@protonmail.com> * Fix BTC exchange rate from coinbase, if available from other source, not used before restart after exchange rates update, and do not mark BTC as hidden (places the unit in submenu in GUIs) 2024-02-20 Hanna Knutsson <hanna.knutsson@protonmail.com> * Support "where" statements, without "where", before main expression, e.g. "a=2, b=3; a^b" 2024-02-18 Hanna Knutsson <hanna.knutsson@protonmail.com> * Change handling of "where" expression (create temporary variables) to allow previously undefined variable names and to avoid confusing output of parsed expression (e.g. redefined "c" was displayed as SpeedOfLight) 2024-02-16 Hanna Knutsson <hanna.knutsson@protonmail.com> * Detect spelling errors in qalc options (when using set command) 2024-02-14 Hanna Knutsson <hanna.knutsson@protonmail.com> * Change handling a vectors in multiple function arguments (of non-vector type) - return vector instead of matrix, require equal number of elements, and use the same vector index for all argument for each function instance (e.g. atan2([1 2], [3 4]) = [atan2(1, 3) atan(2 4)] * Set handle vector property by default, for text, date, and boolean arguments, and for arguments, in global non-builtin functions, without specified type * Enable parsing of vectors for text arguments * Add foreach() function (simplified for function, using vector instead of counter) * Add setbits() function * Add flip() function (changes order of elements in vectors and matrices) * Add "binary bits" option in qalc 2024-02-08 Hanna Knutsson <hanna.knutsson@protonmail.com> * Add LightSecond, LightMinute, and LightHour units * Add integerDigits(), digitGet(), and digitSet() functions * Add more rounding methods and replace PrintOptions::round_halfway_to_even (and truncate time zone value hack) with PrintOptions::rounding * Add PrintOptions::duodecimal_symbols (replace time zone value hack) * Replace PrintOptions::lower_case_e with PrintOptions::exp_display and add option for scientific notation without E (10^x) * Add ParseOptions::binary_bits (replaces non-boolean values for twos_complement and hexadecimal_twos_complement) * Add keep command, which makes variable or function non-temporary, in qalc 2024-02-02 Hanna Knutsson <hanna.knutsson@protonmail.com> * Check for potential spelling mistakes in unrecognized qalc commands * Show error messages for command without argument, if not a reasonable expression, even if "/" is not used 2024-01-31 Hanna Knutsson <hanna.knutsson@protonmail.com> * Add support for hexadecimal floating-point literals using 0x...p... notation (0x1.4p3 = 0x1.4 * 2^3 = 10) * In dsolve(), assume that C is real if y is (fixes dsolve(diff(y, x) = y)), and, if y cannot be isolated completely, return resulting equation in solve() function (e.g. dsolve(diff(y , x) = y)= solve(ln(y) = x + C, y)) 2024-01-30 Hanna Knutsson <hanna.knutsson@protonmail.com> * Add support for a...b syntax for sequence (vector) of integers * Add support for j:k (for sequence of numbers with increment 1), and j:i:k (with increment i) syntax * Add colon() function (used by new syntax) * Use parentheses for number with scientific notation in more cases 2024-01-29 Hanna Knutsson <hanna.knutsson@protonmail.com> * Do not list reactivated global objects when using "list" command (without argument) * Recognize function name with parentheses appended in argument of "delete" command (useful for deletion of function with same name as variable or unit) * Add bitset() and bitget() functions 2024-01-27 Hanna Knutsson <hanna.knutsson@protonmail.com> * Support scientific notation using 10^x instead of e notation for non-html output and in qalc 2024-01-26 Hanna Knutsson <hanna.knutsson@protonmail.com> * Allow specification of numbers of bits for two's complement input * If number of bits are not enough for output of binary or hexadecimal number, use default, instead of minimal, number of bits 2024-01-22 Hanna Knutsson <hanna.knutsson@protonmail.com> * Detect potential spelling errors in suspicious expressions 2024-01-21 Hanna Knutsson <hanna.knutsson@protonmail.com> * Fix "set cplxform cis" * Fix conversion to angle unit for complex angle, cis and polar forms * Improve output of complex angle form in some cases * Do not display exact result for dual approximation if parsed expression differs (can occur in some cases with conversion to angle unit), and in some cases where the only differences is how exact numbers in function arguments are 2024-01-18 Hanna Knutsson <hanna.knutsson@protonmail.com> * Allow multiple options, separated by semicolon, with a single --set (-s) command line argument 2024-01-14 Hanna Knutsson <hanna.knutsson@protonmail.com> * lambertw(x*e^x, 0)=x if x>=-1 2024-01-11 Hanna Knutsson <hanna.knutsson@protonmail.com> * Fix -no... command line options when using double dash, e.g. "--nocurrencies" * Avoid radian unit missing error message with --nounits command line option * Exit with error status code if command line expression generates error 2024-01-03 Hanna Knutsson <hanna.knutsson@protonmail.com> * Allow values higher than 1 (true) to specify line width of plot grid 2023-12-28 Hanna Knutsson <hanna.knutsson@protonmail.com> * Add support for "decimals" "to"-conversion (display as decimal fraction) * log(x, 1) is always zero when x has non-zero imaginary part 2023-12-25 Hanna Knutsson <hanna.knutsson@protonmail.com> * Fix log(1, 1) 2023-12-23 Hanna Knutsson <hanna.knutsson@protonmail.com> * Improve handling of zero solution and initial guess in newtonsolve() and secantsolve(), and check validity of solution 2023-12-18 Hanna Knutsson <hanna.knutsson@protonmail.com> * Fix "to"-conversion to prefix and add "prefix" conversion option (for optimal prefix) * Fix parsed expression repeated in result with some functions * Allow omission of equals zero in solve() function * Convert to simple fraction if value only contains integers, when converting to fixed denominator * Improve handling of text arguments with default value consisting of two double quotes (empty string) 2023-12-16 Hanna Knutsson <hanna.knutsson@protonmail.com> * Fix segfault in newtonsolve() and secantsolve() when equation does not contain variable * Algebra and calculus functions represents scalars if all arguments do 2023-12-14 Hanna Knutsson <hanna.knutsson@protonmail.com> * Add support for two's complement input (short settings "twosin" and "hextwosin") in qalc * Fix current value of hextwos in mode help
qalculate: cleanup
qalculate: don't accidentally find doxygen and therefore build docs
qalculate: update to 4.9.0 4 years of updates, see ChangeLog for details
*: recursive bump for icu 74.1
*: bump for openssl 3
revbump after textproc/icu update
massive revision bump after textproc/icu update
*: bump PKGREVISION for libunistring shlib major bump
revbump for textproc/icu update
revbump for icu and libffi
revbump for boost-libs
revbump for boost-libs
revbump for textproc/icu
*: Recursive revbump from textproc/icu-68.1
Revbump for icu
revbump after updating security/nettle
revbump after boost update
Fix build with newer automake.
Recursive revision bump after textproc/icu update
*: recursive bump for libffi
all: migrate several HOMEPAGEs to https pkglint --only "https instead of http" -r -F With manual adjustments afterwards since pkglint 19.4.4 fixed a few indentations in unrelated lines. This mainly affects projects hosted at SourceForce, as well as freedesktop.org, CTAN and GNU.
*: Recursive revision bump for openssl 1.1.1.
*: Recursive revbump from devel/boost-libs
Use ICONV_CONST from autotools instead of hardcoding OS versions Use ICONV_CONST instead of hardcoding osversions, this is more portable. Fixes build on SmartOS.
qalculate: update to 3.5.0 10 years worth of development.
qalculate*: change maintainer to pkgsc-users@NetBSD.org OKed adam@
*: Move SUBST_STAGE from post-patch to pre-configure Performing substitutions during post-patch breaks tools such as mkpatches, making it very difficult to regenerate correct patches after making changes, and often leading to substituted string replacements being committed.
Drop CVP workaround for Clang, with 3.8 the memory use has gone down enough.
LLVM's correlated value propagation pass is known to require a lot of memory and CPU time for certain input. Provide a variable (CLANG_NO_VALUE_PROPAGATION_PASS) for selectively disabling it in those places known to trigger it.
The Clang 3.4RCs started to use slightly more memory when compiling Calculator.cpp, but it was enough to push it over 2GB. So disable optimisation for now.
Add -D_LCONV_C99 on SunOS to pick up extended lconv support.
* .include "../../devel/readline/buildlink3.mk" with USE_GNU_READLINE=yes are replaced with .include "../../devel/readline/buildlink3.mk", and USE_GNU_READLINE are removed, * .include "../../devel/readline/buildlink3.mk" without USE_GNU_READLINE are replaced with .include "../../mk/readline.buildlink3.mk".
recursive bump from libffi shlib major bump (additionaly, reset PKGREVISION of qt4-* sub packages from base qt4 update)
"user-destdir" is default these days
Recursive PKGREVISION bump for libxml2 buildlink addition.
Recursive bump for pcre-8.30* (shlib major change)
Revbump for a) tiff update to 4.0 (shlib major change) b) glib2 update 2.30.2 (adds libffi dependency to buildlink3.mk) Enjoy.
Recursive bump for math/cln buildlink addition.
recursive bump from gettext-lib shlib bump.
update to 0.9.7 changes: -General build updates and bug fixes -Bug fix for segfaults with some uses of integrate() -New Simplified Chinese translation -Fix crash with unsupported operator in RPN syntax -Fix reduction of vector size
Bump revision after CLN update. Addresses PR pkg/42006.
Fix breakage after CLN update.
-make this compile with 64-bit time_t The fix is suboptimal because the y2037 problem remains. It would be better to either -extend the "cln" lib for 64-bit integers (but the code is a mess already) or -split the time_t into a lower/higher part and convert them seperately, which is less than elegant. -add a MESSAGE telling that gnome-vfs or wget are needed to fetch currency exchange rates automatically, so the (wrong) wget dependency can be removed from child pkgs bump PKGREVISION
Recursive ABI depends update and PKGREVISION bump for readline-6.0 shlib major change. Reported by Robert Elz in PR 41345.
Improve COMMENT and DESCRiptions. No longer identical. Don't say Linux since this is for other platforms too. Don't mention GUI interface in the description for the console package. By the way, the gtk version is really GNOME, but upstreams calls it gtk.
Add DESTDIR support.
update to 0.9.6 changes: -Use Lambert W to solve more equations and avoid infinite loop when solving some equations -More data on elements -Fix simplification of (1-1/x)^3 and similar -Fix clumsy mistakes in with prefixes leading to crashes -Fix parsing of unit expressions (when converting) such as W/(m K) -Add more exact values for sin() and cos() and avoid floating point underflow by, in approximate mode, checking against the value of pi -Always input decimal separator sign on keypad separator press -Fix crash when expression entry reclaims focus if compiled with optimizations (GTK+) -New units: typographic units, pouce, pied du roi, grams of TNT and tons of TNT -New functions: lambertW(), addDays(), addMonths(), addYear(), addTime(), isNumber(), isReal(), isRational(), isInteger(), representsNumber(), representsReal(), representsRational(), representsInteger() -New variable: omega constant -Other minor fixes and enhancements also fix wrong inclusion of scrollkeeper/bl3
Drop the pthrea check in configure completely and just set PTHREAD_AUTO_VARS.
Changes 0.9.5: * French translation (not fully complete yet) * Return value in save() and add "name := value" as shortcut * Integer factorization * Interpret 0x[0-9,a-f] as hexadecimal number (do not require first digit to be 0-9) * Add "Engineering" display mode * Several fixes to display of units and prefixes * Show value for variables without title in expression completion * New functions: cross(), heaviside(), rectangular(), triangular(), ramp() kronecker(), sigmoid(), and logit() * Use radius as argument for circumference() * Add optional upper and lower limit arguments to integrate() for definite integrals * Fix precision in logn() * Ability to set shortcuts for meta modes (KDE) * Make separate options for "Sort Minus Last" and "Negative Exponents" in numerical display menu * Add "Edit Expression", "Edit Result", and "Insert Result Variable" to history context menu (KDE) * Global shortcut for show/hide (KDE) * Use localized comma for insert matrix/vector * Remove use of libgnomeui completely and add --with-libgnome configure option * Fix parsing of "x!)!" * Use Julian year for light-year value * Add several accelerator keys (GTK+) * Connect "Exp" button Exp RPN operation and add Ctrl+Shift+E shortcut * Fixes for old KDE and Qt versions * New command line options for qalc: -terse (-t), -nodefs (-n), -nocurrencies, -nodatasets, -nofunctions, -nounits, -novariables
Sweep pkgsrc and convert packages that included intltool/buildlink3.mk to use instead "USE_TOOLS+=intltool". Remove now unused intltool/buildlink3.mk
Changes 0.9.4: * True RPN mode with stack manipulation * Dutch translation (from Jaap Woldringh and the Dutch KDE translation team) * New application icons (from Thomas Lübking) * API documentation (approximately halfway) * Enhanced edit matrix/vector dialogs, with widget for GTK+ * View/edit/insert matrix/vector menu items (GTK+) * Combined dialog for number bases in result and expression (GTK+) * Fix comma as decimal sign with KDE GUI * "Convert to Best Unit" and "Convert to Base Units" was swapped (KDE) * Ignore commas (with dot as decimal sign) in numbers and option to use dot as thousands separator * Fix removal of factors in simplifaction ("1 kg m/s" was simplified to "1000 m/s") * Fix libqalculate.so unresolved symbols * Fix bug that caused all number arguments to require numbers to be rational * Interpret 0x..., 0o... and 0b... as hexadecimal, octal and binary numbers, respectively, when base is decimal * Ability to represent numbers as 0x0feff (for HEX), 0b0011101010 (for BIN) * Set vectors and matrices as the first argument by default * New functions * Fix integration * New unit: psi * New name format in data files for more flexible translations * Change some dubious mathematical wordings
Third attempt to get a correct PLIST for qalculate: Add locale message for sv. Bump revision. Fix configure to detect libintl correctly on NetBSD. Don't remove the entry again, fix the script if necessary!
Fix PLIST, bump PKGREVISION, remove BROKEN_IN.
Mark as BROKEN_IN pkgsrc-2006Q1 according to ftp://ftp.NetBSD.org/pub/pkgsrc/misc/kristerw/pkgstat/i386-3.0/20060501.1050/broken.html
Uses C++.
Fix PLIST. Bump revision.
Changes 0.9.3: * Avoid floating point overflow and underflow * Do not use "Read Precision" in plot * cos(x*pi*rad) equals 1 if x is even, not -1 * isodate(), localdate(), timestamp(), stamptodate() functions * Fix show ending zeroes * Fix prefixes with automatic simplification/factorization * Approximate comparison * ...and some more...
Fix PLIST. LIBTOOL_OVERRIDE is done by default, remove it as well. Bump revision.
The i18n file is not installed on NetBSD, so removed it from the PLIST. Bumped PKGREVISION.
Changes 0.9.2: - Enhanced factorization, with square free factorization of rational multivariate polynomials - New simplification using the enhanced factorization - Much more efficient determinant and matrix inverse calculation - Greatly enhanced and reworked solving of equations and inequalities - More efficient evaluation avoiding recalculations - Generally enhanced and more correct algebraic functionality - Faster calculation of powers with large exponent and base close to one - Option to automatically simplify or factorize - Option to warn about denominators assumed non-zero - Fix negative exponents with lower-case e - Fix fetching of exchange rates with gnome-vfs < 2.10 - Polynomial functions: coeff(), lcoeff(), pcontent(), degree(), etc. - Fix ln(e^x) - Display "x < 3 && x > 1" as "1 < x < 3" - Display "&&" and "||" as "and" and "or" by default - Fix display of fractions in "Decimal (Try Exact)" mode - Compile without errors or warnings with -pedantic and -Wextra - Unicode fixes - ...and many more minor fixes and enhancements (and probably some new bugs)...
Match PKGCONFIG_OVERRIDE with reality. Replace hard-coded -lpthread reference to unbreak qalculate subpackages on DragonFly. Bump revision.
Add missing file to PLIST. Bump PKGREVISION.
Recursive revision bump / recommended bump for gettext ABI change.
Bump BUILDLINK_RECOMMENDED of textproc/expat to 2.0.0 because of the shlib major bump. PKGREVISION++ for the dependencies.
pthread user => include pthread.b3.mk. Use PTHREAD_* instead of hard-wired -lpthread. Use sys/wait.h on DragonFly as well.
Changes 0.8.2: * Use gnomevfs instead of wget if available * Allow user to specify wget options * Update currencies
Include intltool/buildlink3.mk to pull in all dependencies required to run intltool.
Changes 0.8.1: Remove requirement glib-2.0 >= 2.4 and require libxml2 >= 2.3.8 Do not use unicode prefix names for long names Add even(), odd() and shift() functions and operators "<<" and ">>" Compile with kdelibs and Qt >= 3.1 (KDE) Add glib-2.0 and libxml-2.0 to PKG_CHECK_MODULES (KDE) Display prefix in object info (KDE) Confirm overwriting result and plot image files (KDE) Use KIO instead of wget for fetching exchange rates (KDE) Close gnuplot and disable save button when no series defined (KDE)
Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions: USE_GNU_TOOLS -> USE_TOOLS awk -> gawk m4 -> gm4 make -> gmake sed -> gsed yacc -> bison
Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
Changes 0.7.2: * Show base (if not decimal, hexadecimal or non-standard) as subscript * Use singular instead of abbreviated name for completion * Fix "Convert result" button * Use the last operator for leftover stack values * Fix RPN crash and don't add lonely stack value to itself * Workaround freeze with message dialog without buttons
This package uses intltool; include intltool/buildlink3.mk.
Changes 0.7.1: * Only use unicode character if available in the used font Fixes plus sign not displayed correctly in keypad, and wide keypad * Do not round exact integers not in exponential format. Fixes display of large numbers in non-decimal number bases * Fix crash on systems, such as amd64, where size_t is not long int * Do not update plot data when not changed * Rearrange plot dialog and make x variable separate for each plot function * Generate vector function * Fix some cases with nested trigonometric functions by adding option to set default angle unit to none, to allow angle unit in argument * Try with assumptions set to unknown in solve function if not successful * Be more picky in comparisons with units * Fix comparison of unit with unknown * Fix 0.5!
Qalculate! is a modern multi-purpose desktop calculator for GNU/Linux. It is small and simple to use but with much power and versatility underneath. Features include customizable functions, units, arbitrary precision, plotting, and a graphical interface (GTK+) that uses a one-line fault-tolerant expression entry (although it supports optional traditional buttons).
Initial revision