In Julia, there is the `isapprox` function to inexactly compare 2 numbers. (you can use it in infix form: `x≈y`. By default, two numbers are approximately equal if their relative tolerance is less than `sprt(eps(typeof(x))` (around 1e-8 for 64bit Floating point numbers)
Using equality to compare 2 floating point numbers doesn't get you anywhere, specially if you are using mathematical functions (the implementation of `sin` or `exp` could vary with operating systems or software versions)
Just to be clear Julia is "AOT-JIT", that means that the methods are compiled when used the first time. With Revise.jl (a package for interactive development) you can make a fully interactive Julia process, rewriting things on the fly, while benefiting from fast code
nice!. one thing about NaN is that, because the specification only mentions the exponent part, you have all the mantissa bits free for use, this is the idea behind signalling NaNs, that if you return a NaN for an operation, that value should have some helpful debug information
I was near the epicenter of the Chilean earthquake of 2010 (8.8),and my grandfather was in the 1960 one. The main mayority of the casualties in both earthquakes were caused by tsunamis (its really a bummer that Chile is basically a long strip of coast) we were lucky (in 2010)because the nearest big coastal population center was inside a bay, so the wave didn't hit directly.
the 1960 earthquake has a very interesting history, one day before (Saturday) , there was one big earthquake(8
1-8.3, X in mercalli m) 400 km North (city of Concepción) , that cut the communications and roadways from the capital to the south of the country. On Sunday, a second earthquake of similar magnitude struck, that finished destroying the remaining buildings in the location,but nobody died on that second earthquake because everyone was outside,for obvious reasons. Finally, the big one started not on Valdivia (300 km South) but the fault line extended 1000 km reaching Valdivia and beyond, 135 people died on Japan, Valdivia itself sunk permanently 2.7 meters (8 feet) ,one chain of lakes got their exit rivers blocked, so the water level was rising rapidly and if overflowed, it would flood again the same areas affected by the earthquake, so a joint operation between military and private parties were set up to try to unblock the whole system (they succeeded), there was a case of human sacrifice, trying to calm the fury of the gods that caused such destruction, it was wild
It clearly depends on the workload. If you have tons of 3d articles or polygons on a screen, one of the most repeated operations are the calculation of norms (x/sqrt(sum(x)). John carmack came to the fast inverse sqrt root explicitly for this speed advantage
In Julia, where the paralleization options are explicit (SIMD, AVX, threads or multiprocessing), it always depends on the load, for small operation (around 10000 elements) a single thread is faster only for the thread spawning time (around 1 microsecond). And there is the issue of the independent Blas threaded model, where the Blas threads sometimes interfere with Julia threads...
In a nutshell, parallelization is not a magical bullet, but is a good bullet to have at your disposal anyway
I saw in implementation (CSV parser in Julia) were the sentinel value was randomly assigned at read time (if a value in the input was equal to the sentinel value, change randomly).after parsing, the sentinel value would be converted to the appropriate data type (Julia Missing)
https://arxiv.org/abs/1608.04295 this paper is the statistical basis of time measuring in Julia. It is, at least a good read when trying to measure the execution of some program seriously at low level. It uses also a predictor of the estimate number of evaluations via a logistic function
I remembered that neural differential equations are better suited to represent time series data, I saw them being used a lot in pharmacological processes, any additional idea or insight related to this?
Yeah, the bromine ion has half life in the body of some weeks, and can cause some neurologic problems,but the body eventually expels it away. I would be worried, but is, not in my primary list of food risk
It's important to note the difference between the two main sources of lithium. Chile and Bolivia has lithium in the form of brines (mainly Lithium Cloride, high concentration, relatively easy to extract) and ores (pegmatite, hard to extract, as requires mechanical work to grind the rock). the region of the north of Chile, Bolivia and Argentina has the mayority of reserves of the world, following by Afghanistan. Australia has a lot of pegmatite.
Another advantage is the short distance between a production source (solar panels in the desert) and a storage solution (Andes Mountains, ideal for a Hydroelectric energy storage. there is aproyect looking to exploit this fact (http://valhalla.cl/)
Using key-value pairs? (Julia)
`copy(src=>dest)`
The advantage of that notation in this case is that expresses an explicit non-conmutability of the arguments.