dev.gamez.lv Forum Index dev.gamez.lv
Latvian Game Developers Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

Matemātiska problēma
Goto page Previous  1, 2
 
dev.gamez.lv Forum Index -> Matemātika un fizika
View previous topic :: View next topic  
Author Message
Inf3rnal



Joined: 15 Jun 2006
Posts: 118
Location: Neverland

PostPosted: Fri Aug 10, 2007 6:54 am    Post subject:

Vēl viena interesanta metode kā atrisināt šo problēmu Smile
_________________
while(!asleep()) sheep++;
Back to top
View user's profile Send e-mail
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Fri Aug 10, 2007 8:11 am    Post subject:

Kādā ziņā interesanta? Takš tieši tāda pati.
Nesaprotu, ko jūs esat darījuši matemātikas klasēs pamatskolā, ka pat iekavas izteiksmē nemākat atvērt:
(N-1)*N/2 + N (jo tev C=N) = N*N/2 - N/2+N = N*N/2 + N/2 = (N*N+N)/2 = N*(N+1)/2
Back to top
View user's profile Send e-mail
Inf3rnal



Joined: 15 Jun 2006
Posts: 118
Location: Neverland

PostPosted: Fri Aug 10, 2007 9:30 am    Post subject:

C var būt vienāds ar N, un tik pat labi nebūt vienāds.
_________________
while(!asleep()) sheep++;
Back to top
View user's profile Send e-mail
Storm



Joined: 11 Apr 2006
Posts: 742

PostPosted: Fri Aug 10, 2007 10:50 am    Post subject:

Piedod, bubu, bet taa ir nevis nezinaashana, bet slinkums Very Happy Tur tak ir aciimredzami vienkashojams Smile
Back to top
View user's profile
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Fri Aug 10, 2007 11:02 am    Post subject:

Inf3rnal wrote:
C var būt vienāds ar N, un tik pat labi nebūt vienāds.

Nu tad jau nav necik grūtāk: (N*N+N)/2 - (N-C)
Back to top
View user's profile Send e-mail
Inf3rnal



Joined: 15 Jun 2006
Posts: 118
Location: Neverland

PostPosted: Fri Aug 10, 2007 12:12 pm    Post subject:

Nu jā Smile Viss kā vienēr ir vienkāršāk nekā man liekas Sad
_________________
while(!asleep()) sheep++;
Back to top
View user's profile Send e-mail
Display posts from previous:   
dev.gamez.lv Forum Index -> Matemātika un fizika All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group