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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.102-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.102-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.102-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.102-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.102-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 07312ec0aa05a6b2670007632f181f08057d8e69bd1ca78f8b43d6249f057955
MD5 2b2ab6b3061961fc8a7561397fd1638b
BLAKE2b-256 9c399dac23bc792c44e832de71339cc3fe7c5d05a6d81960a7f59a078b415a2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.102-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.102-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0dc6993a3418b01411ee00227b0cd50ae22b16f26ecd21a5b15c2b4b800d0b23
MD5 dd989540a3984ab555a8c9868d235500
BLAKE2b-256 97b5475232516b30a0aca6ad6975402d777196dbfeb7160a20dcbf5ab1106a6d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.102-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.102-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd6b4eaa578ddcfe0b7c371805d7c610e32ec6bc300e9f65f4f239f615e54581
MD5 53f6e08908f555a0f8f5e505856e931a
BLAKE2b-256 f4af630a55a1145ab633382d65330ebdb41e7c279a928d1d5a9505e1837461f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.102-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b41759a928c73b1067fc233dc20ead95f9ff3e6fa6ba1cf8274be7258d9d907
MD5 e9d54674b092fe5a56c0fc7fd3f7a99c
BLAKE2b-256 dfd656b9b11a888a89716388f97371d0f0f94c1135fc44f84e615d275fddf246

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.102-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cc15ab9bbafcc3a1e12d8f9ae08810a95046e237fdd0f3181bb3a57209db32a7
MD5 def0a165b3a443aea01abf3326bdf146
BLAKE2b-256 0e0fad310ff864a1798d801f83744f56198d85fce2838f40b71acf13371c8e16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.102-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.102-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bd12d9c6dc64fa3d53792dd44f0888b0a145ba9148e1d50b9a286a7b77ccb393
MD5 638fe3a70de61b1ca180a62e838bb5d3
BLAKE2b-256 53d415d1ade08413a9c0ab9ef34f34cf1aa9d56849b8ad747e4f8ee5914d73ff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.102-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.102-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 321b1e12e7f800bd1ce983fd8728feb9ce75ccc367ac314ecdd1d8671d0c1d0e
MD5 94853ea9a02d787fdeeef247ee1152ff
BLAKE2b-256 cd7f1b832a1b659584c1e294c3290c2c005c9bdee95ef2a141553a25d642b5da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.102-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b6bea14bf08ba84d679c62395205156c7dbdedc8a615ea2f3dc3d7ab1e62c33
MD5 0b68ee709d2f68ce9e724612548cba12
BLAKE2b-256 cb2b7e0fff644571cdd5bb3e23b4aed19d522ea30fa861c5b74145bb9999492b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.102-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4d8bcc0e3a62ca1cf42e4e71b0d7a0dd7c9626ae0f7920f3e4c2800c9064147f
MD5 9e14b71c897265dae8a65a008611a893
BLAKE2b-256 d4ef042af5e736dd2167deb11034aa2dc6fc1a606e8f3ee44899eb7ad485ce20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.102-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.102-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9c1f85113069c69e8a2787abe4c49c74dec2024105b372cbf4914118aa9498fb
MD5 b84ef86cc05d28129f47c14480de1570
BLAKE2b-256 1687e79795bcb95eee538fcd723165bb1f9fe5ad2290e07f2231721876557b03

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.102-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.102-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8d97c1d0eb2468eb954571f33f3b9d51e4aa7851a3c100838d2c823bfb840142
MD5 7af8c244321c7d5a4b8dcba2092d29f7
BLAKE2b-256 5af0763562d64737ac6ebd730fc95e86c0b5a3ad82d5c8a61436936693e8a87a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.102-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad0791297cc21743310d2e02cf534a9d6027785535f81b02328cf0ee5c1e6073
MD5 897c48febd32f2071f580fb9cae57a63
BLAKE2b-256 999f5e648e7f193fe230abe3963267b0dbe2c1049d9f4cff54d260366be57b36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.102-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.102-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3f0a3a8f7e1c451c96dacc5af662851819ccf6ac6e9bac655a2035ff2103a2fd
MD5 8e34979aae90f5eae52877e429e18bae
BLAKE2b-256 413e6318daa5662c2f0a42d10ead3f92f4062f9f609fdbb29297afeec20b7452

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.102-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.102-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 713c3963aabe62c1fd5c359c6b419d61262c09614c16e66f5fddd5c09966d4cd
MD5 599fa8af0547874e223897085d6104aa
BLAKE2b-256 b9188b22e7e57c0335d1cf276a4d445a93c11cd7cab3b0fe21c859c45754ebed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.102-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.102-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f26ab2b731ae512f3caa595501f806821b370e711915f857b76aac8d09a1475
MD5 87c60c622150e3083f00012b626da9a5
BLAKE2b-256 15a5965f1291c086072caf46d352e2d71864eda19a4f08d850ae4c8ee6dce1d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.102-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6bf94023577d1353bdecb9c92c88b3c93b7b1ad096d31180bc51ec7608b22858
MD5 9c8e380c37f0659f93a820a4a21f3bdb
BLAKE2b-256 2d2063ef2bc96e97ff783e2b3276c8a7f4d341d99767a742baaee0ee09d6b845

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.102-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.102-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 14daaf8964e01caab341b3b2b38fdf2eb5b0d08e8ba2d659544ac4a31f47c4fe
MD5 6c4e240788c6bfd82fefebad209c9845
BLAKE2b-256 9890d8459ccf81006778aa3e6f95a5be81d51813434d488c8347e90724a6680a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.102-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.102-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7ec870943daffe0ad6ad6998827f3f645e4cf4d33431f4db07f95f1dd6638857
MD5 7002a4006f92d63a139dd56ceeecbb99
BLAKE2b-256 b27ccd9e34271e95d64c24c0e7ba20c5241a0911303dc34b5ab41832c4b9ae3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.102-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.102-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b962c4041f04677f69bce54ed3d9e477e87926f53ecabaef6781b4c2243f1a0c
MD5 dc9e988111ca8509b54d7e90c717379f
BLAKE2b-256 d28fea8d2f66e962546ac576f929db68409440c6ded6883b0762652c63afc2ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.102-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98e53986d09b685fea2f4c036b4493891957cd4a5be50c38a74ea59b882bda17
MD5 a9937fa12e82c0f0e4bf0f4f4bcd755d
BLAKE2b-256 3b4cca346024440f9b4575ec19208907c3c7e64b2083c928cbe9014621d7c845

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