calculator_tool
Perform diverse math calculations including expressions, functions, statistics, geometry, financial math, logic operations, number theory, combinatorics, probability, set theory, and complex numbers with precise results.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
calculation_type | Yes | The type of calculation to perform. | |
combinatorics_operation | No | The type of combinatorics operation. | |
complex_a_imaginary | No | The imaginary part of the first complex number. | |
complex_a_real | No | The real part of the first complex number. | |
complex_b_imaginary | No | The imaginary part of the second complex number (if needed). | |
complex_b_real | No | The real part of the second complex number (if needed). | |
complex_number_operation | No | The type of complex number operation. | |
data_points | No | The array of data points. | |
data_set_x | No | The dataset X for bivariate statistics. | |
data_set_y | No | The dataset Y for bivariate statistics. | |
expression | No | The mathematical expression to calculate. | |
financial_math_operation | No | The type of financial math calculation to perform. | |
function_argument | No | The argument value for the function. | |
function_name | No | The name of the function to calculate. | |
geometry_operation | No | The type of geometric calculation to perform. | |
height | No | The height. | |
length | No | The length. | |
logic_operation | No | The type of logic operation to perform. | |
n_compounding_periods | No | The number of compounding periods. | |
n_value | No | The n value. | |
number_a | No | The first number. | |
number_b | No | The second number (if needed). | |
number_theory_modulus | No | The modulus for modular exponentiation. | |
number_theory_operation | No | The type of number theory operation. | |
operand_a | No | The first operand. | |
operand_b | No | The second operand. | |
precision_level | No | Calculation precision level. | |
principal | No | The principal amount. | |
probability_a | No | The probability of event A (between 0 and 1). | |
probability_a_given_b | No | The conditional probability of A given B (between 0 and 1). | |
probability_b | No | The probability of event B (between 0 and 1). | |
probability_b_given_a | No | The conditional probability of B given A (between 0 and 1). | |
probability_operation | No | The type of probability calculation. | |
r_value | No | The r value (if needed). | |
radius | No | The radius of the circle. | |
rate | No | The interest rate (percentage). | |
set_a | No | The first set. | |
set_b | No | The second set. | |
set_theory_operation | No | The type of set theory operation. | |
side | No | The side length of the cube. | |
statistics_operation | No | The type of statistical calculation to perform. | |
time | No | The time (in years). | |
width | No | The width. |
Input Schema (JSON Schema)
{
"description": "Calculator tool supporting various math operations.",
"name": "calculator_tool",
"properties": {
"calculation_type": {
"description": "The type of calculation to perform.",
"enum": [
"evaluate_expression",
"calculate_function",
"calculate_statistics",
"perform_geometry",
"perform_financial_math",
"perform_logic_operations",
"perform_number_theory",
"perform_combinatorics",
"calculate_probability",
"perform_set_theory",
"perform_complex_number"
],
"type": "string"
},
"combinatorics_operation": {
"description": "The type of combinatorics operation.",
"enum": [
"permutation",
"combination",
"factorial",
"binomial_coefficient"
],
"type": "string"
},
"complex_a_imaginary": {
"description": "The imaginary part of the first complex number.",
"type": "number"
},
"complex_a_real": {
"description": "The real part of the first complex number.",
"type": "number"
},
"complex_b_imaginary": {
"description": "The imaginary part of the second complex number (if needed).",
"type": "number"
},
"complex_b_real": {
"description": "The real part of the second complex number (if needed).",
"type": "number"
},
"complex_number_operation": {
"description": "The type of complex number operation.",
"enum": [
"add",
"subtract",
"multiply",
"divide",
"modulus",
"argument",
"conjugate"
],
"type": "string"
},
"data_points": {
"description": "The array of data points.",
"items": {
"type": "number"
},
"type": "array"
},
"data_set_x": {
"description": "The dataset X for bivariate statistics.",
"items": {
"type": "number"
},
"type": "array"
},
"data_set_y": {
"description": "The dataset Y for bivariate statistics.",
"items": {
"type": "number"
},
"type": "array"
},
"expression": {
"description": "The mathematical expression to calculate.",
"type": "string"
},
"financial_math_operation": {
"description": "The type of financial math calculation to perform.",
"enum": [
"simple_interest",
"compound_interest",
"present_value",
"future_value"
],
"type": "string"
},
"function_argument": {
"description": "The argument value for the function.",
"type": "number"
},
"function_name": {
"description": "The name of the function to calculate.",
"type": "string"
},
"geometry_operation": {
"description": "The type of geometric calculation to perform.",
"enum": [
"area_circle",
"area_rectangle",
"volume_cube"
],
"type": "string"
},
"height": {
"description": "The height.",
"type": "number"
},
"length": {
"description": "The length.",
"type": "number"
},
"logic_operation": {
"description": "The type of logic operation to perform.",
"enum": [
"AND",
"OR",
"NOT",
"XOR"
],
"type": "string"
},
"n_compounding_periods": {
"description": "The number of compounding periods.",
"type": "integer"
},
"n_value": {
"description": "The n value.",
"type": "integer"
},
"number_a": {
"description": "The first number.",
"type": "integer"
},
"number_b": {
"description": "The second number (if needed).",
"type": "integer"
},
"number_theory_modulus": {
"description": "The modulus for modular exponentiation.",
"type": "integer"
},
"number_theory_operation": {
"description": "The type of number theory operation.",
"enum": [
"gcd",
"lcm",
"prime_factorization",
"is_prime",
"modular_exponentiation"
],
"type": "string"
},
"operand_a": {
"description": "The first operand.",
"type": "boolean"
},
"operand_b": {
"description": "The second operand.",
"type": "boolean"
},
"precision_level": {
"default": 64,
"description": "Calculation precision level.",
"enum": [
32,
64,
128
],
"type": "number"
},
"principal": {
"description": "The principal amount.",
"type": "number"
},
"probability_a": {
"description": "The probability of event A (between 0 and 1).",
"type": "number"
},
"probability_a_given_b": {
"description": "The conditional probability of A given B (between 0 and 1).",
"type": "number"
},
"probability_b": {
"description": "The probability of event B (between 0 and 1).",
"type": "number"
},
"probability_b_given_a": {
"description": "The conditional probability of B given A (between 0 and 1).",
"type": "number"
},
"probability_operation": {
"description": "The type of probability calculation.",
"enum": [
"probability_event",
"conditional_probability",
"bayes_theorem"
],
"type": "string"
},
"r_value": {
"description": "The r value (if needed).",
"type": "integer"
},
"radius": {
"description": "The radius of the circle.",
"type": "number"
},
"rate": {
"description": "The interest rate (percentage).",
"type": "number"
},
"set_a": {
"description": "The first set.",
"items": {
"type": "number"
},
"type": "array"
},
"set_b": {
"description": "The second set.",
"items": {
"type": "number"
},
"type": "array"
},
"set_theory_operation": {
"description": "The type of set theory operation.",
"enum": [
"union",
"intersection",
"difference",
"symmetric_difference",
"is_subset"
],
"type": "string"
},
"side": {
"description": "The side length of the cube.",
"type": "number"
},
"statistics_operation": {
"description": "The type of statistical calculation to perform.",
"enum": [
"mean",
"median",
"mode",
"standard_deviation",
"variance",
"correlation",
"regression"
],
"type": "string"
},
"time": {
"description": "The time (in years).",
"type": "number"
},
"width": {
"description": "The width.",
"type": "number"
}
},
"required": [
"calculation_type"
],
"type": "object"
}