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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.33-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.33-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.33-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.33-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.33-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.33-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.33-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 18285616d52efda14b9cc9d881ac7dbe28c217c2e0a680966e02863d13064523
MD5 98ca06189593bcae66a91b6222e03c39
BLAKE2b-256 510d8367fe94dd24ccb0fb0ec9740d604c8438b956072e839e5729bc942cd604

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.33-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.33-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 771bc64e3f20ec579c2d762e4888075510e5f18a2f8d10e0610a4b28218ea961
MD5 0ed77a73886da4691bf81a5d79b12047
BLAKE2b-256 5ad1cfae81ce2b4cb35d3021a62bdff68dd55ab6f06b83783c3e8df24a700661

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.33-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.33-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8d182e56cbdfe85fcf055d4c7763f70d6d5a06ed0b1fc043c4dd96d90595c169
MD5 895e92009d8b9329c7663425c76afe15
BLAKE2b-256 7e337d09c03d266bbffcb82dbb3e23587c0844802c3c413dc13025f25232322f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.33-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8ed54e3de8b0f69aa9719ab6154d931a8cacfa8196094be6266cbb8417a62b7
MD5 4429a6d2977fa53d07ff5ace72734908
BLAKE2b-256 e6dc722142cb789a7fa1c67a22ec836fbad50d8c14d56278c1dbe803d7199f81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.33-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.33-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dbcc23fd947ad284abd86bc575cb03bf976d9e257bebf5cde0e44ebb3dba7050
MD5 26f1747706e289dcf5f6d3f7ab8f47a1
BLAKE2b-256 f0daffbc57e48c97bf1a37f662bcb6c67a327546efaee5d6f0b825072d8da447

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.33-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.33-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e89739c48e81201cdc02d77f1e1a6a88ff0b196490782f58f062be51e58adc1d
MD5 6f380173f245f066735cadf631e39d3f
BLAKE2b-256 1fcbd37043d85db8c6aa1bc5800dccc1808de0b04a9c7ff7e2bdb86251a0aa6d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.33-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.33-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35b11059ffaadddad7526e2a34becd107205d4c7bb58e7bbb1dfe2a3d3fbfa6c
MD5 07ccab3688d6a0dc7afc3f950c0416eb
BLAKE2b-256 8c158cd6b7c8bac305159a3701e4be9cb865ef61947f35d450215ad45fb5ee01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.33-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f199d69830bb2b0fc39d62909f2c142fd58be72caa5be374af6a5bfb8876ae98
MD5 0bcb81bfb1ddac3b1796c2d75ae1348b
BLAKE2b-256 f1a184a4d3abdb1a0ed3d666086b0edd9df5346d4ea64cbc31fa62ece5a68c65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.33-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.33-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3a682bcb9d40a840c132d0cab963b584223fc18bc0a9f1761993d6d104eb002e
MD5 d7e7b0e440b1a82864ac686ff661bce5
BLAKE2b-256 bbeee6360856287337b5f042b69ce5e1129b125b03325afcac5e460620628e74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.33-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.33-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8292ec575de47ddc548706b6b21ae8cb2f527582c9bfa6ad3a4a1a9fb5f0cc58
MD5 9067deed1d72463d5370a635faba1e48
BLAKE2b-256 20eb90dd18e3d74705c7e67e380233430d6c77176d5923d358dab93f0d815991

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.33-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.33-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d266512e8a96ccefe595892ef2b97d0c267ff3eb2296ef0f0c7e3caa5534745
MD5 3e02ebc3c1c8605219d1793c267cfa56
BLAKE2b-256 bcb643765fe4c97770ded00c9de656002b4a0e1f88142afc219300006e74438f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.33-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c155ed149591ce8f0eb21950f56eaeb228af6177d27e7a23cd00b02a2eca1ee0
MD5 0a8681739d109d2f845d5e04e33cc8f9
BLAKE2b-256 6f2d3e57af50c4ead83114c89305eeeab2656aa73961aa43599e56013ff0c191

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.33-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.33-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3387bd4be4ea9a84721a94afe760669fe5c8c4d823a27b1e43b2696248b1e375
MD5 3fea08ac963434b83388f47a8161242a
BLAKE2b-256 f5ad17139e68e0fc6108aa34e24f8ff64271e54cc17879f6f404670721fcd3a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.33-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.33-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 911f7daac36d16c0910c53968d710581b2cc001ad2aa08517b64ab2d6aead6eb
MD5 716c5d62fa6bb0ba8d9160f799c1180c
BLAKE2b-256 bbaf0ac547c61edfca370d1b07f26444638ceeecb68d7c3c8f5b8af4d64804eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.33-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.33-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e9af12aba59334c2f706b641e250fbb883261cd3f4e8b64c9d615651d338a75
MD5 a003263d081da107c97611656b08712e
BLAKE2b-256 f0ffcdad7f28eb0a45ec2272a1b9813014463ddee44a25d6f6fce63d2f0e9ba7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.33-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a8361c496a2e6e5589953bcf80cd852997f1e2b83653788b31662bd717960e3
MD5 424724393c29617b4f4155d60e586d51
BLAKE2b-256 d7503e59b864c0921f8241bb4845735b4217c67edd63da0516ada6a705aa0df2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.33-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.33-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5f92950c3b67dcc1d45dcf3753013b999744ce20c136144f0e92ac77b65a9d6d
MD5 75b68b3aff8f80be2e929ac2aff8d189
BLAKE2b-256 27d404a1a2b490ca45d2c3891395f6b9f237f5c226ad80adb37f518de2af8e28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.33-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.33-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fc2544b2baceafef6dec7674113c5c59908037ee4eea115afbc8bf7b838f6bef
MD5 dfa94ac60870a1564f4908434c9d77f8
BLAKE2b-256 bdbe6354553fa13f8e3b18267639ea691092ba008f2d79dc9d1c5c3e9bbf7ffe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.33-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.33-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 044a48450b3b60f6c0216ef29554c6ecafde7ee984aafe29325ebc0b7e793d1e
MD5 856292bf6cba84c812a9f7684c93daef
BLAKE2b-256 01b953d94ee06878c7e385ec4eeb7ec82bb2351cea6c467e4fbe2999e9a4318c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.33-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb586c4cc21e5d527265e049a72ec31bf239335b050af78f4b592898142f604b
MD5 a4d1bdb3a0fdc40becd7fe47ec4b769c
BLAKE2b-256 e691cb312ad9a1a313d9459825fb7362abcdec917cdc3edafac355121b73ebf9

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