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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.90-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.90-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.90-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.90-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.90-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3e1da063b07f2e8db1596f71fb1bbeca7e6b9b3b86cd958d00ad588be9608690
MD5 d8523eadd53208a0d8af03f42f039b40
BLAKE2b-256 9844da90fb444a49b86137742c81b794d46b307a61b583bb38fc062ee1c37003

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.90-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.90-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fd8b35f9c14ec332d008284d1f9b7e07a3cfbbb495b160c745b9b35e0f7e428e
MD5 8c84969931f4c5a6d9db96c224d5f439
BLAKE2b-256 d75fc6434a61e56fafb2be9fe636259b6af1e023b132ed4111f8b4057b55240f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.90-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.90-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ac26353b0ba3f439ff609d193f8be12696a6213f849c8643ab73687ad730ffd
MD5 d43b6bc72d1f3d47b76f7c7ab0b1932b
BLAKE2b-256 2a89797708e17aa287b0ede9740276a17b484b8445aea881bcb65563d494ff25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.90-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59d1a8adefc8117430035d23709b88aa3ad8447cad8c48dce32ed74b1e774ae8
MD5 9d5833b1de30ca8ddb5891884c338545
BLAKE2b-256 23110571e77de8a223341bdcf1d3e788c45b5568bbea5a25b99d3e303424d04b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.90-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.90-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fe58c6bf2d5af6d7fd3f445fce748b14b636d3bca0e73653f792054a16dfe690
MD5 ef233d48b0abcf74a5283603b181aa96
BLAKE2b-256 b71c9fec106c86d82135d21c5c25db030cda9ad8ba66dbfdd12ce3a55335b94f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.90-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.90-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b8a67cac5f64993ee29afcd995c18df0513b66e17b9d607025d8548ed20801ee
MD5 ba67774ace122f7ab2526b7852138da5
BLAKE2b-256 a6568a897978aaad2cf07a2218d6250c444abddb6a02b148325fe260c2c57fbf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.90-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.90-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b4d351978d97c6ac1f63234ee99f70b2242c1ce2ac2c9f6e46926d34ef0e00d8
MD5 03304d93b066f034e06d3b14f133e5d5
BLAKE2b-256 d0d002e579652a97fb120effe9a718708f3d98551e58283e021287631cede786

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.90-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 138070e06d25008e14de995e2bb61c6d3365578840c01256a85ec6842cd769b9
MD5 130cc679d5a3a394181850e08b2b127a
BLAKE2b-256 8dfed9f76de996f459c53e7d6f6415308bae554c63af3cc9b209709324d6a447

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.90-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.90-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 231d33dcf75367265c715d13a06c82ac4d9dcf62962434c263be3bc471f358fc
MD5 6779cba87e51f2c46960cd90182c18bd
BLAKE2b-256 eaaa7d326733cafdc617dc0f0ca2e46999c241c68a184d286b52f155fec40d64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.90-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.90-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 dcc2f267ac74a649c768b7debf13ab4cb1cae2d9d9796843fbea5388ce8d09d4
MD5 b0dde9c148e9333b55ac00da217e4e1a
BLAKE2b-256 26ebdbf85a28fa0c9c76b93551c50b326ccab737856920a3194dbe840bd231bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.90-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.90-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6770da8a782a79799dd0dae3b76c7f9c7e9268ba715fac45d8df24deed6fe92b
MD5 1cf827e9414420df09e734ccf2496ddf
BLAKE2b-256 c9f537784abb3080a36e73eb9032a8093f894f4ecfd89e7e295aac9a8034b2f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.90-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb65d301bbf94c193a2e9f6f1c0ee17629ceb2ddf367c1bc0b6053d57cc41822
MD5 bd5b393ec532e384d2eaa7ebf68217e4
BLAKE2b-256 5298e5a62dfd566bd358f0757223ba813b6ae777e9b873ecd6436f008853bd51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.90-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.90-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4841e35bf63e50c6c2381ee3834bd56e11264ec83b126ec6a87805b9a5029b23
MD5 a45679a68b1d233db84007328e816766
BLAKE2b-256 deb295e42445478df3ca2806cdeba04a5b3e4279905893abe1dd3f4b7b2cb08c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.90-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.90-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3caa9dc90d4f9473407f250cff1218b7f3ebff9876f80fb615b5921c40036552
MD5 942b2954dbfcf0fa79c47053d17af0e3
BLAKE2b-256 a145b0c6a9e8f73c8259c521af9b117ce6a92e8b3a61fd3bde225d75c90fc767

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.90-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.90-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3adc17d675164c3c2fcf674b7b6b42acb313d43207b454ea63601d9ee872a620
MD5 7b1669b047a6c6888e7469cc503fc526
BLAKE2b-256 510fe7a1c06ee877ad450181767cd50ad96a4b731ce02fe9d852359fe674d08f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.90-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c049dd986ef6a412d40719390dff082a239ff52bec64150cb8aab24d15dbee9
MD5 fac356aa10364fb1cdc514542dd4b860
BLAKE2b-256 6e56abc12f44c2830a370bb347be013d7882e3083a2caff65c2c7b78f7c7015e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.90-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.90-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cacd64a3fa6e8f8617ee3e03a2d73a055e5cf0b3911531318ff4e57a48e3e363
MD5 9b0033c868746477ade06628ee404539
BLAKE2b-256 0989217f32bb88ad9f4c6acacb4a65eb233aaf3d9b752c4e494626da1c3098a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.90-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.90-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5d5ba2f932cf96939d4a9c73c870dc8f2b657bdfe04df2a4de2a6a4175aef92b
MD5 b29899d7342de2f439c463aa9e74ac82
BLAKE2b-256 b398b153175ed023bf33e423e18c86e6aa47f8e46728054247612cea051ff45d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.90-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.90-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aeedf194a03e372bf0cd8777c107e1205ef81915a3d35ee0e827244f6108cd7c
MD5 83790e1beeb6385530cdebb6d2ce596b
BLAKE2b-256 f4b0cc80ca57373c77230deebc96944d2fbc028ad9abfe127877acd02cf5d703

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.90-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f216a00ceecae166271adf307130ef9b7894a4aa528f36c139bba46521fa6ca3
MD5 8d3a443fcf056f722fcf0d6a96333026
BLAKE2b-256 b3315e78e4280a3138ac3a6929f93f0a4977720bacec7e15d0f1218dde00f797

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