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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.164-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.164-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.164-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.164-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a577bbfc8fc878295f00e35867993f8b50ed9fd3d11f513d385427629cbaa769
MD5 11c7ec8b45f152c1acb0b8a25776295c
BLAKE2b-256 fb124c82246cb231736051cce9cafca41d58e7eab3cc1385c41b6616f3ddd10d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.164-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.164-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dc43cec4a070091b2fc14d3471896b31a473f81217588bb9731a8fc3ce5a1cd8
MD5 b5cf1fd9ef3cffa4c17ad532a2111785
BLAKE2b-256 fde382fe3600d14fb913e3386154e2ebf3f86b5937a95bca28ba60745ab8be73

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.164-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.164-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7a4b570d4fa63a6cbd2324f7106d07417837b7692559907604efc174525631e
MD5 c7fea055f053b0b826164f2d80468adc
BLAKE2b-256 cca0f9011e18a0c0a819f0caab39b212b60c856beda8f05947f2dc6480af4376

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.164-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c27f3ae8b0b33f379d9e5b81c2305792dacb133dbe9d6f58a3ce08bb374d5c0
MD5 d787dae5347b64df33f6fc13c6b28d43
BLAKE2b-256 ac56dc78cef7311acf0052c7893ba3cb0e8d5d78100df8794fe5f56983de927b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.164-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8e990238fb5697c989287cf11674e022392cf11e2f07e9537a2d1c75e860b4e2
MD5 d49f74898b20bed1a5a528ad43d86adc
BLAKE2b-256 90cf90a363417a73626f5973c2742033137c954926092125db67e08031cae30b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.164-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.164-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8d3366ad6d38ce9c5fca482ab9b416f6d338c0b37a3c334bea8562f818378234
MD5 437351cd1a115bc63abe85a932a88d60
BLAKE2b-256 0ae485ba90a0876e5f853de3fdfc2d9887384d6cf288266998b3ffa3813c4c85

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.164-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.164-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 16f58236ea4c908180919700fce2b51bdc6c5c21db974b46ac6edb7dafbae785
MD5 085e597fe883d71bf5cb8f15eb6433c0
BLAKE2b-256 b06036d002cd86cde5105b4655ff4cee1f59a24860ef5e050e1aac2e66059702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.164-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 327310b15119df4d4f9331c9fc26524f729c7bb2c84145cfe89b34cfdce6548b
MD5 1b0668868a07007e19fe1cd99100ce92
BLAKE2b-256 29dcb9495d2383e2c6993e884fd186a9b270c434e99dc3fba22eb803cdec41de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.164-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0ebfd633a3804a5808250e3710b2badda21948fa0da38c5f339e2b5d3c424da0
MD5 6dfd4fce5424194868794acce76aafee
BLAKE2b-256 4c1fe2c6e591027e191d90c82b201b61156533a8f841bc3a3be33cb541dca327

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.164-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.164-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7084cba9c0e1833877c1af7679f9fced3396412d0a49201003ae26f9f4b3db78
MD5 8c1c53d3d4db9099a14ecd2bca7b987c
BLAKE2b-256 abe04c134ba22dcb08bd00fb7cd8a84be24676d49d1409f37080fa18a1f06da7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.164-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.164-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df9ee7e7a6c6a345b6c5f7e26cd1af933339b5267a1222fd2f014f624a130e16
MD5 637f8ff6fd14c244b8231c5d0022521c
BLAKE2b-256 a763472478736f827428899125bc8ee9026d2c9280f137256330d1e2fbd8626f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.164-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a6769bebc7e20b332c053e66f490f8c9840359c4c427db33a1b48ddc12dacb9
MD5 de0b8c70c630659b8c37489e16719373
BLAKE2b-256 8ba38515167c3868b7ae0fa6e8e234fcd509ebdb884ee785e3c99efd967d1263

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.164-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.164-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 109795bba747153b9df088e928c37dcbcb2548fb774f43a8c560b1d8f9ce8ceb
MD5 d6bb29ccb6c1d5c42de2e6eb5bc612bd
BLAKE2b-256 53105431b0c7a429088e6883d4832e3c3ca8324cff99210057caca23016d16f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.164-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.164-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 175c5c8cf10769247e437229fc905e1f46eb2dc8dbeb8d348f62503095dbcdb7
MD5 195867631265ffc7c83fc0a22da18a9f
BLAKE2b-256 6941034939843d5f2d1fd35b5b25744c83861a2b008108699bfbeed4741d9c0a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.164-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.164-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b99dad6f0d018bd8375d940574191ddb5af89286a3068132d0c7c514d863734
MD5 eebcee15f6defb067e38fef2456a1fc9
BLAKE2b-256 d0dfdb55636d3869671b3f8c5a3683f498cc227f4ffb87335dd1fc9281cc9a8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.164-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6efad0be76b5e097075d78dbe9e9ac621104c1974c5d64be5d70153f804d465
MD5 5b40724f75af55a1dccfcccefbdab59e
BLAKE2b-256 da64cdf073a5ac05ade61dd5692ea00042e6bbee845d99c9091eaaff89d41f9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.164-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.164-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 352ff2d73eb06374fa42ab8590271568f8ce1fc630b8cc2e19a3d783e4d58dc1
MD5 30921231f384bde56387021cd8cb84a3
BLAKE2b-256 b9bffe25b6d0fd8aa3709266a5a3a8e0b7b53db32b63ed07c8093f98c25b6b5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.164-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.164-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d8104f6090c84340bef0c19254ce6f7fadf06042feb98d649103b92cb06e5c8c
MD5 560de5759ed35fa1e15d42d9db66c630
BLAKE2b-256 0e338ee1df20b0e16d52fb145b7eab5237956831eecc09338b097cf8d04b31be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.164-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.164-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa2ba4feabdc3be61c410823b343a4d1e5284f3d0b0c45a5c2413923df20b43c
MD5 8d3112771ed8e7d74fc6e1c867a80e88
BLAKE2b-256 6e3dcf11452d26f195721138cd804172b26b00ec16d1bd138831ed87af2fc3b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.164-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0b1e7b6d16c608855454b97837c0929b4a0bbe0fd22dfa4b131193b13fd2c77
MD5 496192396603e81c96a3a38efb4bfe38
BLAKE2b-256 8d38c558cd312d92465c6ed9ee9140ec4b94d203d4ba1848052969e482916be5

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