In scilab how do you plot sin as a curve rather than as straight lines?

1

In scilab how do you plo sin as curve rather than as straight lines?

x=[0,90,180,270,360]
// sind is sin with argument of degrees. rather than radians.
// https://help.scilab.org/docs/5.5.2/en_US/sind.html
y=sind(x)
plot(x,y)

enter image description here

But I want something more like

enter image description here

i.e. a curve rather than straight lines.

barlop

Posted 2019-10-15T15:31:55.183

Reputation: 18 677

What about using more points to draw the curve (increase x by 1, not 90)? – Máté Juhász – 2019-10-15T15:44:46.653

@MátéJuhász ah you're right x=[0:1:360] Now I just wonder how to get the intersection of x=y=0 – barlop – 2019-10-15T16:17:04.967

1@MátéJuhász you can post your answer and I will accept it. This works, increases by 1 up to 360. x=[0:1:360] (as for the x=y=0 thing i've taken it out of the question and will make a separate question for it) – barlop – 2019-10-15T22:50:16.223

Answers

0

You need to have much more points to see the chart as a sin function, not just set off lines.

Added by barlop

like this

x=[0:1:360]

to increase from 0 to 360 in steps of 1

enter image description here

Máté Juhász

Posted 2019-10-15T15:31:55.183

Reputation: 16 807