Previous Up Next

3.5.7  Configuring the computations

You can configure how Xcas computes by using the menu item CfgCas configuration or by clicking on the status line. This will open a window with the following options:

  1. Prog style (default: Xcas)
    This has a menu from which you can choose a different language to program in; you can choose from Xcas, Python ^==** (Python syntax, except that ^ will be the exponentiation operator as in Xcas rather than the exclusive or operator as in Python), Python ^==xor (Python syntax, where ^ is the exclusive or operator), Maple, Mupad and TI89/92.
  2. eval (default: 25)
    This has an input field where you can type in a positive integer specifying the maximum number of recursions allowed when evaluating expressions.
  3. prog (default: 1)
    This has an input field where you can type in a positive integer specifying the maximum number of recursions allowed when executing programs.
  4. recurs (default: 100)
    This has an input field where you can type in a positive integer specifying the maximum number of recursive calls.
  5. debug (default: 0)
    This has an input field where you can type in a 0 or 1. If this is 1, then Xcas will display intermediate information on the algorithms used by giac. If this is 0, then no such information is displayed.
  6. maxiter (default: 20)
    This has an input field where you can type in an integer specifying the maximum number of iterations to be used in Newton’s method.
  7. Float format (default: standard)
    This has a menu from which you can choose how to display decimal numbers. Your choices will be:
  8. Digits (default: 12)
    This has an input field where you can type in a positive integer which will indicate the number of significant digits that Xcas will use.
  9. epsilon (default: 1e-12)
    This has an input field where you can type in a floating point number which will be the value of epsilon used by epsilon2zero, which is a function that replaces numbers with absolute value less than epsilon by 0 (see Section 6.59.1).
  10. proba (default: 1e-15)
    This has an input field where you can type in a floating point number. If this number is greater than zero, then in some cases giac can use probabilistic algorithms and give a result with probability of being false less than this value. (One such example of a probabilistic algorithm that giac can use is the algorithm to compute the determinant of a large matrix with integer coefficients.)
  11. approx (default: unchecked)
    This has a checkbox. If the box is checked, then exact numbers such as √2 will be given a floating point approximation. If the box in unchecked, then exact values will be used when possible. (See Section 3.5.4.)
  12. autosimplify (default: 1)
    This has an input field where you can type in 0, 1 or 2. A value of 0 means no automatic simplification will be done, a value of 1 means grouped simplification will be automatic. A value of 2 means that all simplification will be automatic.
  13. threads (default: 1)
    This has an input field where you can enter a positive integer to indicate the number of threads (for a possible future threaded version).
  14. Integer basis (default: 10)
    This has a menu from which you can choose an integer base to work in; your choices will be 8, 10 and 16.
  15. radian (default: checked)
    This has a checkbox. If the box is checked, then angles will be measured in radians, otherwise they will be measured in degrees.
  16. Complex (default: unchecked)
    This has a checkbox. If this box is checked, then giac will work in complex mode, meaning, for example, that polynomials will be factored with complex numbers if necessary.
  17. Cmplx_var (default: unchecked)
    This has a checkbox. If this box is checked, then variables will by default be assumed to be complex. For example, the expression re(z) won’t be simplified, it will return re(z). If this box is unchecked, then variables by default will be assumed to be real, and so re(z) will be simplified to z.
  18. increasing power (default: unchecked)
    This has a checkbox. If this box is checked, then polynomials will be written out in increasing powers of the variable; otherwise they will be written in decreasing powers.
  19. All_trig_sol (default: unchecked)
    This has a checkbox. If this box is checked, then Xcas will give the complete solutions of trigonometric equations. For example, the solution of cos(x)=0 will be given as [(2n_0π + π)/2], where n0 can be any integer. If this box is unchecked, then only the primary solutions of trigonometric equations will be given. For example, the solutions of cos(x)=0 will be the pair [−π/2,π/2].
  20. Sqrt (default: checked)
    This has a checkbox. If this box is checked, then the factor command will factor second degree polynomials, even when the roots are not in the field determined by the coefficients. For example, factor(x^2 - 3) will return (x−√3) (x+√3). If this box is unchecked, then factor(x^2 - 3) will return x2−3.

This page also has buttons for applying the settings, saving the settings for future sessions, canceling any new settings, and restoring the default settings.


Previous Up Next