[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 46 KB, 1024x600, Schermata-1.png [View same] [iqdb] [saucenao] [google]
3090464 No.3090464 [Reply] [Original]

hey /sci/ wtf is that?

The program is Octave.
That was what i did:

x=linspace(-100, 100)
y=log(sin(x))

first, i made the right draw with plot(x, y)

then, just because i'm a curious newbie I did it:
plot(y)
and so this picture.

what the axis are supposed to be to make any sense?

>> No.3090472 [DELETED] 

bump

>> No.3090474

your computer must be broken, all the words on the menu are misspelled too

>> No.3090484
File: 38 KB, 279x267, 0...jpg [View same] [iqdb] [saucenao] [google]
3090484

>>3090474

>> No.3090488

Calculate and plot each point on the map and you will find out why it worked. It may take a little while but it will be very satisfying

>> No.3090532

it just plots y=log(sin(x)) using values (-100,100). Sin(x) will give some decimal number which will be plugged into y=log (x) which gives a negative and positive number. Thats why theres lines going up and down. When X gets towards 0 and positive numbers it gets a little hairy given the previous equation.

anyways,just plotted the y function.

>> No.3090585

>>3090532

thanks for the explanation, but each input element should be associated to one and only one output, am I wrong?
Why all that outputs for each value of x?

>> No.3090601 [DELETED] 

bump

>> No.3090619
File: 29 KB, 1024x600, Schermata-2.png [View same] [iqdb] [saucenao] [google]
3090619

this is how the graph of the function should be,
made with plot(x, y)

>> No.3090734
File: 16 KB, 500x500, feelsbadcomp.jpg [View same] [iqdb] [saucenao] [google]
3090734

>> No.3090917
File: 60 KB, 600x467, BuzzAldrin-1.jpg [View same] [iqdb] [saucenao] [google]
3090917

buzz