02-13-2019, 03:16 PM
Hello
Xcas has a function to print in prettyprint (2D) very important to show equations and results as in textbooks, please hpprime develop group incorporate this function
area_of_the_triangle() [enter] then 1/2 then 3 returns in pretty print
"The area of the triangle is ¾"
with print cmd ( print lineary) returns
"The area of the triangle is 3/4"
[enter]
Xcas has a function to print in prettyprint (2D) very important to show equations and results as in textbooks, please hpprime develop group incorporate this function
PHP Code:
function area_of_the_triangle()
begin
local Base, Height, Answer;
assume(Base,float);
assume(Height,float);
assume(Answer,float);
DispG; ClrGraph; ClrIO;
printf( "Please enter the base of the triangle" );
input( Base );
printf( "Please enter the height of the triangle" );
input( Height );
Answer := 1 / 2 * (Base * Height);
printf( "The area of the triangle is %gen ", Answer )
print( "The area of the triangle is ", Answer )
printf( x^2 ); // x²
print( x^2 ); // x^2
return Done;
ffunction;
area_of_the_triangle() [enter] then 1/2 then 3 returns in pretty print
"The area of the triangle is ¾"
with print cmd ( print lineary) returns
"The area of the triangle is 3/4"
[enter]