PSEUDOCODIGOS
AInicio Real x,y Print("funcion Matematica") Print ("valores x valores y ") for(x=2 to 10) step 0.2 { y= 3* x ^5 + 2 * x ^3 + x Print (x y ) } FINCODIGO EN CONSOLA double x = 0.0, y;
for (x = 1; x <= 10; x = x + 2.0 / 10.0)
{
y = 3 * Math.Pow(x, 5) + 2 * Math.Pow(x, 3) + x;
Console.WriteLine(x + " 3x^5 + 2x ^3 + x = " + y);
}
Console.ReadLine();
WINDOWS
PSEUDOCODIGOS
BInicio Real x,y Print("funcion Matematica") Print ("valores x valores y ") for(x=1 to 5) step 0.1 { y=1 + x + x^2/ 2.0 + x^3 /6.0 + x^4 /24.0 Print (x y ) } FINCODIGO EN CONSOLA
double x = 0.0, y; for (x = 1; x <= 5; x = x + 1.0 / 10.0) { y = 1.0 + x + Math.Pow(x, 2) / 2.0 + Math.Pow(x, 3) / 6.0 + Math.Pow(x, 4) / 24;Console.WriteLine(x + " 1.0 + x + x^2/2.0 + x^3/6.0 + x^4/24 = " + y); }Console.ReadLine(); WINDOWS
PSEUDOCODIGOS
CInicio Real t,y Print("funcion Matematica") Print ("valores t valores y ") for(x=2 to 10) step 0.2 { y= 2 * Exp( 0.8 * t ) Print (t y ) } FINCODIGO EN CONSOLA double t = 0.0, y;
for (t = 5; t <= 10; t = t + 0.5)
{
y = 2 * Math.Exp(0.8 * t);
Console.WriteLine(t + " 2e^(0.8*t) " + y);
}
Console.ReadLine();
No hay comentarios:
Publicar un comentario