• Welcome to the new Internet Infidels Discussion Board, formerly Talk Freethought.

Search results for query: *

  1. S

    Is a Hidden God the Same as No God?

    A hidden god is a mystery and everybody lies a good mystery. A physical god is something else. Disobey and you get zapped with lightning. No interpretation of what god wants no ifs ands or buts and no deferred punishment until you die.
  2. S

    Local Weather

    I feel for those in the heat, today it is cool and I am wearing a hoody around the apartment instead of a T shirt. Added ab extra blanket last night. The local climate is changing, no question about that. Most people in the region did not have air committing until recent years. Seattle s ok...
  3. S

    The Programming Thread

    ...are too big for the stack so they are allocated on the heap. #include <chrono> #include <random> void normal(int n,double u,double std,double *y){ cout<<"normal"<<endl; int i; unsigned seed = chrono::system_clock::now().time_since_epoch().count(); default_random_engine...
  4. S

    The Programming Thread

    A clean PDF of the paper with derivationss and original FORTRAN code. It was designed to be portable, it finds the actual int size. http://i.stanford.edu/pub/cstr/reports/cs/tr/73/334/CS-TR-73-334.pdf
  5. S

    Local Weather

    The last few months were all over the place in terms of historical patters. Right now we are in the usual high 40s to 50s at night and 60s to upper 70s in the day sometimes in the 80s, typical for his time.
  6. S

    The Programming Thread

    I coded it from FORTRAN from the 70s paper. URAND A Universal Random Number Generator, its on the net. For a given m K1 and K2 are constants that can be precalculated, I showed it as it is in the paper for clarity. Each iteration then is a multiplication and an addition. In the days of...
  7. S

    The Processor Thread

    Don't forget the Z80, 8051 and 6502. They were important. The Commodore computer was 6502. The DEC VAX was an 9mrtant computer. PDP. The first company I word at used a VAX for software dependent, it had an open bus architecture and 3rd party plug in boards. You might call it the PC of the...
  8. S

    The Programming Thread

    C++ Normal, Exponential Distributions #include <random> #include <chrono> void save(int n,string fname, double *x1,double *x2){ int i; FILE *p = fopen(fname.c_str(),"w"); for(i=0;i<n;i++)fprintf(p,"%.10f\t %.10f\t \n",x1[i],x2[i]); fclose(p); }//save() int...
  9. S

    The Programming Thread

    Moving on to C++ rand https://learn.microsoft.com/en-us/cpp/standard-library/random?view=msvc-170 The degree of randomness from my simple test is on the the degree of uniform randomness for the mt19937_64 generator is on the order of URAND. About 0.005% There are multiple engines including...
  10. S

    The Programming Thread

    ...seed){ //uniform distribution ints 0 - 2147483646 static unsigned rand_num = 1; unsigned m = 0x7fffffff; unsigned k1 = 2*floor(m*(.5 - sqrt(3)/6.)) + 1; unsigned k2 = 8*ceil(m*atan(1.)/8.) + 5; static unsigned temp_seed = 1; if(seed != temp_seed){...
  11. S

    There is no evidence of Abiogenesis

    My response is life is a set of chemical processes, and natural spontaneous reactions occir. You need a chemical mix and an energy source. Black smokers, underused galvanic vents are a good candidate. Heat and chancels. There are small organisms at the vents that live on chemicals. There is...
  12. S

    We are overloading the planet: Now What?

    From reporting it is looking grim. A Nigerian leader called African youth a ticking tie bomb. We are seeing Africans crossing the southern border. Africa has been trying to industrialize but has gotten very far. Africa has about 20% of global population.
  13. S

    Probability Distributions

    ...//random number >0,<1 double unif_rand(void){return double(rand()+1)/(RAND_MAX+2);} double expon_random(double u) {return -log(1.-unif_rand())*u;} Make u 1 to get a mean of 1. The n0rmal function works but it is incomprehensible to me, can you elaborate on how it works or provide a link...
  14. S

    Probability Distributions

    The Central Limit Theorem is important in applied samplng statistics. It says the distribution of sample means regardless of the underlying distributed will be normally distributed, or close enough to use normal statistics. https://en.wikipedia.org/wiki/Central_limit_theorem I know it holds...
  15. S

    Probability Distributions

    ...and the median of the normal distribution are the same. For the exponential distribution the mean and median are not the same. The median = log(2)*mean. The mean and starboard deviation may appear correct but for the exponential distribution the median = log(2)*mean. t as to be checked...
  16. S

    Determinates And Inverse Matrix

    ...I tested it against Scilab an established math tool. class MATINV{ public: double det(int n,double *x); void minv(int n,double *x,double *xinv); private: double Det(int k,double a[25][25]); void cofactor(int f,double num[25][25],double fac[25][25]); }; double...
  17. S

    Probability Distributions

    The normal distribution I coded is 6 to 7 sigma depending on the number of samples. To get that I used URAND with a larger max rand number, IOW finer resolution of the probabilities. Using C rand() resulted in +- 2.5 sigma, not good enough for simulations. The 6 sigma tails are important when...
  18. S

    Probability Distributions

    ...by Malcom and Moler unsigned long long randll = 1; //random number unsigned long long m = 0x7fffffff; //unsigned long long k1 = 2*floor(m*(.5 - sqrt(3)/6.)) + 1; //unsigned long long k2 = 8*ceil(m*atan(1.)/8.) + 5; unsigned long long k1 = 2.*(m*(.5 - sqrt(3)/6.)) + 1...
  19. S

    Moved Another step towards answering the question of life's origins - religion

    It is important to know who I am speaking to. When I say atheist I mean atheist without equivocation. Gay, straight, religious, atheist, man,woman, black, white or brown I do not care. What I want to know is who somebody is. I think most of op culture is a joke. , so when you say I should...
  20. S

    1000 Questions In Reasoning

    MENSA used to have a free sample test, now you have to pay. There is what they call a challenge. https://www.mensa.org/mensa-iq-challenge/
Back
Top Bottom