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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.628-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.628-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.628-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.628-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cde1495ba6c1e84f67fc7d9e6a40540c8932c2ab3527a74631f27092decd62d9
MD5 4c2282459295bc97faf61c205ef87014
BLAKE2b-256 3b937b112c211ad53482eaf04eb51445bf4fb3138752c71ac56dda97c775d9b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.628-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.628-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1c078e44ba464611db9f4bd8f8bbb3272e8adac68fbf6b4e07677212c1e39af6
MD5 b00f7f8919a495aefa7c33e890452342
BLAKE2b-256 11a2df4b9d2a1b9280ffc9ca07d1336cd2f00f4b58d13c7fd09ef58dac3c40bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.628-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.628-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc3346b46183071472dec2ce824818231620b62066f7bcd94c03d2f6d64daa5b
MD5 a7850d52dd998be8735b1abbe1bcbea7
BLAKE2b-256 8a2afef9c5f9efc21f5af8da8db3a91afcf2ea43408ab22278982f7504c49b8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.628-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7aa02b2ae8a6ba394a1dac43d80094bb014cefdbc180f08944d764b71bf946e6
MD5 bbab69899e7efba1f171dba3c3d164cd
BLAKE2b-256 464288561374ab0a8e405bdafe2e4461bf48658ab33a040f823275dd57896e8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.628-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bf7558d108a4fe5c2becb2c4d3d79cb2c1fbb4f0e75a701338e6e24274fed42f
MD5 ae58527829f67516bc2ffc24d0d39d43
BLAKE2b-256 f811cd3849097fbd516733ffbd286d1aed8d43ac25f12341427423ef43656724

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.628-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.628-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c8c3750012849f0d6e454bca226e9f13aa11fea6bb9f7b7f4ba9d910c88cb1c7
MD5 71821048d0c71a4c21ec880c9f741211
BLAKE2b-256 cd2bd1c7ac5087aec9f19f85d72a1743a01178e2c5f5cc86439e0b80f23590ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.628-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.628-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f86c805977b4b5f825d2972ff2dd20904407cb066ed16bfb8ca112fa840217fe
MD5 bc9ecb7c0fd0b27ace7b56ffdd6aeca0
BLAKE2b-256 6563e66447b70c3f148e76ddc9705c08b70b7a686812162c02b31d214c202319

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.628-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac5830af79f89a4c556b8f8b2d84940459c21806dd6ce594d07dacbed893b8db
MD5 facb2f071fd5b1adaf6ff639a8f072a6
BLAKE2b-256 ddcfedf51a49d8b600c347476e7624e639f6b5728f0c4f493b729c3260da0832

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.628-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a704e199e4d5ec04f309e804bf8d4919d95945658ca2d250f1ee37eb87f41a31
MD5 95c21d54397a19e77b10af09e60daa41
BLAKE2b-256 2e73433df50a50d7fba5fb6a2843036d3ff5115f24f7fcc841073e19d793fadf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.628-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.628-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c6614ea7d79798ac99ddd04e1d2f32106bcfc3a9ad71baf9a1df70b09bdd6ed0
MD5 b4685125ee362ea092931d1fa7c8a28f
BLAKE2b-256 47be3f32770a361ea47539e4830b6bc5bb5a6ce097820d213b96b30213b89216

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.628-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.628-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f8bd5e208a029121213e373b4985e72a80e48ea2ce1e64349498a49b47db4f9c
MD5 66b9b9fc69175dd25cab7dd71339d9f6
BLAKE2b-256 41d7c4f5d30f16ece0e2865c0028e4c20feae5802a360cf5c1991ab19d945964

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.628-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d74faac5703fcd5eadd44f5548ed3271cef9cd80ef9a57805b652c781839f977
MD5 b868fac53c42a803023353c09f99dfea
BLAKE2b-256 9c540455e208d9314cab4edb7b53038ec046ba53a85fb61fcb395fba80c2a0fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.628-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.628-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3bf0461e1e7e78d63d150e2706496668019f26b9044a391c1ff12d3c4edaca23
MD5 0856e01017e3b35fd11a21580e3b24eb
BLAKE2b-256 bc52c28d3cd7886b856d0efc3504991e9279712ee641da2fd133d9b0970cd83a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.628-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.628-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 60a578a09250e52735dfe9630cd5504e8405316a0a596f63cfe89a5285328867
MD5 685308ba405b6c7811e37e4b425036eb
BLAKE2b-256 861b03cfc521c6f46287975057bbade7ce4ab8e49a1fd166415b78064cdae952

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.628-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.628-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fef2a292b0878f4385df416be4b72a316b1f75e631927a9151e64396fbdec9d9
MD5 a5292080c2327073e564e9542ce45063
BLAKE2b-256 a2667b6e24f9715af00fb76aa94ba9e757f963b6afb40d76ae79faf1542d4f19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.628-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4091065fa4c0ad7c67d68e4822460bce225289854788f6bbdfc4181b0b000b62
MD5 d5089c5dfe684d96d0082b20e7443ed7
BLAKE2b-256 43c53121a259af146ea94f67a762f2662905e896af60e028e0c934ee975a54f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.628-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.628-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2b72f19eff46b5f7936379cdf70914f3aea234d165ddf1ec400b5aedc3d86e04
MD5 7a85151e4f15860e68fb2047a2bfd584
BLAKE2b-256 84d0df983636a56dc2bee2a8fdbafd5197370e7e2daef5fa229547e3c10bf213

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.628-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.628-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d8ae67f298eff792fde8f9f68faf287d9e22626c203d75af08909a70fef2575e
MD5 420fdf77eed8183b1a38f68976060bed
BLAKE2b-256 7e2c2fe4b2da1f67c7d5c3a88590b8fc9d078fcda796ebf74bc23958a2430304

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.628-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.628-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 728fc4a234036c8e9f67e098704dc1248ffcb0ff5e759f4236d63a634e87ef28
MD5 19b51c3f5bc3069888ff3cddb2c36f0a
BLAKE2b-256 1c65d78abd23510ada67828cd6a5c2403644f08c45620511639c1810a01b9a97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.628-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f2b8a750f10c6c52161bfa988aa18c744e8a53707732df52e553366fa9132fe
MD5 a09a29809979c9f8f653c597aa0ed917
BLAKE2b-256 da7b7c3602e152d0cbca30b24211ccb55f6780b81ef260ce2fef4de538ce4d18

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