thi-ng / math Goto Github PK
View Code? Open in Web Editor NEWCommon math functions, macros & utilities for Clojure/Clojurescript
License: Apache License 2.0
Common math functions, macros & utilities for Clojure/Clojurescript
License: Apache License 2.0
Reported by @dimovich via Discord: https://discordapp.com/channels/445761008837984256/445761417295953930?jump=453124166737068043
( (juxt (partial apply min)(partial apply max))
(take 100000 (map noise1 (iterate (partial + (rand)) (rand 100000)))))
;;=> [-0.6310094734594794 0.631009462592625]
maybe NORM const should be accessible to the user?
Iโm using this nifty library (and colors) to do some color blending in the UI for my integration environment for DJ performances, Beat Link Trigger. At startup, a whole bunch of warnings are generated because of the shadowing of abs
:
Warning: protocol #'thi.ng.math.core/IMathOps is overwriting function abs
WARNING: abs already refers to: #'clojure.core/abs in namespace: thi.ng.math.core, being replaced by: #'thi.ng.math.core/abs
WARNING: parse-long already refers to: #'clojure.core/parse-long in namespace: thi.ng.strf.core, being replaced by: #'thi.ng.strf.core/parse-long
WARNING: parse-double already refers to: #'clojure.core/parse-double in namespace: thi.ng.strf.core, being replaced by: #'thi.ng.strf.core/parse-double
WARNING: parse-boolean already refers to: #'clojure.core/parse-boolean in namespace: thi.ng.strf.core, being replaced by: #'thi.ng.strf.core/parse-boolean
This has not been that significant an issue since most of my users run the program using the macOS and Windows launchers, so these warnings are buried in a log file. But I am starting to get some people who are using it from the command line on other operating systems, and these become much more intrusive and drown out my own errors and messages in that context. I was going to come here to suggest the use of refer-clojure
to solve this, but I see someone has already submitted a pull request to do so. Can that be merged, or is there some problem holding up that task?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.