Application targets for the dn-m project.
dn-m / math Goto Github PK
View Code? Open in Web Editor NEWHelpful mathematical tools for music and graphics
License: MIT License
Helpful mathematical tools for music and graphics
License: MIT License
Add a free function:
func powersOfTwo <T: FixedWidthInteger> (coefficient: T = 2, max: T = T.max, overshooting: Bool = false) -> PowerOfTwoSequence<T>
Similar to #37, there is a strangely long compilation time for quadratic.swift
.
Using .hashValue
is deprecated. This causes warnings to pop up not just in the Math
module, but in all downstream modules, as well.
Now that we don't need the bitwise operations to manage InvertibleOptionSet
(which is now taken care of by InvertibleEnum
via the derived allCases
), we can lift Bitwise
up to the Math
level, rather than having it nestled within Structure
(which felt strange).
With SE-0202: Random Unification Swift 4.2 brings a well-designed, safe, and flexible random number generation API.
Either utilize this new API within our RandomProducing
protocol, or remove the protocol entirely.
Note that Swift 4.2 is not yet released.
Currently, there exists here BinaryInteger.isDivisible(by:)
, upon which .isEven
and .isOdd
are implemented.
With SE-0225, BinaryInteger.isMultiple(of:)
will exist in the stdlib. Use this instead, for the reasons used in the review.
This will only be applicable as of Swift 5.
Then, nest within Interval
.
It currently takes a strangely long time to compile Scale.swift
, particularly given this file only contains two functions. This is felt downstream when building projects with Math
as a dependency.
Currently, there are four instances of importing Darwin
:
-Sources/Math/LinearRegression.swift
-Sources/Math/Functions.swift
-Sources/Math/DoubleExtensions.swift
-Sources/Math/Quadratic.swift
-Sources/Math/Scale.swift
These are always for trivial functions like pow(_:_:)
. In order to serve Linux, conditionally import Glibc
.
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.