Answer

问题及解答

[Calculator]开发历史

Posted by haifeng on 2019-10-11 11:01:07 last update 2021-03-21 20:47:53 | Edit | Answers (0)

Calculator.exe 中可使用 :dev_history 打印开发的历史

>> :dev_history
Version: 0.441
Date: 24/11/2018
        exp(x)

Version: 0.442--0.443
Date: 04/01/2019
        log(x), ln(x), and fixed some bugs, such as operator==,
Now we can compare .9==0.9 and so on.

Version: 0.444
Date: 04/01/2019
        Variables can be defined.
        fix_variables(1)
        a="1+2/3"
        a=2+3*9
        :clear

Version: 0.445
Date: 08/03/2019
        Add two functions:
        binary2decimal()
        decimal2binary()

Version: 0.446
Date: 17/03/2019
        Add extra file in project, functions.h:
        which contains self defined functions.
        Fixed function sqrtn()

Version: 0.447
Date: 21/03/2019
        :change the function declaration IntDivision(string &, string &) to IntDivision(const string &, const string &)
        And change power operation to fast algorithm.

Version: 0.448
Date: 01/04/2019
        :Improved the function plus(), and add char ( in operators[], so can deal with expression a+b*c+(d*e+f)*g if a,b,...,g are defined.

Version: 0.449
Date: 01/04/2019
        :Add function: solve(equation,x,minValue,maxValue).

Version: 0.450
Date: 06/06/2019
        exp(x)

fixed bug in computation IntDivision, that is: num1 % num2
add function decimal2octal(n)

add function decimal2hex(n)

add function firstFactor(n)

add function factorise(n)

Version: 0.451
Date: 27/07/2019
fixed bug of internal function ChangeInfix()
add function decimal2fraction(n)

add internal function isInteger(n)

add internal isPositiveInteger(n)

add internal isNegativeInteger(n)

add function !n=1!+2!+...+n!

Version: 0.452
Date: 27/08/2019
add function eq24(a,b,c,d)

Version: 0.453
Date: 06/09/2019
10%+10%
5%%3

Version: 0.454
Date: 19/09/2019
add function Collatz() and print3x1maps(a,b)

Version: 0.455
Date: 21/09/2019
add Lucas-Lehmer test for Mersenne primes in function isprime()
For example: isprime(2^89-1)

Version: 0.456
Date: 11/10/2019
Fixed some BUGs founded on 09-10-2019
For the previous versions, if you input the following :
>> p=3511
>> 2^(p-1)-1mod(p^2)

You will get 2^(3511-1)-1@(3511^2
That is, the last char ) is lost.

Version: 0.457
Date: 23/11/2019
Add function sum(general_term,n,min,max) on 09-10-2019

Version: 0.458
Date: 01/12/2019
Using hash function to deal with functions, add several functions, such as listfunctions(), help(funcName) and etc. on 01-12-2019

Version: 0.459
Date: 15/12/2019
Fix bug: -(-2) and -3^2 and etc. on 15-12-2019

Version: 0.460
Date: 24/01/2020
Fix bug: a=3
 a==3
 and etc. on 24-01-2020

Set values: a=3
 b=a
 and etc. on 24-01-2020

Version: 0.461
Date: 21/02/2019
Fix bug: binom(5,5)=∞ on 21-02-2020

Version: 0.462
Date: 05/03/2020
Add exmpo() in function list. on 05-03-2020

Version: 0.463
Date: 11/03/2020
Fix BUG: sum(i!,i,1,20) on 11-03-2020

Version: 0.464
Date: 11/03/2020
Fix BUG: sqrt(x) does not work when x is not an integer on 24-03-2020

Version: 0.465
Date: 02/04/2020
Set default precision to 8, and make some functions do quick calculation when precision is high. Date April 2, 2020

Version: 0.466
Date: 14/04/2020
Add funtion getprecision() and fix bug of function setprecision() when no parameter is given. Date April 14, 2020

Version: 0.467
Date: 16/04/2020
Modify the command class so that print the functions list ordered by name. Date April 16, 2020

Version: 0.468
Date: 29/04/2020
Add command :mode, and enable do fraction calculation. Date April 29, 2020

Version: 0.469
Date: 08/07/2020
Make it possible to do the fraction calculation. Date July 08, 2020

Version: 0.470
Date: 10/07/2020
Make function sum() work under the fraction calculation mode. Date July 10, 2020

Version: 0.471
Date: 22/07/2020
Compare fractions. (Comparer les fractions.) And we make the computing x! possible. For example, 3.4!=3.4*2.4*1.4. Date July 22, 2020

Version: 0.472
Date: 25/07/2020
Fix a bug, the result of  x mod 1 should be zero.
And add function continued_fraction(num,expression,detail,tex). Date July 25, 2020

Version: 0.473
Date: 28/07/2020
Still use function continued_fraction() to compute continued fraction.
e.g., continued_fraction(3,5,1,1,2). Date July 25, 2020

Version: 0.474
Date: 01/08/2020
Add function Farey(n) to generate Farey series. Date August 01, 2020


===================

>> Version: 0.475
Date: 09/08/2020
Version 0.475 is the first version for register user. Date August 09, 2020

Version: 0.476
Date: 29/08/2020
Allow function sqrt() accept negative number. Date August 29, 2020

Version: 0.477
Date: 30/08/2020
Let function pi() return pi and pi(x) return the number of primes which is not greater than x. And add function list_pi_x(A,B) to print pi(x), where x is in [A,B]. Date August 30, 2020

Version: 0.478
Date: 01/09/2020
Fix bug in function q_DuanwuPlus(). Add function reverse() and reverse_plus(). If input `_` , then it will return the previous result. Date September 01, 2020

Version: 0.479
Date: 02/09/2020
Set system variables. Date September 02, 2020

Version: 0.480
Date: 06/09/2020
Permet au système d'effecteur des opérations symboliques. Date September 06, 2020

Version: 0.481
Date: 09/09/2020
Fix bugs in the symbolic operations such as +,-,*,/. Date September 06, 2020

Version: 0.482
Date: 22/10/2020
Change the infinity symbol ∞ to string `Inf` to avoid the error during arithmetic computation. Improved the operations including pre_power and etc. Date October 22, 2020

Version: 0.483
Date: 11/11/2020
Improved function eq24() such that it works under fraction mode. And improved the function fr_multiplication() and inputcmd2expression(). Date November 11, 2020

Version: 0.484
Date: 24/11/2020
Add functions: Primes(n), p(n) and index_of_prime(n). Date November 24, 2020

Version: 0.485
Date: 10/12/2020
Improved Factorise() and the calculation of n!. Try 10000! or  Factorise(10000!). Date December 10, 2020

Version: 0.486
Date: 18/12/2020
Fix bug in function Factorise(). Date December 18, 2020

Version: 0.487
Date: 24/12/2020
Fix greate bugs in symbol calculations. Date December 24, 2020

Version: 0.488
Date: 26/12/2020
Fix bugs in symbol calculations. Date December 26, 2020

Version: 0.489
Date: 27/12/2020
Fix bugs in symbol calculations. Date December 27, 2020

Version: 0.490
Date: 28/12/2020
Such expressions (x-1)(x+2) are allowed. Date December 28, 2020

Version: 0.491
Date: 14/03/2021
Add function Fibonacci(). Date March 14, 2021

Version: 0.492
Date: 21/03/2021
Improve the functions gcd() and lcm() and let them support multiparameters. Date March 21, 2021

并改进了 help() 函数.
-------------------

>>