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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.39-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.39-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.39-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.39-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.39-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.39-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.39-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.39-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.39-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.39-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.39-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.39-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.39-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.39-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.39-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.39-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.39-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.39-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.39-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.39-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.39-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.12, 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.4.39-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 637abbb0965fafa8dc81e2442ee209df93f7670e704e57028caf2858c5d2e2db
MD5 e359d2ce8bcd1e4a3a1acfe0f4c07e8a
BLAKE2b-256 6c04a22bcbf0fa46d5f103430566a51535b62a1a9ad6b3475b8703bf8300491a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.39-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.39-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bac70a1ff07c62ee00d38b79805813e4ea938da936a918968292d8f8fc29e33c
MD5 5e6d6a0542a58dbb9592e63bb86d771f
BLAKE2b-256 8e57587eff97bd0fd2b27fb61de9ee93ccbb2b94a59102c111d274a0e3fd9c7b

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.39-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.4.39-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3fc7998bfd4d3c6da75367c58435c1e64f149a3e49bf78e0d8789fbaadc1602a
MD5 0d6899b8b29fc83b36fcbe90be4d792f
BLAKE2b-256 8be6282d95cb105637e49709743bf14683314511ada23a7833324a7e9b1d773d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.39-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ee9ca7822f84c7c3b1e50f52b1111e4c3f0240767a1c691d24451d06aa29896
MD5 217585ae4c4e26a6dc1c5e49d79f5227
BLAKE2b-256 7eab5b48b1b64c68e2a1acd1967a1179f29ae6eabff84db1bcd338218fc89576

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.39-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: CPython 3.11, 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.4.39-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5c568c2eb956e20086aa065141ce734b1be8b7654e8499767445ed4a4e11710d
MD5 aad3625b9579a95e131009a99d373ea0
BLAKE2b-256 591986387892754a3bb7010151828979c114cd39f3850a4f49a45acb79a26c21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.39-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.39-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3bbec71f070cbfb734175cacd131c222c4faf3e263c3fa8b7045702267e94dc6
MD5 cc470ae26adb653560a7b97af50004cf
BLAKE2b-256 b3589db87222384552c7569d339dfaebd829eb596d2dcc11bdc461568cfed6bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.39-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.4.39-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 38bbf5c3b6ebe91901c0471f3db5b7b9f3b431aa46776f1b77d964d367ac113f
MD5 f0115507eacf9a2c4c8347407a4b5bce
BLAKE2b-256 589ea0ac8533e37b19aa163a9345bac7e843796ccac91387623478af55b2ea8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.39-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 769b701db0d268ff9cd840c9200a93015ffd56a2a3856685987dae49f1c307f6
MD5 79ac73741b588960902a0cecb611c3c2
BLAKE2b-256 181f30cf57dee86a34daf7f87bf56a04ccea0845333b9fea5de05c42f29028db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.39-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.39-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d0513d4755047a2c6e26a6733630212cbf92356cc3fe970408b3431c33aa8dcb
MD5 ca3d077e3f615802d2d24e2adce4cce6
BLAKE2b-256 b23ce355e4ec8c27ef7cd829a933d9ef0d34e5bcc0449ced5737abf54c4bf278

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.39-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.39-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9e074899e07066aba0d52eb9612fc958352380419ef52cf8966a2283eef1ca1a
MD5 fc506f6559b6fbd2032a66d14bb6cf78
BLAKE2b-256 658e0fd5847951f3bf0d0060d2281e113c6d7f18c4d98fbbee3ae45cbf9d1605

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.39-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.4.39-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c05b59c8c01303d3d199e9f260762ecec4f76cab3833c3d10f82cf15a965a71f
MD5 8a7d07953d6dfc6316ed3eeb0891f6bd
BLAKE2b-256 15c71470583b968a715f5901c4536176583f0a25c6ad1730f4f944b2761093cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.39-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e53f4b99c6ba02903ef9454ae669dd3d6bf0901605decf1c2b53ef84f4edb1e9
MD5 a6760a588aafca7c0c86535f77043f24
BLAKE2b-256 f573c36f9b5991b358831117512cc82f9ef6033de675a71ed55dd214c1d19037

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.39-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.39-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3984e77a61837be65fb7d8b27a46b073debf5f3d104f8ca962a2afe096cfead6
MD5 e9aca1acdc651646c2c784b866daec8c
BLAKE2b-256 7343e3c68b88c08ced7cb83d1943224f4cc6b10a829ff6912a2067d15819c616

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.39-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.39-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6c137a336baae05d5dd4278d17b35ecd214a03f22ec5171d9675f12421ce18e9
MD5 fc14ba242fdb5187bd39218f5e15022e
BLAKE2b-256 9a2fe7b7cb940cd75bc3824945adc55b90c07b91ec390652fcbd6427755a238d

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.39-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.4.39-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f7471ed37fccaa13570b16a76885f737e4de5f11fb4332404347a5965b60f430
MD5 8043c89fb0df642ae4c9aa3e6eb8841b
BLAKE2b-256 646872333120396375eb7c6ae66f17b0fc772574699c4e50c881880a5fd0a57c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.39-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7103ffc69e6693b8892d8ad74ef299aef8cad3549fe52f23b7127c5d5df8856d
MD5 7f5d82696762d917b4b610dd2f6f3a4e
BLAKE2b-256 0592172721988c3d6d7650af26f8b2740fd4c3101972a1291baf42108a2941a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.39-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.39-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 017cda64a8adf879de5b8e5cc56f3640872479c5c8ebfa34549341d71697ec54
MD5 d75f0aca58363474f78ad65c47ab5f4d
BLAKE2b-256 158571034c9edcc1f7160b3af449b2503032d94704dd50de07a432b8b9eb9aba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.39-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.39-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bc62ecab455593c950d7f3fc17a6b62a5dce4078661f419080d2ed3305a82fe0
MD5 be74755d159c4c53dd92bdae79da2371
BLAKE2b-256 198f459a949c52481000f1b30bde550017b10c20f1cd5d20828b4515396bb625

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.39-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.4.39-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b017404222425abea7c7ef89ce17ec88677207fd9f965c6c734344e1f6804cd8
MD5 3349bd697962d34d7d229dc5ad5c6a76
BLAKE2b-256 579672afc1d3176113c63fceede051a1e614a00a6304aaa0741197de6f817aa9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.39-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 972e0e6a61fcbb6aa7540ba24f4935f7e409c6b95134922e7b134f689d2c889d
MD5 3c2c223d3916b7cbe3e9a8ec00f014af
BLAKE2b-256 f2c613e122aeae850129122a0c3512599ce239aa0258469435ffec9adf538513

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