Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18156

Re: php and big data and predictive modelling...

Newsgroups comp.lang.php
Date 2019-12-26 17:34 -0800
References <320cd439-2d99-40ea-be16-795ab84fb719@googlegroups.com> <f1f8c4f8-f99f-4158-aee7-2b172352dc71@googlegroups.com> <7e06ded4-4848-4811-85ec-23dfea85e89d@googlegroups.com>
Message-ID <d262e68e-4d8b-4c70-841f-092ffc688397@googlegroups.com> (permalink)
Subject Re: php and big data and predictive modelling...
From robamman2019@gmail.com

Show all headers | View raw


On Friday, December 27, 2019 at 12:18:44 AM UTC+2, Azathoth Hastur wrote:
> On Sunday, December 22, 2019 at 5:43:09 AM UTC-5, robamm...@gmail.com wrote:
> > pühapäev, 29. september 2019 18:41.47 UTC+3 kirjutas azathot...@gmail.com:
> > > Anyone doing php psotgresql for this?
> > > 
> > > The java framework craziness I see at work must have better alternatives!
> > 
> > I have used postgresql and php. And doing some statistical calculations in php. For example I have tried to calculate Pi. I used the so called "bombing"(method with random numbers). But the result came out so that the first 4 numbers of the number were only correct. 3.141 . I ran the code about 50 times, and there were no differences in the about 3-4 first numbers. Maybe the "bombing" method is not very good for this. I got the idea of it from schools programming lesson. I'm sure other mathematical methods would be better, but it was intresting for me to program and test it.
> > 
> > Basically I think, if you can program, then there is no difference in which language you program.
> > 
> > With the best wishes,
> > Kristjan Robam
> 
> Why not use the postgresql to calculate and sort, and php to just get in put and output?
I think postgresql should not be functional language. So no for calculationg Pi. Because non-functional programming languages have small precision. When I rethink, what I did, then it is a little bit wrong, because you can use all the points of a circle (With the Pythagoras theorem a*a+b*b=c*c). Then you get the compiler precision in Pi.

With the best wishes,
Kristjan

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

php and big data and predictive modelling... azathothhaster@gmail.com - 2019-09-29 08:41 -0700
  Re: php and big data and predictive modelling... Azathoth Hastur <azathothhaster@gmail.com> - 2019-09-30 15:18 -0700
  Re: php and big data and predictive modelling... robamman2019@gmail.com - 2019-12-22 02:43 -0800
    Re: php and big data and predictive modelling... Azathoth Hastur <azathothhaster@gmail.com> - 2019-12-26 14:18 -0800
      Re: php and big data and predictive modelling... robamman2019@gmail.com - 2019-12-26 17:34 -0800
        Re: php and big data and predictive modelling... Azathoth Hastur <azathothhaster@gmail.com> - 2019-12-26 21:34 -0800
          Re: php and big data and predictive modelling... robamman2019@gmail.com - 2019-12-26 23:10 -0800
  Re: php and big data and predictive modelling... robamman2019@gmail.com - 2019-12-26 01:02 -0800

csiph-web