Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Simple Prng

Name: Anonymous 2014-05-13 1:00


// uses/requires a seed between 0 & 1
// returns values in range -1 to +1
function randout = sprng(n, seed, offset = 10)
randout = sin( ([1:n] .+ (offset + seed)) .^ 2.0 );
endfunction;

Name: Anonymous 2014-05-14 0:33

>>19
Mathematica is as worthless as lisp
http://mathematica.stackexchange.com/questions/8438/minimal-effort-method-for-integrating-c-functions-into-mathematica
http://mathematica.stackexchange.com/questions/8507/artistic-image-vectorization
http://mathematica.stackexchange.com/questions/5676/how-to-peel-the-labels-from-marmalade-jars-using-mathematica
http://mathematica.stackexchange.com/questions/11819/help-find-a-bright-object-on-mars
Useless indeed.

It's innate ability to deal with matrices is exactly iys strong point.
Being good at something doesn't mean that something should be your default data type. For instance, being good at manipulating floats doesn't mean you should store every single number as a float, no matter what the best representation for that number is. Mathematica won't choke in a bag of nigger cocks if you tell it to do matrix operations.

Having a matrix based language makes abstraction unnecessarily harder, for you are required to be careful with the dimensions of the matrices being manipulated instead of thinking in terms of function composition.

Since numerical methods are its main strength, you're fucked if you ever need something like an indefinite integral for an specific application (Fourier analysis is a good example) and you're left with a bunch of shitty limited precision data.

Go be a ``practical engineer'' somewhere else.

>>21
Lua is shit.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List