saving . . . saved matrix has been deleted. matrix has been hidden .
matrix
Title
Question
while typing 1/2 shows as 0.5 not 1upon 2

Scilab Matrix-Operations 00-01 min 0-10 sec 27-05-20, 11:53 p.m. dharmesh2809@gmail.com

Answers:

Scilab represents the answer in decimal format only.

But you can still have a look at the following options:

1. You can use 'rat' function. For e.g.,
Assume, n- numerator, d- denominator
[n,d]=rat(1.5/10)
 n  =

   3.
 d  =

   20.
OR
2. You can use 'rlist' function, this represents the given input values in fraction format:
rlist(3.5,10)
 ans  =
 
   3.5 
   --- 
   10  
28-05-20, 11:43 a.m. rashpat93


Log-in to answer to this question.