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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.320-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.320-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.320-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.320-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 25cab0009a4373a2985e8557e407facd8051bb0acd03a89515ac691f4f545bff
MD5 c598b79bbd34ba1f5645c3ffa99b9afd
BLAKE2b-256 534c10f8fb15aa42f27330f2c463d3f696dfdd9abb8ff38bcc8ad1c49c7071dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.320-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.320-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5e70bd6495b78164bc30b6a88079c87bec2c55bb35debd7285df4c7215cfc33e
MD5 71054e0829bcbeb5897c43ecc54741d5
BLAKE2b-256 962a55001ef1757082ab635b98f8b0333eec242da24f1259c9c666b751b253cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.320-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.320-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 08b4550496c56a27578768a02ba3da2f719edd51418b867828ab8f5bb7393a7e
MD5 636bb86b9b00a05203ae217d423f8f4d
BLAKE2b-256 6aae7bb732a6e21a06caa1441f2532dd11c62df8a1d85a049b524c7a73714981

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.320-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a870a214aea30f01a50878ef586c9450bfa25eaa0f3981490cbd1abbd47f5a45
MD5 31841f48f99bea4f406dbdc718f5a8b6
BLAKE2b-256 830b1ac153cdb3e54684483c8b170429c6fdbb8cf3fd2d9632afd3af0230fe10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.320-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8a2f8f33dbed005f91c142dfc5fa4d9a6c47f761767e867057e797977a9b7b2f
MD5 e57ca16041a4f25ed6a568d5c95b1a67
BLAKE2b-256 e061303cda59624b94677315394f71544cf10ea7af218f3f59b014ed2721c7dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.320-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.320-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2efd3b91b743611fd04dc1938c3faec97820ac41253594b9e6b957391a2ee95f
MD5 19fe4f3ed76b9fe1ac806beb7e699f5d
BLAKE2b-256 febc25b4f1cc6ccc61e7c22c763f09a9e7ff200efd4d9dd14b4ca70053701eb8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.320-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.320-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af2131fa0a0e675e94f159c65c2195765f8432691166c673f0845728575451c6
MD5 133479819c5697db6708fe29e4e437d5
BLAKE2b-256 a4aa722c194bf7e36306f3428e0d21fb038726f5d65fce761a2793f3e3b92333

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.320-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0bf7a913df6fc9edb49b22a80a1fa89e0d1a6d1f04e42e35c7fd8dc4dc588ce9
MD5 94e1c68b7779d6b98ba4230644196513
BLAKE2b-256 fab3fecc79cfb83abe8b629b392acf4125cb505ed492ee8f905be308f729a984

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.320-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a9892d9055069f3c30e38feee45cfe8584d42d90e24539232a523be649191720
MD5 a98c0f8c9aeaca72f534c52a5e3b2aa7
BLAKE2b-256 34c541a3a0c0565eb2659d97ce779acdb648cdceec012c287dfc4256f39b6cfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.320-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.320-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e7dba6b364f3d281fff316716da399e560b4ebe4959d205a9626a1d05b7ea79b
MD5 74c50e2e0358ddaa76d3afdcb2b9ee5c
BLAKE2b-256 5cf27c09cd2b719ae6d17df5d0782d433465d18df69bfb8e8ae6d866d817c516

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.320-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.320-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c434b217f0a6ec2fb30933a582ae1384ea2da30281ca9e07d3d5d192bd35050
MD5 2ed7e0954662533f4e3d69dd505d83d4
BLAKE2b-256 3220fedf8f29bcdecf2b4d6e90b20a2cbcfbf40310f92725b00db701bd09e478

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.320-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 437860bdfff83367e599e8fd13e42a9eb8cc8f643c9cb51e6a855e554cb3658a
MD5 105bff12f65c2bdf2cc6b3c6340f18c3
BLAKE2b-256 78ded619f138d6bd8193e7c2d7843b2bf878435145bc727160750cf289bf8e9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.320-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.320-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 19df99e7f41caff723e21059494fcb366c04abdf3e45b58d6c85df909d8f1200
MD5 170c06e47482d4ddb1eff4cf0515de33
BLAKE2b-256 5f57cc15d89e8b04eae340eddcdb980bba784fa69b76d4a5d1e6074e5e4fbc9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.320-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.320-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7f4eef216b2f49442284aac00da85522b245e0af776a241a047855d5f192aa33
MD5 c05aecd04ebbaacdb6188bc2c46374fa
BLAKE2b-256 fb2368ebbc14a543154286f6a1aa416939e6a9dea6d2096f09be0c9f67fe4b89

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.320-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.320-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ae241a5e2e1cc5006b7e133a74f629b87d345adafd114af1cca037bd0618fcd4
MD5 b2a54f7476049f995349cb928c20a449
BLAKE2b-256 f94ccebcc4191c6b203cc3f7bf02b117dc7582415cf3d40cdaf72657611a52d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.320-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53cb847ccb5fad4c46317e3ddddaa9e989aebaef382d665b41690a54d3ca2ef2
MD5 5e9b48e81eed85133abe4bd62e4546bf
BLAKE2b-256 f7cbab47eec476f244bb292699bb2f7e55aefddb9ce2aa71f75231f7646484ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.320-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.320-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 928276f788abb34f01550e19578b7aafa98b9afaf8ce7fc32b7dbf6f6904ae6e
MD5 04d16a44faca2598f9f949c813240e53
BLAKE2b-256 10626490c043c1a30f04ef516f689b55412b0f8bb13a3cdb216b21f3aa753c09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.320-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.320-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 851ed7213fd3fb5f0371716a13f72c9348e7626004e7154fad5a55779902c82b
MD5 0ec2b4f51cd88439347932b13ce2c53d
BLAKE2b-256 8aa7980c78e7be1e43c0f7bbe319a8a1f03aef4bb20f1443cbf5092b336d5a6d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.320-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.320-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 32a3a427d06942cc06526b341f7891cc8e1a0d3f60c60ce0ba524c80005645f5
MD5 9c8aa2acdffd3f75564ca55956b8e5fd
BLAKE2b-256 efa869f1cb3a2eb93f48ecde481d147d13909f423aed7f3b923c2988d1064bd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.320-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32dba4b83a588d104ee8f782f73a91d51000893eca85b06da7d6c15ae69ca36c
MD5 40ebe2b1b9b7e5d258f8763c9b9ffb8f
BLAKE2b-256 24e0fc8b9484a1a835028a224805c483ddf81d3963d4cf0e6b8317d69d2750eb

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