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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.593-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.593-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.593-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.593-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2c440dae6e249a19d1cee266d08fb19c2ffddcbdbb0e5704bb1c150a3231f7bf
MD5 8d2c226b9e52c2e3f8222de20aa220de
BLAKE2b-256 5e9729b026514752936fa8ca818dfc4cf0a15401e8e7e278c8026c237f3fd356

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.593-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.593-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f4a038ed2b69a9e86e841d7190b2aa6146d58bd0860f79675020cc158f578515
MD5 cc098face5cf477896bd7f46a491d992
BLAKE2b-256 469ec0827ddda2dae6da4bcba229387defd9fcc0a76abd806ce62bd32b903887

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.593-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.593-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8316fc4821d6f3d80772cd70acec10449c899f14dcbed964251d22c931f5e9e3
MD5 64985d9c3c91b31ca59bbcfa9ecdfd96
BLAKE2b-256 f9efda8cc7fc6094e66239d989535cb4ea9a6ad7d5f2cfa3d1a28800aba163e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.593-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8549c6f2cc96d73e1450fe6d12f61470edddafc50dc3d0076e76b491a00f4ed2
MD5 5ad960e558c93346dee7c86d030efdcf
BLAKE2b-256 708c301a55fece1b2c8fb15b349874f134956dcaf35ee24ed48ab17008a866f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.593-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 237077d806294dd569728c1793417a5ad68b2ca64a4ceb294b073ff09c168dba
MD5 c27a0921cae505b8b8d4f254e1d7e460
BLAKE2b-256 4e24f96bb030a3ceb47f77b9d5bafddc8ba5486c3e90d7276a8a680f726ac679

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.593-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.593-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 696eac7760ed0b7c29580649b00bc3ad8cf63271f6ce213f10298c6ad70dceec
MD5 32bc2f7603f9141f0d3d59d6ad030d43
BLAKE2b-256 c597b8e7670a20a9dc7ffa3d931cb05edabd2df0ff45b03b69a5ad4ad1a10229

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.593-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.593-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 062aa6f20fe64589cd6bee89cf4428484d944dbce9f302321cb14284c7231a66
MD5 8150470948d9f7e06b399a003ce87800
BLAKE2b-256 db766ece1c4c2b1877d4485b773ed1513b502c197a4796a00271b9d83c7bbaa1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.593-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59685aafe51ce9dbf0dea81ce4c14f4c619d9720a68cb0acbb57bdda32019114
MD5 f1881d0a2ee0a8e5deff3b5782c9a5a0
BLAKE2b-256 76dde011e848f824c3e8a634cb6ca18b5f243d6e8cefb262bed5c9faafb0d7e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.593-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3d5f27e3aab6e167592c206420c1c66b7770d3caf3482d3bbc820ec6b6c12ca0
MD5 e7fc7ab8b0be2bb28716d2f588a5ddf2
BLAKE2b-256 a79097d38444866273a1c1ec2814fea37293bd7ea5605e67f9be6bc563902978

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.593-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.593-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 722d1c8773733186f2bf1c7fa99bf30e2866c499aab91e6a419590f27b4011c9
MD5 70ce5681b0cddce5ff41cdb2c2c1eff3
BLAKE2b-256 9d3c8afd285174fb5fec542ad5dfece09d906d2a23ada1706e8b2a5503d611aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.593-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.593-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e50ea1273d8dcb632f818a7ba84b3fa9e31672ab6ce08b2b493e265a2ff7168
MD5 8d755989c6d8b23301d7ad95841fb7b8
BLAKE2b-256 4db8140e6aad77271256fa297f8e77d01825d2a2519d9f8e3acf7ba2df5db4bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.593-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83fc0b665e2763b5af5a122bdaf36b0b7c8329bfaca081697a728c1968c3105b
MD5 6cb98c3e21c98d9fc747942700ac5da9
BLAKE2b-256 81dee33dae4e88ba084d90713ccd69234223f17ba88bd2b004df52958d53c616

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.593-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.593-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 47c961f0a5d69168abc76f5283a248f29bd503f8e8205387378e1f75f5e59da8
MD5 c6e1c36645e8adcd0095b1980fb520c5
BLAKE2b-256 f3883ffa18c5f38ad59ed6a81ad83b0fec05d94fe85cb675b5803635883a8c1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.593-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.593-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 74549cc4252a42c8733ae1a30d2d333ce9a306bbbe3219e518ab9c9a91113cef
MD5 30ba3c6c4300fe8f5cb50384e4c8747a
BLAKE2b-256 33eb1e2c48f7085eb056b4da22a63fcaeb92acc2cd297037beeafdec3ebe146a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.593-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.593-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e5d80625cf01043f0c30c25e98f4f8870390494b98d1295029c664fb6b36377
MD5 b1004528b8922bf5407f58f905f1310a
BLAKE2b-256 93f5735236ca9651561507df0ea959c6801b4b2850ba2872f838d53715eb75d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.593-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f80d97d07d550d3f6f4838bc32ce9815b4ae4e874c3da42dbcdd945e0daf2945
MD5 faa626d90d07e5e26699d73827bb4ca0
BLAKE2b-256 b9cfa2e4a036a5caacbe96e84abc98e4b96514e424da1f53abb70bc224fe90cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.593-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.593-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ba8fb3b935260f0ff68f92318cbafdbd34dd19d7145f8bd3ce596f20715f2245
MD5 537b8c4fdd18f475e1d39321333d66ca
BLAKE2b-256 b64c9c5881641dba229e3f74f5915e8134ce5bc963f0dbe3876bdbab34305bae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.593-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.593-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2bfd4afa34af30ee1845bef866fe0a03a4f2c161817fae9774ca3ece2645e214
MD5 a29a878904e0dfd4fea038e53716b81d
BLAKE2b-256 2a6336801764c4cb6660b246af3ac06a82021431af48b3dc0cdd74947e80e505

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.593-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.593-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2e13001860c63e70158cd2a934785a442f747439480ff7d69365692e946103e
MD5 0850eceb1f1a48c47dcf771eee191132
BLAKE2b-256 e2efb1da319632ddccd07e881625b027900f285c8dffd2446c732be4e3292a2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.593-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9901b1b0945748c288ddcdf0a54db653835e258970aeb90894c03018867708b8
MD5 e626e8eee88cc991791af9ccccf87c9b
BLAKE2b-256 fdfe9e55ab02085b0358c14b71a585f1cd3af26557ad95891c523d8addd50cfc

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