The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
diff command doesn'texecute in a program
08-10-2024, 12:20 PM
Post: #1
diff command doesn'texecute in a program
In below program, diff command doesn't execute in CAS view, any suggestion?
EXPORT DERIVADA()

BEGIN
LOCAL fx, x, n, resultado;

// Solicitar al usuario la función y el orden de la derivada
INPUT({{fx,[-1],{27,73,0}},
{n,[0],{46,10,1}}},
{"Derivada de una función f(x)"},{"Funcion f(x):","Orden de la derivada:"},{"",""});

// Definicion de la variable independiente x
x := 'x';

// Calculo de la derivada de orden n de la función f(x)
resultado := diff(fx,x,n);

// Mostrar el resultado
PRINT();
PRINT("Función original: "+fx);
PRINT("Derivada de orden "+n+": "+resultado);

// Devolver el resultado
RETURN resultado;

END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
diff command doesn'texecute in a program - Victorcastrejon - 08-10-2024 12:20 PM



User(s) browsing this thread: 4 Guest(s)