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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.934-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.934-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.934-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.934-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d7ab49901efab99ff21157742cbdfe66f3c7bf9d3c77f9ae127df747f08b3dfb
MD5 523ce1b11970c8465f03432892879a2f
BLAKE2b-256 c180456d1581ba5f51a9ca8a79688a4a134e82e5e6472d5a70b107e556630e6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.934-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.934-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8a81befc0fe0e70fff4131e677647438463e74161e84870d39d096d59846e4e5
MD5 4027dba28fd78b475a158576429e4be9
BLAKE2b-256 dc7f277e9b74ce9827fb19f55f199141e7b1230b2e2ca2bca67f33699205affd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.934-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.934-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f2eb35df5c7451cb562cb1ecb377456dfe7fe14a234f52ff8ad16d9dfbe4d45
MD5 eb198d3ba0b012801521927f2b139405
BLAKE2b-256 80456a10e474f14d89eeb4eb605c125b403df50404088b777b21dbb331e2fd25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.934-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e676b4eef486c07e2d8f898c1e099c4a73b446ec42a77909a16f6da91c5b4db
MD5 1d5f6b95c3cb47cc7b97f12651b84699
BLAKE2b-256 2e773551c9ffe0181eb2c31200a5e53cc67fbd9fa1b587217d6f4702afd5b174

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.934-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3e8e21ea0da81dc3257a0d2f1da63298ae86699edd3dee3f39b7d3d3a1295b58
MD5 b618916213802c23ca810dc2a7a59993
BLAKE2b-256 165fd27b5d69452d16de9822e73cb7bf6bf0c570badc3978989a7726d171275f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.934-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.934-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fd17eb01bede0809cd1153f469aac0176ba991ebad1aa5d9914f7b147a02d143
MD5 c4e3d3fe12584d9ed9c1180fb4bf38e6
BLAKE2b-256 26802b6554bc6b952f60cad25ca6ebd4e17125f342b2a748315c37c8eab3073d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.934-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.934-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90bc34ef2e2c3c90b19c0d68504ac797fd698fa9a2862fe3a8114ef74ab4c365
MD5 8466757c732bb3128f127e9cd19e2924
BLAKE2b-256 91924fe1f1324f3cd7e9ad0fcdf3fdd84579d1454ee1ba8e47ce4add00010789

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.934-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 917a023ac419df2eaf64ef8056ff1f67c323cf7a840c29d3f44870f005804a5f
MD5 2c63cc39308af538052713002645d2fe
BLAKE2b-256 2eb14b8c274e56d35b68f7814e7b2d3587212cc0d49d4025fba88a2198193646

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.934-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5db91023ff3ca2e0408daf9bb7d225d285224d2f2a1d9e108dee2d49aff63f67
MD5 088ace98bc32709efc82078f9564e507
BLAKE2b-256 53cd1858df373c871791bff52f4fab692c095fc8783f9f3931a2261fb7754dac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.934-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.934-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 849234800103bcbea300693f42f46c301bedaa16d60d711b86add24f216aa146
MD5 5809c0331e800252fc64c318a945b0f8
BLAKE2b-256 b9791c9b44d853437004f94ba80542c4306b7aa504f7d99eb638896663198e3d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.934-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.934-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a46d716125055fec9c68b54acaeabcdb72063bd483197aa14759378ed38ee63c
MD5 5d1fb91220eb3e8ed88fdddcc2644712
BLAKE2b-256 c1a209186489edbe5b4eadd6cfe3d336f930a51849f04c5a9bd39d84730e153d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.934-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f35a547362e0178ff77abfc21b7276650a61b07881098775f5060486dd487673
MD5 8f00b02e655310dda2e6e601189ccff2
BLAKE2b-256 2f7d90e3776e6802b3c8ad3b23b3b3621e9394007b6400f25df280bfc4f7a894

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.934-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.934-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ff907c5a428ef72374afe63b7d9100a94f506545d258a9803964e50e38443b7e
MD5 3e6bf05146c8716f84ef954d007c949e
BLAKE2b-256 da38d555fa20e6ae2d7548c106aa80fabc61fc21de4d344acae84cae213be274

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.934-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.934-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 eb0433996a1a037a56144f44c57b801d5c12aea32834a02c135c651e8ad1f7fa
MD5 60c55c3bdfb17077d917ef7576c3c420
BLAKE2b-256 bdbecf1195a66a1ce70d3269fde67a327f5b476e9467afd651f1d6c0601877b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.934-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.934-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7290768c11ac15a98e9fd18b815ac9766762bfe4672b3408e4b8e74e87ccb006
MD5 a3b1b5ffaaff306e3b23d39f22428047
BLAKE2b-256 485a80b617f25b903969b26766ea07b3630a577868585ba6daafc711b000effc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.934-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19a898a4911675577d0b83c95549a0d8ed71e085bbac0ea7183b6b1494818620
MD5 37e59fab4d4cc3f916a9c27f0c257bb3
BLAKE2b-256 20d56579341f094418fcd8e182e479e48b48e81fa5a44de2e6f1764b2a4f1e8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.934-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.934-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0fac660056f8c1785a58cd4def46e72277ecf63609a0ffa1c3b81d4c2463af3e
MD5 a206c41ba01d63af0a861ce5ec2e0f05
BLAKE2b-256 deaca9083e780ea0f8b023ca92119947a44c2d84c444c9253f71e7bc603a4831

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.934-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.934-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2b709322a3b3b330c235a5d2f7d7d04933cd5e8825fbf63ee63b326f94584a71
MD5 a052d67a257e1c03fe57d406f2362850
BLAKE2b-256 35a8a306699a403a5c5b01acab8de74b181472516d67aee33556a3a3f9cf50e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.934-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.934-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 21e974ceb31d232143df4d48281fae0e9911c3d8769933e5fb5eba23ab21f246
MD5 c4f7e1ecb65cd806cb0919886bc31aaf
BLAKE2b-256 a3c6dd3831fa2e09abeb43e27df846b0aa738d874a2c470d783799bcfccabad9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.934-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebac77a07b023276eb0f1fb9568b83c60225ae912ec4314825684df47b7c05bc
MD5 23726653ca38f9afa13b53c76a109886
BLAKE2b-256 6abfd4d23647b3a6eeaa7de65bfb61446cc1399ad17ee134d66b1f84e3940aba

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