Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.3.486-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.486-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.486-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.486-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.486-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.486-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.486-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.486-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.486-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.486-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.486-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.486-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.486-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.486-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.486-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.486-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.486-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.486-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.486-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.486-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.486-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f6d9b871704e8a358e910e47b3e893a884768089ecd43c0535f9dc67d51eb33d
MD5 8c0e0650f18641de85f614129e4bb693
BLAKE2b-256 2465ec8d3b3a8f30e39279c0b5b276aff09dd99993be38ce495a7bf72f3122a1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.486-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.486-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ac8bdd8e825c744f2e363418b7a9309d2ac0d67aa3ec83286740ee172c3e818c
MD5 1b712f6c10e578b0f761872895da076f
BLAKE2b-256 766ef1dbfc12877f2d3b03d1ca3a4bb09817e1987b96900d6588a7d1e3b14efc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20c80bb5202f3766519e0143d2e999ce14e2552dcf265217b87da442519bf4d0
MD5 b03f8ccc744822fc1fc3a8587bae7d22
BLAKE2b-256 016baffe705926d38ee016ca32f3477ae805f4632f6741b28e97bf279127b0cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 398b57964f5ca99f22cbcd072d620c9006e8998ab4ab9b3be152e2f5e3b1b183
MD5 d760bc9d583c106b828382985389eff9
BLAKE2b-256 da4d15a249872a96a611f02a24fa29bd0f574f30283fa8a3435ae71bcc1c8eee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 511ca0bb186a3c7e8c39dbca99359934a4f26c83ccdeebc92ad5608bf96ea303
MD5 875f55017631e60acecca265ae224905
BLAKE2b-256 ded54acff5723004994a5e83d2cbde08d8797df97e7cff2902a2de5b74225e97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.486-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.486-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 af8b7b882168c4bc2518a03147543a571216a99263feb56e3622de4b0dd1c950
MD5 129e73ee07d2aad8f87d51e0a0f9da8a
BLAKE2b-256 6148f22f3697c482b05b5ae15eceb89670c808a05e31000ed8ba0a565c40f625

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d710811bb1eccdf4e523dc908328fc77ec63ce2d26ffe7f51d3bb86b5fb31e6c
MD5 617a573fa3f9d4cc5f0d53ad6cc059e7
BLAKE2b-256 4a408ece4f36f08682fcf04f2d24b39447da59554465bb7554dd4a6db88a6d24

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4cb00fe30eaba0192f953295591cf09e9ed92405d3e96b596d3cc8516be7bfb
MD5 f6d03bf1803f7c96626d2bb43e8c6443
BLAKE2b-256 176636ec66fcb4718371e5d95db3f0320514c3f7107e9c927169ca16a7367067

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 854c624a94b9f0aa2e483e5a20d4f2f139c5e22d2ac03911cf8459f681396f8a
MD5 d6eba2965b9dd8a0895a86c9d0123b3d
BLAKE2b-256 22f62197cf712bbd6dd3a2c7a592621767d21eaec5b81e1b2451ceb2fd4c2342

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.486-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.486-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 32c097e59f3c8836a8fc882ae1c3d534de14026cc0037ba7feeadc47637a3e65
MD5 b8bc291c1c05af9e2768be69ac17e62d
BLAKE2b-256 0367ada8f6f7cac743eec1e191e72822b294029bb753444cd7c03743164ba4bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78ee4fae4bfb241875da26b3338f6a5c2bb46caa9d0cf5ff4be800373d133144
MD5 f4f890efd02e286edb188b6f1ae8cbdf
BLAKE2b-256 93c3a7650d6be83ab4bb44484765521ff594f4fd6f9bca519840dff4b91e464a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43837b4c2301009cdd7691e9523feea592f90ca27e1bf431b4ae8f9051897553
MD5 105f803230efea06cec3dd4473659778
BLAKE2b-256 396cd2cf97569d19a4028245ca15a5ed9b0b45aa416be1df5a8dbedcb5f71485

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.486-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.486-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e71471e14d86f467969202ea93b37f99e6450ccb96d4f587cbb34dd1638cedd9
MD5 f787df236e75fea4769385ded6def179
BLAKE2b-256 767106830386a2b96014b324d44f46c73456d1bdd2fda6ebb82452e3efa63f10

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.486-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.486-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2ad0d7144846fc5e8bed86108d61e8a810d1a5fcce386e5c01f2a0f386fb5b99
MD5 6e13a9718b2f8f9b1c7c7078f3fa01b9
BLAKE2b-256 b23f08465372c826c621daa593f7dca352e59b6f1eb5012653a4a30a044c4d97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 37b61847883397dd533e1ad47fa7e507b1205294d9a18daa2a671cabf69f4874
MD5 853729696a8d916c03d079b806c55728
BLAKE2b-256 20a7c43b20e3a75816d489d9263238d00fe87abccc31b3149d049e661ef11271

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed224b01b3d27d47e424ade99ffa435e4b53b2d02be628f24732929c759849ee
MD5 91139671bcfe46e367b31a0ee5503fb2
BLAKE2b-256 d43709a7c102d3d31982156ff23773dc73c233019389e43628e008a61cb2baec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.486-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.486-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 87cd1a5c8e9ce3164385dc71a18cf9205e4de8419a1290bac3c760b3f562988c
MD5 c2c00e1d4288b0ac4a129a2f46ea118c
BLAKE2b-256 c631f912615417baebba854c2065fdf38f2aa7900bbd717691303f6c968dce1d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.486-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.486-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7b4e0ecd767f65bc0015478831d07b70eddf3f27c23b6b6c4a7dd37db2df374f
MD5 5724e44608cf3794ebb62654e4b82aff
BLAKE2b-256 9a027c05a51e4dad9f7c30cd82f7f9b0e7f7f45eeae1741ac8bc216de0667ae9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c9e0a9cbe932eba79c8ad82989cc32df16bdc594b3cb11520392137c2abe6efe
MD5 df53c53ef1d3844a1f52895fe7e67f54
BLAKE2b-256 921d12a5c074e3fad317f2ecd1a7d5825da6fa5c683e77fe42f3a0618b7ccdf0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.486-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.486-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3157a9ac98c6c86d9d7f7bbba3c7f6e3a2c86d40916fd13c6864819c313c193b
MD5 768e7861130c0d898f9051a8feea3541
BLAKE2b-256 155cde69f052efa9fa631e0647b4a71d2be1472db08520914be7208156993b4d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page