Logo Search packages:      
Sourcecode: libqalculate version File versions  Download package

void Calculator::addBuiltinFunctions (  ) 

Adds builtin functions. Called automatically when the calculator is created.

Definition at line 1195 of file Calculator.cc.

Referenced by resetFunctions().

                                     {

      f_vector = addFunction(new VectorFunction());
      f_sort = addFunction(new SortFunction());
      f_rank = addFunction(new RankFunction());
      f_limits = addFunction(new LimitsFunction());
      //f_component = addFunction(new ComponentFunction());
      f_dimension = addFunction(new DimensionFunction());
      f_merge_vectors = addFunction(new MergeVectorsFunction());
      f_matrix = addFunction(new MatrixFunction());
      f_matrix_to_vector = addFunction(new MatrixToVectorFunction());
      f_area = addFunction(new AreaFunction());
      f_rows = addFunction(new RowsFunction());
      f_columns = addFunction(new ColumnsFunction());
      f_row = addFunction(new RowFunction());
      f_column = addFunction(new ColumnFunction());
      f_elements = addFunction(new ElementsFunction());
      f_element = addFunction(new ElementFunction());
      f_transpose = addFunction(new TransposeFunction());
      f_identity = addFunction(new IdentityFunction());
      f_determinant = addFunction(new DeterminantFunction());
      f_permanent = addFunction(new PermanentFunction());
      f_adjoint = addFunction(new AdjointFunction());
      f_cofactor = addFunction(new CofactorFunction());
      f_inverse = addFunction(new InverseFunction());

      f_factorial = addFunction(new FactorialFunction());
      f_factorial2 = addFunction(new DoubleFactorialFunction());
      f_multifactorial = addFunction(new MultiFactorialFunction());
      f_binomial = addFunction(new BinomialFunction());
      
      f_xor = addFunction(new XorFunction());
      f_bitxor = addFunction(new BitXorFunction());
      f_even = addFunction(new EvenFunction());
      f_odd = addFunction(new OddFunction());
      f_shift = addFunction(new ShiftFunction());
      
      f_abs = addFunction(new AbsFunction());
      f_signum = addFunction(new SignumFunction());
      f_gcd = addFunction(new GcdFunction());
      f_lcm = addFunction(new LcmFunction());
      f_round = addFunction(new RoundFunction());
      f_floor = addFunction(new FloorFunction());
      f_ceil = addFunction(new CeilFunction());
      f_trunc = addFunction(new TruncFunction());
      f_int = addFunction(new IntFunction());
      f_frac = addFunction(new FracFunction());
      f_rem = addFunction(new RemFunction());
      f_mod = addFunction(new ModFunction());
      
      f_polynomial_unit = addFunction(new PolynomialUnitFunction());
      f_polynomial_primpart = addFunction(new PolynomialPrimpartFunction());
      f_polynomial_content = addFunction(new PolynomialContentFunction());
      f_coeff = addFunction(new CoeffFunction());
      f_lcoeff = addFunction(new LCoeffFunction());
      f_tcoeff = addFunction(new TCoeffFunction());
      f_degree = addFunction(new DegreeFunction());
      f_ldegree = addFunction(new LDegreeFunction());

      f_re = addFunction(new ReFunction());
      f_im = addFunction(new ImFunction());
      //f_arg = addFunction(new ArgFunction());
      f_numerator = addFunction(new NumeratorFunction());
      f_denominator = addFunction(new DenominatorFunction());     

      f_sqrt = addFunction(new SqrtFunction());
      f_sq = addFunction(new SquareFunction());

      f_exp = addFunction(new ExpFunction());

      f_ln = addFunction(new LogFunction());
      f_logn = addFunction(new LognFunction());

      f_sin = addFunction(new SinFunction());
      f_cos = addFunction(new CosFunction());
      f_tan = addFunction(new TanFunction());
      f_asin = addFunction(new AsinFunction());
      f_acos = addFunction(new AcosFunction());
      f_atan = addFunction(new AtanFunction());
      f_sinh = addFunction(new SinhFunction());
      f_cosh = addFunction(new CoshFunction());
      f_tanh = addFunction(new TanhFunction());
      f_asinh = addFunction(new AsinhFunction());
      f_acosh = addFunction(new AcoshFunction());
      f_atanh = addFunction(new AtanhFunction());
      f_radians_to_default_angle_unit = addFunction(new RadiansToDefaultAngleUnitFunction());

      f_zeta = addFunction(new ZetaFunction());
      f_gamma = addFunction(new GammaFunction());
      f_beta = addFunction(new BetaFunction());

      f_total = addFunction(new TotalFunction());
      f_percentile = addFunction(new PercentileFunction());
      f_min = addFunction(new MinFunction());
      f_max = addFunction(new MaxFunction());
      f_mode = addFunction(new ModeFunction());
      f_rand = addFunction(new RandFunction());

      f_isodate = addFunction(new ISODateFunction());
      f_localdate = addFunction(new LocalDateFunction());
      f_timestamp = addFunction(new TimestampFunction());
      f_stamptodate = addFunction(new TimestampToDateFunction());
      f_days = addFunction(new DaysFunction());
      f_yearfrac = addFunction(new YearFracFunction());
      f_week = addFunction(new WeekFunction());
      f_weekday = addFunction(new WeekdayFunction());
      f_month = addFunction(new MonthFunction());
      f_day = addFunction(new DayFunction());
      f_year = addFunction(new YearFunction());
      f_yearday = addFunction(new YeardayFunction());
      f_time = addFunction(new TimeFunction());

      f_base = addFunction(new BaseFunction());
      f_bin = addFunction(new BinFunction());
      f_oct = addFunction(new OctFunction());
      f_hex = addFunction(new HexFunction());
      f_roman = addFunction(new RomanFunction());

      f_ascii = addFunction(new AsciiFunction());
      f_char = addFunction(new CharFunction());

      f_length = addFunction(new LengthFunction());
      f_concatenate = addFunction(new ConcatenateFunction());
            
      f_replace = addFunction(new ReplaceFunction());
      f_stripunits = addFunction(new StripUnitsFunction());

      f_genvector = addFunction(new GenerateVectorFunction());
      f_for = addFunction(new ForFunction());
      f_sum = addFunction(new SumFunction());
      f_product = addFunction(new ProductFunction());
      f_process = addFunction(new ProcessFunction());
      f_process_matrix = addFunction(new ProcessMatrixFunction());
      f_csum = addFunction(new CustomSumFunction());
      f_function = addFunction(new FunctionFunction());
      f_select = addFunction(new SelectFunction());
      f_title = addFunction(new TitleFunction());
      f_if = addFunction(new IFFunction());     
      f_error = addFunction(new ErrorFunction());
      f_warning = addFunction(new WarningFunction());
      f_message = addFunction(new MessageFunction());
      
      f_save = addFunction(new SaveFunction());
      f_load = addFunction(new LoadFunction());
      f_export = addFunction(new ExportFunction());

      f_register = addFunction(new RegisterFunction());
      f_stack = addFunction(new StackFunction());

      f_diff = addFunction(new DeriveFunction());
      f_integrate = addFunction(new IntegrateFunction());
      f_solve = addFunction(new SolveFunction());
      f_multisolve = addFunction(new SolveMultipleFunction());

      /*void *plugin = dlopen("/home/nq/Source/qalculate/plugins/pluginfunction.so", RTLD_NOW);
      if(plugin) {
            CREATEPLUG_PROC createproc = (CREATEPLUG_PROC) dlsym(plugin, "createPlugin");
            if (dlerror() != NULL) {
                  dlclose(plugin);
                  printf( "dlsym error\n");
            } else {
                  createproc();
            }
      } else {
            printf( "dlopen error\n");
      }*/

}


Generated by  Doxygen 1.6.0   Back to index