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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.448-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.448-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.448-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.448-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c057a0911836e418f893128e3ecd9a315669d72094ebd705f6aab5ad29c265ee
MD5 91044a8d6091a78a01aa00746415e6ac
BLAKE2b-256 22fe1d264f7b52bcd5f936927f50eca56b236d4dc25c90370961eb4e9bded373

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.448-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.448-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 15d171129daf2c4384a15b401151a27d85e98330fde389450c96b061b2ebd657
MD5 ce61d26ec2f3ff1486b4f94fd3b76b70
BLAKE2b-256 e43ab11dacc05dce363381a85f314d7ff0d471b33b5dbc205885098e36d4e27e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.448-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.448-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d776f3813180227853c6498511ea707d600197763732361d3ecb640ed492aa32
MD5 0ce1760b2002af3bb6ea5ea959bfadbc
BLAKE2b-256 02c198d09306fd2b1c5e61181b62d1892c9d87f516e67cd7b228dc76dda1a2f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.448-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84aea6435c508bfe3b9ef0eb460166a847e7987907fed31e323c6ae155c33516
MD5 cc8f4ec600701329030866f2fd67af7b
BLAKE2b-256 6c334d043faddf97fb9550dffc6763bbd0a3490063f8da997eba3d47f1fa928f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.448-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0879bf0791240df45e3ad3f64d4354fc35ba5edcf8dbb3c3d2c6d44af4776d6c
MD5 9e97063f907a1b2bdbc2085dfc43bf9c
BLAKE2b-256 d6c1796537fcbc7d14da19a8abdb3b270b80fa8769bbff8c9dc0d0c8ee57a858

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.448-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.448-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 61e04022584f7332314d0e6a2e89b6b3bf0acb5483575f271073542a0747eb9e
MD5 82eb6dded9c7a3e752b65107617781e6
BLAKE2b-256 dbb7ed96754a66664ff8de0c9ab7ef145a1781316699095202a345227c70bc8a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.448-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.448-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 376735bbe5e2f156cb6f95ea6b7ff7a52c32f186ff0a75651a9690af127fab8c
MD5 563549b46f2bfe64d325943c7c4243af
BLAKE2b-256 e33c8a2c1101612a950204202ead6b7c6209c945cf2defed066975a64d49110a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.448-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1aa09b19912679c56163ed17cdc7e669e625cb7f1f7dc4745b7cbfb050f50c73
MD5 72595013aeceaa3003670ee97febe586
BLAKE2b-256 6d2b76a4949afe9c7cb6025b58336f44040eac7d43249b218b49f021ea6ecd1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.448-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5da4246acbb55e0f4618a2cf09514748d3d7e19b8b676214e7eabfe600b246c5
MD5 df6a0d2d64c61c7d1573cd997f0634b2
BLAKE2b-256 994344ed285268575709aac3cee7344b9f646784808817f860b4c484af9914f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.448-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.448-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b54a590e1f719d80d5e39b073cbb170028e589974952f4ce0e895337629732ed
MD5 99cee09f1febbe3cb1403233f8e39795
BLAKE2b-256 07070c83b992a0bc3695f63f8095e43556df2552e1220cda2a63942d4438205e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.448-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.448-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d1aa7a7607fbe49c95d1009589e7393aef2c5b2d968db3725a89e61d2706d10c
MD5 696b6772b1bb520aca63d10544ed0981
BLAKE2b-256 a1dd55d2ceb222e85815a7d7f03fab58ad5c106eb72116393ebeff30427c2df0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.448-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e00e52c3d12dcd2cefcc62b2929d1a66acb13bcee653270061460238a12aa28
MD5 c93a13b503626a5a07dc86ecfd5f074e
BLAKE2b-256 715271789d258ec0892f4f07e87d4b4dbb23b6703b9b617e0c8182510a5235a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.448-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.448-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b9ce22559b438e24a0088ee36cb50cea2191771f3d86424c0937b345b4ddf289
MD5 aaf964d341a2de22137290460bc8f41c
BLAKE2b-256 5c717ea0744093da754b4730abc865e6475e3d0d3c4a5ec16d2c866d57273fd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.448-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.448-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 103259e3ab4e5fde347c73d4fb50d4371a377051993d84067d7b5d89a6bef1ea
MD5 83b46df18e2730d3f76434f276fec50c
BLAKE2b-256 70ab277b97f43ed68a9edf20f00542a75f43f9411ab768646f8dfa571dd1baf5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.448-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.448-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 65e0a4ba54a8ebf6237e728e3a9f32979a77633fc3cd894552fc3b39b97847d6
MD5 f346f89af2a2f57e10ff1c8834a59b2c
BLAKE2b-256 3ba943ac07809c2912c6ca6ac4f58ecb633c2f0987557550c2cbb5a425e9c4cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.448-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30d317acb1bc4b9f795da2411dd04a076620319712d8f5d99524615438863dff
MD5 09e1c50264512911eb66b1991d3b2220
BLAKE2b-256 39e845b3882ad3e126852b7d1c7054948853a85a1fdfe8f8afc8a6cb358c4021

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.448-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.448-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 56ee13b0a4f5319881e01c4648d3ea545af507da03d20c9d86e500f10a0db728
MD5 e3ee5273823c398c58357b9f6d4d57ed
BLAKE2b-256 467e16498a98c4dad73c1f29a68a77b2abdba47cc3524567432b40c202416df8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.448-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.448-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 94c87aa6d88e1acdcab9050529ff474e40ce32ceff30086b3bf8f850db04d57b
MD5 126decf3aa6c8d27b7993720ed86a7ff
BLAKE2b-256 4a7f6e7c8a3a015eb977d6e793fa8e64da4d9ab3b771e0987d58ce3eff3a4995

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.448-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.448-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 473fd12a338f32d27bd23a049b06c477c58f2504a8adca77afc123529656f48d
MD5 270c54789e1c9630b1fba7814b2a20a8
BLAKE2b-256 e7519250ad4e14d6b3a5f8020afbf4c0a76cef2de52964fa6bb5b21536a90ee3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.448-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3804c101c9dd0432f434c4cff5c8c4ac4a56d46319f919722f2a5e31436abd6f
MD5 c0c3154d9a160aff32b7ee3638ee92e2
BLAKE2b-256 329e764dc17f13116858d86b079284a918d7561226c00122ca20de659369bd05

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