saving . . . saved Polynomials has been deleted. Polynomials has been hidden .
Polynomials
Title
Question
Dear Sir/Madam
      Thank you so much for the spoken tutorial, It was very helpful in learning a new software in a short span of time with good Assignments and a clear explanation in each session. I have certain doubts regarding Assignment questions.
1. In Polynomial Assignment Question number 2. I was not able to compare the two vectors. I have taken 1X5 vectors for a1 and a2 the resultant vector out of convolution of a1 and a2 was same as that of the product of a1 and a2 but when the comparison is made between the two vectors the first two values comes out as they are not equal whereas the rest 3 values comes as equal.
For this comparison purpose i have used a if loop inside a for loops.
2.similarly the tolerance value in the clear command 
pls give me a explanation regarding clear(A,epsa)
3.Is there any command to get input of the variable at the time of execution? like input()..


Scilab User-Defined-Input-and-Output None min None sec 22-05-14, 12:45 p.m. Rathina Grace Monica

Answers:

funcprot(0)
a1=input('input sequence for a1:')
a2=input('input sequence for a2:')
b=conv(a1,a2)
x=poly(0,'x')
p1=poly([a1],'x','c')
p2=poly([a2],'x','c')
p3=p1*p2
p4=poly([b],'x','c')

function f_poly(x,y)
    if (x==y) then
        disp('yes')
    else
        disp('no')
    end
endfunction

12-06-14, 11:24 a.m. manasdas17


Log-in to answer to this question.