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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.746-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.746-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.746-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.746-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9146ac7d6d90c6ddea341bcf7902706889663c46e2a83c475dec0d38b54af745
MD5 fc35a245ab7b621060fa910fdaa5d6cd
BLAKE2b-256 b34f116891c4305a354dcbaa8c4f6679adb5dfe49f10343d726561fcbbdce795

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.746-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.746-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ba613c324d6dc1a0383821b3da321cd7aa9271e35fe4b6e83de27a8f68c1c4b0
MD5 bc7ed9386274d009f573fcefedde3e33
BLAKE2b-256 45bb721a12ba5231a5eb304536e2ca54e5646433c7e54203b236073d80786fdd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.746-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.746-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8a2f51b427ce89bc465d16f95330d8e1f12019eca43029920334c68f53a9f95a
MD5 b2cdfdd75e534dc26680d1731c300371
BLAKE2b-256 083531ac33fcbcce9a137c449a6a033941caed96af0506ab8c2cb56c47bca75d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.746-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b42e8759b0987243729c09255482ecf3d6c4bb6a9b638d8c63728189e2c36cf
MD5 5c6eae72713147dbc93cfd0ebd6273fb
BLAKE2b-256 97fcf01e3e34a56dd9c4658b3e4f3a0cd7011630e9f277c8f19950e518b964d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.746-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3b86035d881b2078399e24e2794a5f23b6b369b75762f86b38893e05036ca8d1
MD5 35d167a00934d35b723a8cb84a26705f
BLAKE2b-256 bac5cca507648e3d1636d5bebc0e103a7fa081d3c3d004ebc30dcbff8fc4363e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.746-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.746-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4e4fb6d98fda7f5cd573cd1e2efbede43186c20cc44344af10fe6daa48d4797d
MD5 f2f6d7f2ca636821566dc23c107337c3
BLAKE2b-256 62effb40ed187c50a85ca257c0e4a0237445ac30f6e01f3048b4674481ffd9bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.746-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.746-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 59acd250b71ab9c1e9cea98fe23c6b3c9bc498ccc6008d0b2ea964e2539c91af
MD5 aebdddfaea8e2c67ba62eeef74075b8a
BLAKE2b-256 2adb4a8f30ead72918223bc9de5a0d521925bcb25c333b0436db29870a965bbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.746-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 702413e22b0232265678458137c380fd8491f6ae3f55a3adb86f52f4ebbda9eb
MD5 38a66982016806becd823d067e0e8826
BLAKE2b-256 5fa9545c4dd55bdd9aa59b1a471e58101b439671cfb1c98894c673f71e4d1892

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.746-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eb851e87292d6021d9b6004e034cc034c8fc2d0d3ce48111ac3ac955112f1be5
MD5 aeadf6e8f2c490fdb45d0fb121e0590c
BLAKE2b-256 6f43abba4315b114e4e9c1ac806a3c0b49e9516140f66763e5dc708e2897d648

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.746-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.746-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 42c719724813811c06605ce5d5f730750b46af9bf9fa620666f51ddaac52b484
MD5 daab0c2d70ea7af72feb3b228fe85dde
BLAKE2b-256 303f5a716597a31b4a03389fb2759d672ce7f0225a3d237795b8ba8713bf6ed9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.746-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.746-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31dfbc5f51fbecdf9029667499e6a7c59485709ac4d7d3dbbeeaa7bddb71e650
MD5 5b40f7b2c0b1bd3452d97a2dca7cd23e
BLAKE2b-256 8b5ec0190d0c5712886268a75cce93b235fa86b0ec9652083f852bb8be7cf866

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.746-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b9291b94b776201dbe2bdfe1bf618ad8621b3e159df8007d56f50532b3ab9a8
MD5 de6685e8b8dbdccfc8be5fc87dda9fe7
BLAKE2b-256 53a247443fc791483adad556d29c52bdbe000f6ca4b2815a73966aa01b4dc2bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.746-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.746-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eae965392956d00e084bdecd4aea7b34a59380c9b81495518e87c8e61b9f5679
MD5 47462f3f0397ad9015bd6484f0d63586
BLAKE2b-256 3cc039bfd600b1e9cd0a23851becaf90e8fe18bc89077b08226b3ca65e9149b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.746-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.746-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8cf581074f2d5afd6221d925f5360b0f912db40d03e388a985639761f180cf73
MD5 1f7007b4e8f4838e244af7598bae1a16
BLAKE2b-256 62ed86ae26ef8553c577145a084e21852f6632625dd974f5e51ff7f90ab60bfc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.746-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.746-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c22902c5dce6abb780c004676aebf7e7a2f97d0f86c065c57542fcbbe3a3c5f6
MD5 31bd1a06f4b1983e298eda7f87642cfb
BLAKE2b-256 f16d6d4a6cf3c376281fcdad1a3dfa44970089184c652f3157e294a269ac1957

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.746-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a3a6d1aaf089b2a68a347c6945914692c2d0899ec9fb3363628049df9338aa4
MD5 0d905d22a28b226fb6ef4f7494c76936
BLAKE2b-256 f9678ced152309ae28e2a334614ddf61544a7a28a8caf596daed41afd88d507c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.746-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.746-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f3cb4b451585eaaefedcb05940cc00ad89d12b970fc3e07abd3ac864bec06184
MD5 e9cf813d94db3fa04a74d1d094cee5f3
BLAKE2b-256 827ba53d6f09af48dfbe6391f4cb876ef4e57c91be73d194d744c2a7cf02b0b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.746-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.746-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 80b8afe42c507707d5b6ff288a48e5ca2c72d5c49556f7521333594026b2d550
MD5 a626fbdadd1826842c91378eebe49552
BLAKE2b-256 04c0ae93977da207131dfbdb1e59dcede8ea916feeabec2f8de1b43524304f7a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.746-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.746-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 024187f47f78e1f413f8754fba210f92ff3f1215228cc3c7781673ea9521145c
MD5 f9914f47334a69397b88e34bbdd64623
BLAKE2b-256 c5ea2a34c2138984ad4e34e192487a316a304f0563b9c403151034e1925732e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.746-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab4f132b5b8472baff785a02b0430911afc7000eb83f1cefd6277f1dbbc56598
MD5 b14c39923980477a25705c719535cae5
BLAKE2b-256 688059c31b9b0fe025b1d0f0a5eed221704e95bd7663f7a86b710cad4ab4c1a3

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