Schrift
[thread]12121[/thread]

Fehler in Hash-Algorithmus (Seite 2)



<< |< 1 2 >| >> 13 Einträge, 2 Seiten
Gast Gast
 2008-07-05 15:19
#111883 #111883
betterworld+2008-07-05 12:01:37--
Gast+2008-07-05 01:33:03--
Code: (dl )
1
2
3
$res=$la*36;
$res2=$res/33;
$ra = 36/$res2;

ist gleichbedeutend mit:
Code: (dl )
$ra=$la/33;

*rechne*... Ich glaube, es ist eher
Code: (dl )
$ra = 33/$la;

Code: (dl )
36/(($la*36)/33)=1/36*($la*36)/33=($la*36)/(33*36)=$la/33
KurtZ
 2008-07-05 19:27
#111887 #111887
User since
2007-12-13
411 Artikel
BenutzerIn
[default_avatar]
Gast+2008-07-05 01:33:03--
Code: (dl )
1
2
3
$res=$la*36;
$res2=$res/33;
$ra = 36/$res2;



res2= la * 36 * 1/33
ra = 36 * 1/la * 1/36 * 33 = 33 / la
TMTOWTDYOG (there's more than one way to dig your own grave)
pq
 2008-07-05 19:29
#111889 #111889
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
Gast+2008-07-05 13:19:15--
Code: (dl )
36/(($la*36)/33)=1/36*($la*36)/33=($la*36)/(33*36)=$la/33

mal sehn.
Code: (dl )
1
2
3
$res=$la*36;
$res2=$res/33;
$ra = 36/$res2;

Code: (dl )
1
2
3
4
5
6
$ra = 36 / $res2
= 36 / ( $res / 33 )
= 36 / ( ($la * 36) / 33)
= 1 / ( ($la * 1) / 33)
= 1 / ( $la / 33)
= 33 / $la;

klammern helfen =)
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem
<< |< 1 2 >| >> 13 Einträge, 2 Seiten



View all threads created 2008-07-02 22:22.