Search found 454 matches

by bluatigro
Nov 08, 2017 8:58
Forum: General
Topic: quantum computing sim
Replies: 17
Views: 381

Re: quantum computing sim

update : some error's that you al noticed removed '' bluatigro 8 nov 2017 '' quantum computer sim '' based on : '' https://quantumexperience.ng.bluemix.net/qx/experience randomize timer const as double pi = atn( 1 ) * 4 sub rotate( byref k as double , byref l as double , r as double ) dim as double ...
by bluatigro
Nov 06, 2017 12:47
Forum: General
Topic: quantum computing sim
Replies: 17
Views: 381

Re: quantum computing sim

update : added some gates '' bluatigro 5 nov 2017 '' quantum computer sim '' based on : '' https://quantumexperience.ng.bluemix.net/qx/experience randomize timer const as double pi = atn( 1 ) * 4 sub rotate( byref k as double , byref l as double , r as double ) dim as double s , c , hk , hl hk = k *...
by bluatigro
Nov 05, 2017 12:25
Forum: General
Topic: quantum computing sim
Replies: 17
Views: 381

Re: quantum computing sim

i dont think i wood be any help i been proggamming clasical computers for +-30 years this is a hole different ball game quantum chess ? i tryed classic chess and that was already to diffecult for my [ see some were on this site ] lets start simple so i kan get the concepts in our head quantum tic ta...
by bluatigro
Nov 03, 2017 12:50
Forum: General
Topic: quantum computing sim
Replies: 17
Views: 381

quantum computing sim

i font this : https://quantumexperience.ng.bluemix.net/qx/experience i tryed to get it in FB i got somting i don't know what next i got so far : '' bluatigro 3 nov 2017 '' quantum computer '' based on : '' https://quantumexperience.ng.bluemix.net/qx/experience randomize timer const as double pi = at...
by bluatigro
Oct 30, 2017 12:27
Forum: General
Topic: 3 salesman story
Replies: 1
Views: 85

3 salesman story

this is why you have to quetion every number in a outcome of a investigation in the media '' bluatigro 30 okt 2017 '' statestiek dim as double a( 2 ) , b( 2 ) , da , db dim as integer i dim as string in for i = 0 to 2 read da , db a( i ) = da b( i ) = db next i data 7 , 14 data 5 , 13 data 2 , 7 pri...
by bluatigro
Oct 18, 2017 12:32
Forum: General
Topic: try at backprop NN
Replies: 0
Views: 86

try at backprop NN

i fount a c++ ANN exaple on the net i tryed to translate it i don't have mutch experiance whit pointers please help whit the todo's and typo's '' bluatigro 18 okt 2017 '' neural net from c++ : ''http://www.learnartificialneuralnetworks.com/ ''neural-network-software/backpropagation-source-code/ type...
by bluatigro
Oct 17, 2017 8:54
Forum: General
Topic: cryptografix
Replies: 11
Views: 313

Re: cryptografix

found on rosetta code ' version 29-11-2016 ' compile with: fbc -s console ' TRUE/FALSE are built-in constants since FreeBASIC 1.04 ' But we have to define them for older versions. #Ifndef TRUE #Define FALSE 0 #Define TRUE Not FALSE #EndIf Function mul_mod(a As ULongInt, b As ULongInt, modulus As ULo...
by bluatigro
Oct 09, 2017 9:05
Forum: General
Topic: cryptografix
Replies: 11
Views: 313

Re: cryptografix

we need a prime hunter : '' bluatigro 9 okt 2017 '' prime hunter dim as ulong p( 1000 ) , q , tel , no , i , fl q = 2 p( 1 ) = 2 tel = 2 no = 0 while tel < ubound( p ) fl = 0 i = 1 while p( i ) <= sqr( q ) and fl = 0 if q / p( i ) = int( q / p( i ) ) then fl = 1 no = 1 end if i = i + 1 wend if fl = ...
by bluatigro
Oct 09, 2017 8:50
Forum: General
Topic: cryptografix
Replies: 11
Views: 313

Re: cryptografix

some code i had in liberty basic : '' bluatigro 9 okt 2017 '' bigint const as string zero = "0000000000000000000000000000000000000000" _ + "0000000000000000000000000000000000000000000000000000000000000" sub nosign byref a as string , byref sign as string if left( a , 1 ) = "...
by bluatigro
Oct 09, 2017 8:13
Forum: General
Topic: cryptografix
Replies: 11
Views: 313

Re: cryptografix

some time ago i write this : '' bluatigro 9 okt 2017 print "demonstration of the diffie hellman algoritm" print "in reality g and p are mutch bigger" print "is being used for encryption" print "g and p cant be any random prime" print "i dont know whit whi...
by bluatigro
Oct 04, 2017 12:52
Forum: General
Topic: cryptografix
Replies: 11
Views: 313

cryptografix

in the furure there wil be a law in the Netherlands that gives the goverment the right to catch every e-mail in a block of houses and read the e-mail i don't like that so i wrote this : '' bluatigro 4 okt 2017 '' cryptografix function code( txt as string , key as string ) as string dim as string uit...
by bluatigro
Sep 25, 2017 12:55
Forum: General
Topic: Find the best 8 bit palette for an RGB image
Replies: 67
Views: 1308

Re: Find the best 8 bit palette for an RGB image

there are several options :

calculate image to grayscale
result : no colors

calculate 8r8g8b to 2r2g2b
result : 4 shades / color

1 count colors
if <= 255 ones you are done
2 sort colors on times there
take the most 255 ones in palete
problem :
wat do i do whit the lesser ones
by bluatigro
Sep 25, 2017 8:45
Forum: General
Topic: raytrace try
Replies: 2
Views: 161

Re: raytrace try

update : shadow added 3 light system [ how do i do a n light system ? ] error : my reflection's are strange see mirror1() and mirror2() all help is welokome '' bluatigro 25 sept 2017 '' triangle | sphere - ray '' light's #include "t_3d.bas" #include "basis_3d_m.bas" DIM shared AS...
by bluatigro
Sep 21, 2017 8:55
Forum: General
Topic: raytrace try
Replies: 2
Views: 161

Re: raytrace try

update : reflection added how do i do : specular , pong , refraction etc... error : where is my ground ? where is my shading ? '' bluatigro 20 sept 2017 '' raytracer ''https://sdm.scad.edu/faculty ''/mkesson/vsfx419/wip/best/winter12/jonathan_mann/raytracer.html const as double infinity = 1e300 cons...
by bluatigro
Sep 21, 2017 8:13
Forum: General
Topic: raytrace try
Replies: 2
Views: 161

raytrace try

this is a try translating a c++ example c++ code at : https://sdm.scad.edu/faculty/mkesson/vsfx419/wip/best/winter12/jonathan_mann/raytracer.html error : where is my yellow sphere ? where is my shading ? where is the shadow ? '' bluatigro 20 sept 2017 '' raytracer ''https://sdm.scad.edu/faculty ''/m...

Go to advanced search