### Sphere Command Example (GeoGebra) Source: https://geogebra.github.io/docs/manual/en/commands/Sphere An example demonstrating the creation of a sphere using the Sphere command with a center at the origin (0,0,0) and passing through the point (1,1,1). The resulting equation is shown. ```GeoGebra Sphere((0, 0, 0), (1, 1, 1)) ``` -------------------------------- ### Example: Constructing a Parabola Locus Source: https://geogebra.github.io/docs/manual/en/commands/LocusEquation An example demonstrating the construction of a parabola as a locus using the LocusEquation command. It involves defining points, lines, and intersections to set up the geometric conditions for the locus. ```geogebra // Create free Points A and B, and Line d (directrix) // Create free point F for the focus // Create P on Line d (mover point) // Create line p perpendicular to d through P // Create line b as perpendicular bisector of Line Segment FP // Create Q as intersection of Lines p and b (tracer point) LocusEquation(Q, P) ``` -------------------------------- ### Example: Sticky Point Behavior (2D) Source: https://geogebra.github.io/docs/manual/en/commands/DynamicCoordinates Illustrates creating a 'sticky' point effect where a dragged point C snaps to the coordinates of point A when it gets close enough. ```GeoGebra A = (1, 2) B = (2, 3) SetVisibleInView(B, 1, false) C = DynamicCoordinates(B, If(Distance(A, B) < 1, x(A), x(B)), If(Distance(A, B) < 1, y(A), y(B))) ``` -------------------------------- ### FutureValue Command Example - GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/FutureValue Demonstrates the usage of the FutureValue command with specific parameters to calculate the future value of an investment. This example shows how to input monthly rates and periods for an investment. ```geogebra FutureValue(10%/12, 15, -200, 0, 1) ``` -------------------------------- ### Example Polyline Creation with Unknown Point - GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/Polyline An example demonstrating the creation of a polyline with a mix of defined and undefined points. The resulting length is calculated and displayed in the Algebra View. ```geogebra Polyline((1, 3), (4, 3), (?,?), (6, 2), (4, -2), (2, -2)) ``` -------------------------------- ### Cubic Command Syntax and Example Source: https://geogebra.github.io/docs/manual/en/commands/Cubic Demonstrates the syntax for the Cubic command in GeoGebra, which requires three points to define a triangle and a number for the desired cubic index. An example illustrates its usage and the resulting implicit curve. ```geogebra Cubic( , , , ) // Example: // Let A = (0, 1), B = (2, 1), and C = (1, 2). // Cubic(A, B, C, 2) yields the implicit curve -x³ + 3x² + 5x y² - 14x y + 7x - 5y² + 14y = 9. ``` -------------------------------- ### Example: Creating a Polygon in GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/AttachCopyToView Demonstrates the creation of a polygon object in GeoGebra using a list of coordinates. ```geogebra poly = Polygon((0, 0), (1, 0), (1, 1), (0, 1)) ``` -------------------------------- ### GeoGebra Classes Command: Data List, Start, Width Source: https://geogebra.github.io/docs/manual/en/commands/Classes Generates a list of class boundaries using a provided data list, a starting point, and a specified width for each class. The first boundary is set by 'Start', and the last boundary will encompass the maximum value in the data list. This is useful for creating equally spaced bins for data visualization. ```geogebra Classes({0.1, 0.2, 0.4, 1.1}, 0, 1) ``` -------------------------------- ### Example: Checkbox Controlling Point Visibility Source: https://geogebra.github.io/docs/manual/en/commands/Checkbox An example demonstrating how to create a checkbox that hides or shows points A and B. The checkbox 'c' is created, and its state determines the visibility of the points. ```geogebra c = Checkbox({A,B}) ``` -------------------------------- ### StartAnimation(, ...) - Animate Specific Elements Source: https://geogebra.github.io/docs/manual/en/commands/StartAnimation Starts animating specified points and sliders, which must lie on paths. ```APIDOC ## StartAnimation(, , …​.) ### Description Starts animating given points and sliders, the points must be on paths. ### Method `APICALL` ### Endpoint `/websites/geogebra_github_io_manual_en/StartAnimation` ### Parameters #### Query Parameters - **elements** (array) - Required - An array of point or slider names to animate. ### Request Example ```json { "command": "StartAnimation(Point1, SliderA)" } ``` ### Response #### Success Response (200) - **message** (string) - Indicates successful execution. #### Response Example ```json { "message": "Animation started for specified elements." } ``` ``` -------------------------------- ### GeoGebra CAS Assume Command Syntax and Examples Source: https://geogebra.github.io/docs/manual/en/commands/Assume Demonstrates the syntax and usage of the Assume command in GeoGebra's CAS. It takes a condition and an expression as arguments to evaluate the expression under the given condition. Examples cover integrals, solving equations, and simplification of expressions. ```geogebra_cas Assume( , ) ``` ```geogebra_cas Assume(a > 0, Integral(exp(-a x), 0, infinity)) ``` ```geogebra_cas Assume(x>0 && n>0, Solve(log(n^2*(x/n)^lg(x))=log(x^2), x)) ``` ```geogebra_cas Assume(x<2,Simplify(sqrt(x-2sqrt(x-1)))) ``` ```geogebra_cas Assume(x>2,Simplify(sqrt(x-2sqrt(x-1)))) ``` ```geogebra_cas Assume(k>0, Extremum(k*3*x^2/4-2*x/2)) ``` ```geogebra_cas Assume(k>0, InflectionPoint(0.25 k x^3 - 0.5x^2 + k)) ``` -------------------------------- ### ModularExponent Command Syntax and Example (GeoGebra CAS) Source: https://geogebra.github.io/docs/manual/en/commands/ModularExponent This snippet demonstrates the CAS syntax for the ModularExponent command in GeoGebra. It takes three numbers as input and returns the modular exponent. The example shows how to use the command and its expected output. ```GeoGebra CAS ModularExponent( , , ) ModularExponent(5, 12, 13) ``` -------------------------------- ### Unique Command Documentation Source: https://geogebra.github.io/docs/manual/en/commands/Unique Provides details on the Unique command, including its syntax, behavior with different data types, and examples. ```APIDOC ## Unique Command ### Description Returns a list of elements from the given list in ascending order, with repetitive elements included only once. This command works for both lists of numbers and lists of text. ### Method N/A (This is a function/command, not an HTTP endpoint) ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example ``` Unique({1, 2, 4, 1, 4}) Unique({"a", "b", "Hello", "Hello"}) Unique({1, x, x, 1, a}) ``` ### Response #### Success Response (200) - **list** (list) - A list containing the unique elements from the input list in ascending order. #### Response Example ```json { "example": "{1, 2, 4}" } ``` ```json { "example": "{\"Hello\", \"a\", \"b\"}" } ``` ```json { "example": "{1, x, a}" } ``` ### See Also - Frequency command ``` -------------------------------- ### Get Column Number of a Cell (GeoGebra) Source: https://geogebra.github.io/docs/manual/en/commands/Column The Column command in GeoGebra returns the column of a specified spreadsheet cell as a number, starting from 1. For example, `Column(B3)` returns 2 because column B is the second column. ```GeoGebra q = Column(B3) ``` -------------------------------- ### FitGrowth Command Example - GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/FitGrowth Demonstrates the usage of the FitGrowth command with a sample list of points. The command calculates and returns a function of the form a*b^x that best fits the input data. ```geogebra FitGrowth({(0, 1), (2, 3), (4, 3), (6, 4)}) ``` -------------------------------- ### Get Start or End Point of Segment Source: https://geogebra.github.io/docs/manual/en/commands/Vertex Returns either the start-point (Index = 1) or the end-point (Index = 2) of a given segment. This is useful for defining or analyzing the boundaries of a line segment. ```GeoGebra Vertex( , ) ``` -------------------------------- ### Sample Command - With Replacement Source: https://geogebra.github.io/docs/manual/en/commands/Sample Returns a list of n randomly chosen elements from a list. Elements can be chosen multiple times if the last parameter is true. ```APIDOC ## Sample( , , ) ### Description Returns a list of n randomly chosen elements from a list. Elements can be chosen multiple times if and only if the last parameter is true. ### Method N/A (This is a function within the GeoGebra CAS view, not a REST API endpoint) ### Endpoint N/A ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ``` Sample({1, 2, 3, 4, 5}, 5, true) ``` ### Response #### Success Response (N/A) Returns a list of n randomly chosen elements. #### Response Example ``` {2, 3, 3, 4, 5} ``` ``` -------------------------------- ### Get Last Character(s) from Text - GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/Last Extracts the last character or a specified number of trailing characters from a text string. Examples show retrieving a single last character and multiple last characters. ```geogebra Last("Hello") ``` ```geogebra Last("Hello", 2) ``` -------------------------------- ### Get Last Element(s) from List - GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/Last Retrieves the last element or a specified number of trailing elements from a list. Usage examples demonstrate extracting a single last element and multiple last elements. ```geogebra Last({1, 4, 3}) ``` ```geogebra Last({1, 4, 3}, 2) ``` -------------------------------- ### Get Row Number of Spreadsheet Cell (GeoGebra) Source: https://geogebra.github.io/docs/manual/en/commands/Row The Row command returns the row number of a given spreadsheet cell. The row numbering starts at 1. This command is useful for referencing rows in spreadsheet operations. ```GeoGebra r = Row(B3) ``` -------------------------------- ### Height Command Documentation Source: https://geogebra.github.io/docs/manual/en/commands/Height This section details the Height command and its application to various geometric solids. ```APIDOC ## Height Command ### Description Calculates the "oriented" height of the given solid. ### Method Not Applicable (This is a command within the GeoGebra application, not a REST API endpoint). ### Endpoint Not Applicable ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) Returns the calculated height of the solid. #### Response Example None ## Height( ) ### Description Calculates the "oriented" height of the given cone. ### Method Not Applicable ### Endpoint Not Applicable ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) Returns the calculated height of the cone. #### Response Example None ## Height( ) ### Description Calculates the "oriented" height of the given cylinder. ### Method Not Applicable ### Endpoint Not Applicable ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) Returns the calculated height of the cylinder. #### Response Example None ## Height( ) ### Description Calculates the "oriented" height of the given solid polyhedron. ### Method Not Applicable ### Endpoint Not Applicable ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) Returns the calculated height of the polyhedron. #### Response Example None ``` -------------------------------- ### Get Real Part of Complex Number (GeoGebra) Source: https://geogebra.github.io/docs/manual/en/Real_Function The `real()` function in GeoGebra returns the real part of a complex number. It takes a single argument, which is the complex number. For example, `real(17 + 3i)` returns `17`. ```geogebra real(17 + 3i) ``` -------------------------------- ### StartAnimation() - Resume All Animations Source: https://geogebra.github.io/docs/manual/en/commands/StartAnimation Resumes all animations that are currently paused. ```APIDOC ## StartAnimation() ### Description Resumes all animations if they are paused. ### Method `APICALL` ### Endpoint `/websites/geogebra_github_io_manual_en/StartAnimation` ### Parameters None ### Request Example ```json { "command": "StartAnimation()" } ``` ### Response #### Success Response (200) - **message** (string) - Indicates successful execution. #### Response Example ```json { "message": "Animations resumed successfully." } ``` ``` -------------------------------- ### Get Numerator of a Function (GeoGebra CAS) Source: https://geogebra.github.io/docs/manual/en/commands/Numerator Returns the numerator of a given function. This is useful for extracting the top part of a fractional expression representing a function. Example: Numerator((3x² + 1) / (2x - 1)) returns 3x² + 1. ```geogebra Numerator((3x² + 1) / (2x - 1)) ``` -------------------------------- ### Get Directrix of a Conic (GeoGebra) Source: https://geogebra.github.io/docs/manual/en/commands/Directrix This command retrieves the directrix of a specified conic section. It requires a conic object as input and outputs the equation of the directrix line. For example, applying it to 'x^2 - 3x + 3y = 9' yields 'y = 4.5'. ```GeoGebra Directrix(x^2 - 3x + 3y = 9) ``` -------------------------------- ### Sample Command - Without Replacement Source: https://geogebra.github.io/docs/manual/en/commands/Sample Returns a list of n randomly chosen elements from a list. Elements can only be chosen once. ```APIDOC ## Sample( , ) ### Description Returns a list of n randomly chosen elements of a list; elements can be chosen several times. ### Method N/A (This is a function within the GeoGebra CAS view, not a REST API endpoint) ### Endpoint N/A ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ``` Sample({1, 2, 3, 4, 5}, 5) ``` ### Response #### Success Response (N/A) Returns a list of n randomly chosen elements. #### Response Example ``` {1, 2, 1, 5, 4} ``` ``` -------------------------------- ### Get Conic/Quadric Type with Type Command (GeoGebra) Source: https://geogebra.github.io/docs/manual/en/commands/Type The Type command in GeoGebra returns a numerical value indicating the type of a conic or quadric. For example, Type(x²+y²=1) returns 4, signifying a circle. This command is useful for programmatically analyzing geometric objects. ```geogebra Type(x² + y² = 1) ``` -------------------------------- ### Create Pyramid using Command Source: https://geogebra.github.io/docs/manual/en/3D_Graphics_View Illustrates the creation of a 3D pyramid using a specific GeoGebra command. This involves defining the base points and the apex point, which are then used as arguments for the 'Pyramid' command. ```plaintext Let A=(2, 2, 0), B=(-2, 2, 0), C=(0, -2, 0), and D=(0, 0, 3). Input the command Pyramide[A, B, C, D] and hit the Enter key. ``` -------------------------------- ### Create Bar Chart over Interval with Heights Source: https://geogebra.github.io/docs/manual/en/commands/BarChart Generates a bar chart over a specified interval [Start Value, End Value]. The number of bars is determined by the length of the list of heights provided. Example: BarChart(10, 20, {1, 2, 3, 4, 5}). ```geogebra BarChart(10, 20, {1, 2, 3, 4, 5}) ``` -------------------------------- ### Get Foci of Conic Section - GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/Focus The Focus command in GeoGebra retrieves all foci of a specified conic section. It requires a conic section as input and returns the coordinates of its foci. For example, `Focus(4x^2 - y^2 + 16x + 20 = 0)` will output the two foci of the hyperbola. ```geogebra Focus(4x^2 - y^2 + 16x + 20 = 0) ``` -------------------------------- ### Example: Bounded Coordinate Movement (2D) Source: https://geogebra.github.io/docs/manual/en/commands/DynamicCoordinates Shows how to create a point A with complex coordinate constraints using DynamicCoordinates and If statements, effectively bounding its movement within specific ranges and conditions. ```GeoGebra A = (1, 2) SetVisibleInView(A, 1, false) B = DynamicCoordinates(A, If(x(A) > 3, 3, If(x(A) < -3, -3, If(x(A) < 0, round(x(A)), x(A)))), If(x(A) < 0, 0.5, If(y(A) > 2, 2, If(y(A) < 0, 0, y(A))))) ``` -------------------------------- ### Get Numerator of an Expression (GeoGebra CAS) Source: https://geogebra.github.io/docs/manual/en/commands/Numerator Returns the numerator of a rational number or algebraic expression within the CAS environment. It can simplify expressions before extracting the numerator. Examples: Numerator(2/3 + 1/15) yields 11. If variables are undefined, it returns symbolic numerators like 'a' for Numerator(a/b). ```geogebra Numerator(2/3 + 1/15) ``` ```geogebra Numerator(a/b) ``` ```geogebra Numerator(Simplify(a + b/c)) ``` -------------------------------- ### Gamma Command - Function Creation (CDF or PDF) Source: https://geogebra.github.io/docs/manual/en/commands/Gamma Creates either the cumulative density function (CDF) or the probability density function (PDF) of a Gamma distribution based on a boolean flag. This is useful for plotting or further analysis of the distribution function itself. ```APIDOC ## POST /gamma/function ### Description Creates either the cumulative density function (CDF) or the probability density function (PDF) of a Gamma distribution. ### Method POST ### Endpoint /gamma/function ### Parameters #### Request Body - **alpha** (number) - Required - The alpha parameter of the Gamma distribution. - **beta** (number) - Required - The beta parameter of the Gamma distribution. - **cumulative** (boolean) - Required - If true, creates the CDF; otherwise, creates the PDF. ### Request Example ```json { "alpha": 2, "beta": 1, "cumulative": true } ``` ### Response #### Success Response (200) - **functionType** (string) - Indicates whether 'CDF' or 'PDF' was created. - **functionDefinition** (string) - A string representing the mathematical definition of the created function. #### Response Example ```json { "functionType": "CDF", "functionDefinition": "GammaCDF(2, 1, x)" } ``` ``` -------------------------------- ### Get Numerator of a Number (GeoGebra CAS) Source: https://geogebra.github.io/docs/manual/en/commands/Numerator For a rational number, this command returns its simplified numerator. It uses a numerical method, limiting its precision for numbers with large denominators. For irrational numbers, it returns the numerator of their continued fraction. Examples: Numerator(5 / 3) yields 5, Numerator(10 / 6) yields 5. ```geogebra Numerator(5 / 3) ``` ```geogebra Numerator(10 / 6) ``` ```geogebra Numerator(15 / 3) ``` -------------------------------- ### Zip Command Examples - GeoGebra Scripting Source: https://geogebra.github.io/docs/manual/en/commands/Zip Demonstrates the usage of the Zip command with various scenarios, including point midpoints, polynomial degrees, and function applications. The command creates lists by substituting variables in an expression with elements from corresponding lists. ```GeoGebra Script Zip(Midpoint(A, B), A, {P, Q}, B, {R, S}) ``` ```GeoGebra Script Zip(Degree(a), a, {x^2, x^3, x^6}) ``` ```GeoGebra Script Zip(Simplify(a*x^(b-1)), a, {1, 2, 5}, b) ``` ```GeoGebra Script Zip(f(2), f, {x+1, x+3}) ``` -------------------------------- ### Create Bar Chart over Interval with Expression Source: https://geogebra.github.io/docs/manual/en/commands/BarChart Creates a bar chart over a given interval [Start Value, End Value]. Bar heights are calculated using an expression of a variable within a specified range [From Number, To Number]. Example: BarChart(-0.5, n + 0.5, BinomialCoefficient(n,k) * p^k * q^(n-k), k, 0, n). ```geogebra BarChart(-0.5, n + 0.5, BinomialCoefficient(n,k) * p^k * q^(n-k), k, 0, n) ``` -------------------------------- ### Example Pascal Probability Calculation (GeoGebra) Source: https://geogebra.github.io/docs/manual/en/commands/Pascal An example demonstrating the calculation of the probability of 2 failures before the first success in Bernoulli trials with a success probability of 1/6. ```GeoGebra Pascal(1, 1/6, 2, false) ``` -------------------------------- ### ApplyMatrix Command Documentation Source: https://geogebra.github.io/docs/manual/en/commands/ApplyMatrix Detailed explanation of the ApplyMatrix command, its parameters, and behavior for different point and matrix dimensions. ```APIDOC ## ApplyMatrix Command ### Description Transforms an object `O` by mapping its points `P` using a matrix `M`. The behavior depends on the dimensionality of the point and the matrix. ### Method Not applicable (This is a command, not an API endpoint). ### Endpoint Not applicable (This is a command, not an API endpoint). ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters - **Matrix** (Matrix): The transformation matrix. - **Object** (Object): The geometric object to be transformed. ### Behavior Details - **2D Point and 2x2 Matrix**: Point `P` is mapped to `M*P`. - **2D Point and 3x3 Matrix**: Point `P` is mapped to `project(M*(x(P), y(P), 1))`, where `project(x, y, z)` maps `(x, y, z)` to `(x/z, y/z)`. - **3D Point and 3x3 Matrix**: Point `P` is mapped to `M*P`. - **3D Point and 2x2 Matrix**: Point `P` is mapped to `N*P`, where `N` is the order 3 completion of `M`. This command also works with quadrics and images. ### Request Example ``` // Example 1: Rotation of a 2D vector let M = {{cos(π/2),-sin(π/2)}, {sin(π/2), cos(π/2)}}; let u = (2,1); ApplyMatrix(M, u); // yields u' = (-1,2) // Example 2: Transformation with a 3x3 matrix and 2D vector (implicitly treated as 3D with z=1) let M = {{1,1,0},{0,1,1},{1,0,1}}; let u = (2,1); ApplyMatrix(M, u); // yields u'=(1, 0.67) after projection // Calculation: M * (2,1,1)^T = (3,2,3)^T. Projection: (3/3, 2/3) = (1, 0.67) ``` ### Response #### Success Response (200) - **Transformed Object** (Object): The geometric object after applying the transformation. #### Response Example ```json // For Example 1: Transformed vector u' { "result": "(-1,2)" } // For Example 2: Transformed vector u' { "result": "(1, 0.67)" } ``` ``` -------------------------------- ### Example: Constrain Point Movement (2D) Source: https://geogebra.github.io/docs/manual/en/commands/DynamicCoordinates Demonstrates how to use DynamicCoordinates to restrict the movement of a point. In this example, point C cannot be moved to the right of point A. ```GeoGebra A = Point(xAxis) B = Point(xAxis) DynamicCoordinates(B, Min(x(B), x(A)), 0) SetVisibleInView(B, 1, false) SetLayer(C, 1) ``` -------------------------------- ### Create Line using Parametric Syntax (GeoGebra) Source: https://geogebra.github.io/docs/manual/en/commands/Line Defines a line using parametric equations. This syntax allows for creating lines in both 2D and 3D spaces, specifying a starting point and a direction vector scaled by a parameter 'r'. ```GeoGebra X = (1, 2) + r (2, 3) ``` ```GeoGebra X = (1, 2, 3) + r (2, 3, 4) ``` -------------------------------- ### Split Text Command Example Source: https://geogebra.github.io/docs/manual/en/commands/Split Demonstrates the usage of the Split command to divide a string based on a list of separators. The command takes the text to be split and a list of delimiters as input, returning a list of the resulting substrings. ```GeoGebra Split("3cos(t)cos(2y)", {"cos"}) ``` -------------------------------- ### Example: Collinear Points Locus Source: https://geogebra.github.io/docs/manual/en/commands/LocusEquation An example showing how to calculate the locus of a point A that makes points A, B, and C collinear. This utilizes the LocusEquation command with a boolean expression for collinearity. ```geogebra LocusEquation(AreCollinear(A, B, C), A) ``` -------------------------------- ### HistogramRight Command - Syntax 2 Source: https://geogebra.github.io/docs/manual/en/commands/HistogramRight Creates a histogram using class boundaries, raw data, and density options. Data points equal to the right boundary are included in that class. ```APIDOC ## HistogramRight / Histogram ### Description Creates a histogram from raw data using specified class boundaries. Data points equal to the right boundary of a class are included in that class. Density options are available. ### Method Not Applicable (Command-line function) ### Endpoint Not Applicable ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ``` HistogramRight([0, 1, 2, 3], [0.5, 1.1, 1.9, 2.0, 2.5, 3.0], false) HistogramRight([0, 1, 2, 3], [0.5, 1.1, 1.9, 2.0, 2.5, 3.0], true, 1.5) ``` ### Response #### Success Response (200) Returns a histogram object. #### Response Example ```json { "type": "histogram", "boundaries": [0, 1, 2, 3], "rawData": [0.5, 1.1, 1.9, 2.0, 2.5, 3.0], "useDensity": false, "densityScaleFactor": null } ``` ``` -------------------------------- ### Asymptote Command for Functions Source: https://geogebra.github.io/docs/manual/en/commands/Asymptote This section explains how to use the Asymptote command to find the asymptotes of a function. Note that this syntax is not available in the Graphing and Geometry Apps. ```APIDOC ## Asymptote( ) ### Description GeoGebra will attempt to find the asymptotes of the function and return them in a list. It may not find them all, for example vertical asymptotes of non-rational functions such as ln(x). **This syntax is not available in the Graphing and Geometry Apps** ### Method Not applicable (this is a command within the GeoGebra application). ### Endpoint Not applicable. ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example `Asymptote((x^3 - 2x^2 - x + 4) / (2x^2 - 2))` ### Response #### Success Response (200) Returns a list of asymptotes (lines or equations). #### Response Example `_{y = 0.5x - 1, x = 1, x = -1}_` ``` -------------------------------- ### SetDecoration (Segment, Number, Number) Source: https://geogebra.github.io/docs/manual/en/commands/SetDecoration Sets the aspect of the line start and end of a segment. The first number defines the style of the line segment start, and the second number sets the style of the line segment end. ```APIDOC ## POST /websites/geogebra_github_io_manual/en/SetDecorationSegment ### Description Sets the aspect of the line start and end of a segment. In order to view the decoration, it’s necessary to hide the two points that define the vertices of the segment. The segment decoration can also be set in the _Style_ tab of the _Properties_ window of the segment. The first number used as command parameter defines the style of the line segment start, and the second number sets the style of the line segment end. ### Method POST ### Endpoint /websites/geogebra_github_io_manual/en/SetDecorationSegment ### Parameters #### Request Body - **segment** (Segment) - Required - The segment object to modify. - **startDecoration** (Number) - Required - The numeric code for the start decoration style. - **endDecoration** (Number) - Required - The numeric code for the end decoration style. ### Request Example ```json { "segment": "mySegment", "startDecoration": 4, "endDecoration": 5 } ``` ### Response #### Success Response (200) - **status** (string) - Indicates success. #### Response Example ```json { "status": "Segment decoration set successfully" } ``` ### Decoration Codes: Value | Decoration ---|--- 0 | No decoration 1 | vertical bar 2 | empty square 3 | filled square 4 | arrow 5 | filled arrow 6 | empty dot 7 | filled dot ``` -------------------------------- ### NIntegral( , , ) Source: https://geogebra.github.io/docs/manual/en/commands/NIntegral Computes and plots the definite integral of the given function from a start x-value to an end x-value. The result is a numerical approximation of the integral. ```APIDOC ## NIntegral( , , ) ### Description Computes (numerically) and plots the definite integral \int_{a}^{b}f(x)dx of the given function f, from a (Start x-Value) to b (End x-Value). ### Method N/A (This is a command, not an API endpoint) ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example `NIntegral(ℯ^(-x^2), 0, 1)` ### Response #### Success Response (200) Returns the numerical value of the definite integral (e.g., _0.75_). #### Response Example _0.75_ ``` -------------------------------- ### TurtleBack Command Example Source: https://geogebra.github.io/docs/manual/en/commands/TurtleBack Demonstrates the usage of the TurtleBack command to move a turtle backward. The command takes the turtle object and the distance as arguments. The actual movement may require pressing the 'Play' button if the turtle is not at the origin and the 'Pause' button is displayed. ```GeoGebra TurtleBack(turtle, 2) ``` -------------------------------- ### AttachCopyToView Command (Basic) Source: https://geogebra.github.io/docs/manual/en/commands/AttachCopyToView Creates a copy of an object in a specified view. If View is 0, an independent copy is made. If View is 1 or 2, a dependent copy with a constant size in that Graphics View is created. ```APIDOC ## AttachCopyToView ### Description Creates a copy of an object in a specified view. For View = 0, an independent copy is made. For View = 1 or 2, a dependent copy with a constant size in that Graphics View is created. ### Method Not Applicable (Command-line/Scripting) ### Endpoint Not Applicable (Command-line/Scripting) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body * **Object** (Object) - Required - The object to copy. * **View** (0|1|2) - Required - The target view (0 for independent copy, 1 or 2 for dependent copy with constant size). ### Request Example ``` AttachCopyToView(poly, 1) ``` ### Response #### Success Response (200) * **Success** (boolean) - Indicates if the operation was successful. #### Response Example ```json { "Success": true } ``` ``` -------------------------------- ### Take List Elements from Start Position - GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/Take Extracts elements from a list starting from a specified position to the end of the list. This function operates on GeoGebra's list data type. ```geogebra Take({2, 4, 3, 7, 4}, 3) ``` -------------------------------- ### StartAnimation() - Pause or Resume Animations Source: https://geogebra.github.io/docs/manual/en/commands/StartAnimation Controls the pausing or resuming of all animations based on a boolean value. ```APIDOC ## StartAnimation() ### Description When the boolean is false, pauses all animations, otherwise resumes them. ### Method `APICALL` ### Endpoint `/websites/geogebra_github_io_manual_en/StartAnimation` ### Parameters #### Query Parameters - **boolean** (boolean) - Required - `true` to resume, `false` to pause animations. ### Request Example ```json { "command": "StartAnimation(false)" } ``` ### Response #### Success Response (200) - **message** (string) - Indicates successful execution. #### Response Example ```json { "message": "Animations paused successfully." } ``` ``` -------------------------------- ### Exponential Command - Creating CDF or PDF Function Source: https://geogebra.github.io/docs/manual/en/commands/Exponential Creates either the cumulative density function (CDF) or the probability density function (PDF) of an Exponential distribution. ```APIDOC ## Exponential( , x, ) ### Description If _Cumulative = true_, creates the cumulative density function (CDF) of an Exponential distribution with the given _lambda_. Otherwise, it creates the probability density function (PDF) of the distribution. ### Method N/A (Function Call) ### Endpoint N/A (Function Call) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example ``` Exponential(2, x, true) // Creates CDF function Exponential(2, x, false) // Creates PDF function ``` ### Response #### Success Response (200) - **Function** (object) - The created CDF or PDF function. #### Response Example ```json { "Function": "ExponentialCDF[2]" // Example for CDF } ``` ``` -------------------------------- ### Take Text Elements from Start Position - GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/Take Extracts characters from a text string starting from a specified position to the end of the string. This function operates on GeoGebra's text data type. ```geogebra Take("GeoGebra", 3) ``` -------------------------------- ### Create List of Integers from Start to End Value (GeoGebra) Source: https://geogebra.github.io/docs/manual/en/commands/Sequence Creates a list of integers within a specified range, from a start value 'k' to an end value 'n'. The sequence can be increasing or decreasing. ```GeoGebra Sequence(7, 13) ``` ```GeoGebra Sequence(18, 14) ``` ```GeoGebra Sequence(-5, 5) ``` ```GeoGebra 7..13 ``` -------------------------------- ### NIntegral( , , , ) Source: https://geogebra.github.io/docs/manual/en/commands/NIntegral Computes the definite integral of a function with respect to a specified variable, between a start and end value. This version is particularly useful in the CAS View. ```APIDOC ## NIntegral( , , , ) ### Description Computes (numerically) the definite integral \int_{a}^{b}f(t)dx of the given function f, from a (Start value) to b (End value), with respect to the given variable. This syntax can also be used in the CAS View. ### Method N/A (This is a command, not an API endpoint) ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example `NIntegral(ℯ^(-a^2), a, 0, 1)` ### Response #### Success Response (200) Returns the numerical value of the definite integral (e.g., _0.75_). #### Response Example _0.75_ ``` -------------------------------- ### First Command - List Input Source: https://geogebra.github.io/docs/manual/en/commands/First This section details how to use the 'First' command to extract elements from a list. ```APIDOC ## POST /commands/first/list ### Description Gives a new list that contains the first element or the first n elements of the given list. ### Method POST ### Endpoint /commands/first/list ### Parameters #### Request Body - **inputList** (List) - Required - The list from which to extract elements. - **n** (Number) - Optional - The number of elements to extract from the beginning of the list. If omitted, only the first element is returned. ### Request Example ```json { "inputList": [1, 4, 3] } ``` ```json { "inputList": [1, 4, 3], "n": 2 } ``` ### Response #### Success Response (200) - **result** (List) - A new list containing the first element or the first n elements. #### Response Example ```json { "result": [1] } ``` ```json { "result": [1, 4] } ``` ``` -------------------------------- ### First Command - Text Input Source: https://geogebra.github.io/docs/manual/en/commands/First This section explains how to use the 'First' command to extract characters from a text string. ```APIDOC ## POST /commands/first/text ### Description Gives the first character or the first n characters of the given text. ### Method POST ### Endpoint /commands/first/text ### Parameters #### Request Body - **inputText** (Text) - Required - The text string from which to extract characters. - **n** (Number) - Optional - The number of characters to extract from the beginning of the text. If omitted, only the first character is returned. ### Request Example ```json { "inputText": "Hello" } ``` ```json { "inputText": "Hello", "n": 2 } ``` ### Response #### Success Response (200) - **result** (Text) - A string containing the first character or the first n characters. #### Response Example ```json { "result": "H" } ``` ```json { "result": "He" } ``` ``` -------------------------------- ### Create Vector Between Two Points (GeoGebra) Source: https://geogebra.github.io/docs/manual/en/commands/Vector Creates a vector from a specified start point to a specified end point. This command requires two points as input: the starting point and the ending point of the vector. ```geogebra Vector((1, 1), (3, 4)) ``` -------------------------------- ### Create Surface using Input Bar Source: https://geogebra.github.io/docs/manual/en/3D_Graphics_View Shows how to define and create a 3D surface by inputting its mathematical function into the Input Bar or Input Field. This allows for the visualization of functions in three dimensions. ```plaintext f(x, y)=sin(x*y) ``` -------------------------------- ### Take List Elements from Start to End Position - GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/Take Extracts elements from a list within a specified range, from a start position to an end position. This function operates on GeoGebra's list data type. ```geogebra Take({2, 4, 3, 7, 4}, 3, 4) ``` -------------------------------- ### Example: Attaching a Scaled Copy of a Polygon in GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/AttachCopyToView Illustrates attaching a dependent copy of a polygon to Graphics View 1, scaling it to 100px by 100px and positioning it at the top-left corner. ```geogebra AttachCopyToView(poly, 1, (0, 0), (1, 1), (0, 0), (100, 100)) ``` -------------------------------- ### Asymptote Command for Implicit Curves Source: https://geogebra.github.io/docs/manual/en/commands/Asymptote This section explains how to use the Asymptote command to find the asymptotes of an implicit curve. ```APIDOC ## Asymptote( ) ### Description Yields a list containing all the asymptotes of the Implicit Curve. ### Method Not applicable (this is a command within the GeoGebra application). ### Endpoint Not applicable. ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example `Asymptote(x^3 + y^3 + y^2 - 3 x = 0)` ### Response #### Success Response (200) Returns a list of lines representing the asymptotes. #### Response Example `_{x + y = -0.33}_` ``` -------------------------------- ### RemoveUndefined Command Example - GeoGebra Source: https://geogebra.github.io/docs/manual/en/commands/RemoveUndefined Demonstrates the usage of the RemoveUndefined command in GeoGebra. This command takes a list as input and returns a new list with all undefined elements removed. The example shows how it processes a sequence where some terms are undefined. ```GeoGebra RemoveUndefined(Sequence((-1)^k, k, -3, -1, 0.5)) ``` -------------------------------- ### Redefine Line to Segment - GeoGebra Example Source: https://geogebra.github.io/docs/manual/en/Redefine_Dialog This example illustrates converting an existing line 'h' (defined by two points A and B) into a segment using the Redefine dialog. The definition changes from `Line[A, B]` to `Segment[A, B]`. ```geogebra Line[A, B] ``` ```geogebra Segment[A, B] ``` -------------------------------- ### GeoGebra: Naming Objects with Indices (LaTeX) Source: https://geogebra.github.io/docs/manual/en/Commands Illustrates how to use indices within object names in GeoGebra, leveraging LaTeX syntax. Examples show creating 'A1' as 'A_1' and 'SAB' as 'S_{AB}'. This allows for structured and clear naming of geometric elements. ```GeoGebra A_1 ``` ```GeoGebra S_{AB} ```