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.477-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.477-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.477-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.477-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.477-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.477-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.477-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.477-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.477-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.477-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.477-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.477-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.477-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ad9683052acdd6e1d08e3c4f2fba5c9a9fbae673491935df079a676173a4c9bc
MD5 ecac6ce93b4a7754f454ab3f82a72a7f
BLAKE2b-256 06caf2a43d1727fd6a9db4b5c446eed465cdd811e769c9e452424fcaa1e78db2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.477-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.477-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 02517195063a1e761bf90f7f7dbf773aa40369cbee65694b4244e3c6b1f095fe
MD5 563af3fe469454d63b0cd3fb4ace1875
BLAKE2b-256 734c94309c6eb07b74626b7b6fe678b6ad2372681d1a8fd05a1c265daa6624d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.477-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.477-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b6133b6805e6e6fdde3a3014d6e816709da8eff3ddb144306ab180e268e7ac7
MD5 6ebda12aa0c9f6605c8e923fec6b97b2
BLAKE2b-256 a285c9d489ec2ae33a0aca69d50da1b48ed7f222107240acf136414a1ab49b0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.477-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d30f7f8c3715bdbf286fc4628190d22166165af0dbc083743fb182fb064f3c36
MD5 799e005ea7437b7165ec73999efc6046
BLAKE2b-256 80df608e3acb921d9b9cee2697a13c23f6a4adc68d42aeb3c3c5b18097556381

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.477-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c73c4aca4622efe981e578b3bbc3b431e7d5d1fcae968fb4f058c2d44c0173e2
MD5 d9d36e5a278720d8300365bef149065e
BLAKE2b-256 e1e2c929c9ecc40423b6bb1eda17197656939a8d85a2a69b6efe1a05614e2bba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.477-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.477-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 84e09035a6ac055c716217784a607aee7f6de95405664106b0b07009eeb0c4e5
MD5 88c5f595b897db45d238a2588679720d
BLAKE2b-256 2cebd88dbb392cba723b0d6b369975afb072726105c187d9737b36b6a4cde3d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.477-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.477-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9a694bc2c2d0e4b5ce11f1e1d0562e72fd72fb12ab2bee1e14dcdd7318673a2c
MD5 8c69beadb313f71aac4c2329ff225feb
BLAKE2b-256 9773bc97fe479601f748a1d77c12301cd8976f9b60a3276981ccbe3a9ff4aaec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.477-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5cf31f568ee79bee1c74469c78e0e3fc1aab3491c53bc49b608425000b0e24f
MD5 f97d56579e07c46763ac4dff08731caf
BLAKE2b-256 05fac702dbdb719e72354b2da74b22e9062d5a597012e4a9a4c9fe09c2b0ea2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.477-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 889e76c752bfd7951e08e142763bced5e2ddbf7e7dfef2d0ad845fac223a30d2
MD5 c5c130bba0f489d0f367935b953cd6e6
BLAKE2b-256 a6b8a1d90eff83b086a0960002cd8107a457af4d48b847465904465daf33f905

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.477-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.477-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4063a08f9b179a6f5b2511a21875a29f72a652b53985cdb668fac0ff82e4a538
MD5 51104ff8af72373453ff7f062e32cd91
BLAKE2b-256 0854b8065864cb91e7fa02e17535d46298a9afd6df54b4b7c1f1a28a427790f9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.477-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.477-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0fa5c8ce7fefa69a11914acd849818c0d838e9795d176e34610ed549fbf8548c
MD5 c812fff53d40f6741d1ffb777a032540
BLAKE2b-256 59c1010b4f74b008ba654abaa8cdfa8c5d79b49bf8e3d5f8d73f18447d1fa58a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.477-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51dee4146afd65cad715732cd405b1d96d37830948af0549e8283dcc0f0ee609
MD5 c056698f29c26f7d5854518be2d194de
BLAKE2b-256 b8504f4758c2bf9b894e7977d76c17ff6977aa4821e20298c1f00fef1db85cf6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.477-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.477-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8a3b85ba0c782c2d3690975100846c4eea4dacb5ef8d7b20a8c33acf24ea616e
MD5 915f9cd0aa1247b656f0ff9f96024752
BLAKE2b-256 3e71a380f0f6c49c58910c62d83800b48d9272f7571e0a3f3c4636e0656173d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.477-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.477-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ea6821cbdf4ac449c16380a81a9e3da0cff8a69b8a6b235064ea349cc686d914
MD5 6943776d79f9d93b6367f329d038e8d2
BLAKE2b-256 f9bca02a8e69c814818f642127b6f5a4367af176e3155e879995f21d15abd3c5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.477-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.477-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2e306e1431e0c53d9fb0236394580739d55320dc257eea904f97ff41387cfed
MD5 cd205c3099d46e7056fe76da150c7c07
BLAKE2b-256 390e6889f572bc433550b92755451f2409f233d3037937768e58385571d8fca2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.477-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ded512881ac6d8c6d33ff03b94d17ca147e3be3601b76e2b080caf4ea981890
MD5 348b32fff3d6848145ef6bbc54c222d3
BLAKE2b-256 04ff569919ec42ea9e2501fd8b7b2905582f55075b1a745a6ac6c8bc6a1ee476

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.477-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.477-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8132f0de2a104feb751a1a6c9637f2d3d1774a692bb4751042179371bd67cf51
MD5 d35c3c7762c7e48d9442da696d690814
BLAKE2b-256 e7ebc7db2777228b41052ec2d236d07eadb29d23f315fba36277c615690e543b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.477-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.477-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ed436e594ea0c1583c1e9b6a5d616a23e55c3b88d1f2eb64748a3e70eaed8815
MD5 df6925964ee266d7e3cf513c16c64bed
BLAKE2b-256 573758c4f1bbf0f734cfa878f325188a23d8b6891c2959d5eef6cf6a25cb161a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.477-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.477-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 410563f615f6c074e32aad17efa3620ccad80e9f14da0e3a3aca935edf623caa
MD5 30f4e7fe6c2d35a79a172c1bbebeffbf
BLAKE2b-256 785e5f0b81b864aed760254f2ac1ea85e247bca723addab4abc6ac8a58ac6ba7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.477-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 917d36a2e951e0e16fddcfaefb7a2fa9c13fa6fddbaacd5fe24e2aa2451f57e0
MD5 ae1dbfe025153ae4c39653d6c575238e
BLAKE2b-256 2181070929e65703768de4a1df139679f0acac96f7584916660bd93546ce5d68

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