Name:

^ power function

Library names:

sollya_obj_t sollya_lib_pow(sollya_obj_t, sollya_obj_t) sollya_obj_t sollya_lib_build_function_pow(sollya_obj_t, sollya_obj_t) #define SOLLYA_POW(x,y) sollya_lib_build_function_pow((x), (y))

Usage:

function1 ^ function2 : (function, function) -> function interval1 ^ interval2 : (range, range) -> range interval1 ^ constant : (range, constant) -> range interval1 ^ constant : (constant, range) -> range

Parameters:

Description:

Example 1:

   > 5 ^ 2;
   25

Example 2:

   > x ^ 2;
   x^2

Example 3:

   > 3 ^ (-5);
   4.1152263374485596707818930041152263374485596707819e-3

Example 4:

   > (-3) ^ (-2.5);
   NaN

Example 5:

   > diff(sin(x) ^ exp(x));
   sin(x)^exp(x) * ((cos(x) * exp(x)) / sin(x) + exp(x) * log(sin(x)))

Example 6:

   > 2^3^5;
   14134776518227074636666380005943348126619871175004951664972849610340958208
   > (2^3)^5;
   32768
   > 2^(3^5);
   14134776518227074636666380005943348126619871175004951664972849610340958208

Example 7:

   > [1;2] ^ [3;4];
   [1;16.000000000000000000000000000000000000000000000001]
   > [1;2] ^ 17;
   [1;131072]
   > 13 ^ [-4;17];
   [3.501277966457757081334687160813696999404782745702e-5;8650415919381337933]
See also: +, -, *, /
Go back to the list of commands