Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Kako
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kobila suzy  
View profile   Translate to Translated (View Original)
 More options Dec 18 2003, 10:50 am
Newsgroups: hr.comp.mathematica
From: "kobila suzy" <kob...@kobila.kobila>
Date: Thu, 18 Dec 2003 16:37:53 +0100
Local: Thurs, Dec 18 2003 10:37 am
Subject: Kako
Natjerati mathematicu da crta ListPlot tako da ja inkrementiram x, a
y=Sin[x]

Pokusavam sa for petljom ali mi svaku tocku crta na posebni graf.

Dakle, trebam 256 x-y parova na isti graf, ali da ih ne moram upisivati nego
da inkrementiram varijablu u petlji.

Hvala puno.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ko  
View profile   Translate to Translated (View Original)
 More options Dec 19 2003, 9:35 am
Newsgroups: hr.comp.mathematica
From: "ko" <k...@onlineMAKNI.hr>
Date: Fri, 19 Dec 2003 15:28:54 +0100
Local: Fri, Dec 19 2003 9:28 am
Subject: Re: Kako
kobila suzy=ko

sorry, spajam se sa razlicitih racunala :))))


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ko  
View profile  
 More options Dec 19 2003, 9:35 am
Newsgroups: hr.comp.mathematica
From: "ko" <k...@onlineMAKNI.hr>
Date: Fri, 19 Dec 2003 15:28:03 +0100
Local: Fri, Dec 19 2003 9:28 am
Subject: Re: Kako

> ((-: Ima pitanja;-?

Nou.

Hvala puno.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vedran Cacic  
View profile   Translate to Translated (View Original)
 More options Dec 19 2003, 9:35 am
Newsgroups: hr.comp.mathematica
From: v...@student.math.hr (Vedran Cacic)
Date: Fri, 19 Dec 2003 14:20:47 +0000 (UTC)
Local: Fri, Dec 19 2003 9:20 am
Subject: Re: Kako

In article <brshk2$2q...@bagan.srce.hr>, kobila suzy wrote:
>Natjerati mathematicu da crta ListPlot tako da ja inkrementiram x, a
>y=Sin[x]

>Pokusavam sa for petljom ali mi svaku tocku crta na posebni graf.

>Dakle, trebam 256 x-y parova na isti graf, ali da ih ne moram upisivati nego
>da inkrementiram varijablu u petlji.

>Hvala puno.

IMHO, proceduralno programiranje (for-petlja &stuff) je daleko
ispod Mma-nivoa.

Ono sto tebi vjerojatno treba je
        Plot[Sin@x,{x,0,2Pi},PlotPoints->256,PlotDivision->1]

Ako si bas zapeo za ListPlot,
        Table[{x,Sin@x},{x,0,2Pi,2Pi/255}]
ce ti dati tvoju listu parova... koju onda nacrtas s
        ListPlot@%

Ako si bas, bas zapeo za for-petlju, yeah, moze Mma i to...
        l={};
        For[x=0,x<=2Pi,x+=2Pi/255,
                AppendTo[l,{x,Sin@x}]
        ];
        ListPlot@l

Naravno, mozes se spustiti koliko god nisko zelis...
        Program["BIZARNO.BAS"
        ;Label@5;Rem@"Tribute to BASIC"
        ;Label@10;Dim[l=Table[0.,{256},{2}]]
        ;Label@15;Let[Const,pi=4*ArcTan@1.]
        ;Label@17;Print@"Ovaj program trpa vrijednosti sinusa u tablicu"
        ;Label@22;Let[i=1]
        ;Label@25;Let[x=0.]
        ;Label@30;Let[y=Sin[x]]
        ;Label@50;Let[l[[i,1]]=x]
        ;Label@60;Let[l[[i,2]]=y]
        ;Label@62;Print["x=",x," => y=",y]
        ;Label@65;Let[x=x+2*pi/255]
        ;Label@67;Let[i=i+1]
        ;Label@70;If[x<=2*pi,Goto@30]
        ;Label@80;Gosub@ListPlot@l
        ;Label@90;End];

((-: Ima pitanja;-?

--
Veky         ... be with you ...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »