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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.662-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.662-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.662-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.662-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f1f8c248aac2dc129d2687317d73f3a4e486dc45d5be27a30dad5ea70bc4f554
MD5 01e0a7e47a8f0af090a93c5f9535439a
BLAKE2b-256 0af13efe963ca940e4424332b7ff82b12dd60c6ce6d017f3b9e1de8a9abe8197

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.662-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.662-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ad696701be51fa1a23169b1fb5ebd1062250f67d405279332362c26dccdfbd52
MD5 bdc238bf0ce90bf3bfa52485d7e6d459
BLAKE2b-256 22f3714439a301591db8b8eaa63e69a51af33b197cb48e7fbd264c653c54389b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.662-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.662-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b4f8cfccaa4e0db2aaee3369aebd66bf71eab0e48fea694aa380be5932b5300
MD5 61b41cb3ea56d0cba00f2f9f9312792d
BLAKE2b-256 41a24cbc1492210f97ac74351ddf3e707d27bc06fbc54802d3fb9c0a05073088

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.662-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2efe2532aad92fe3d33cd2c08e47edf528ad77d360e1b5d20d58a8741d21dbd5
MD5 049a1bb25b1c6cdc155a05ec9a5f0a53
BLAKE2b-256 f962b019f031b725edad2afeccf8193b2f458aa20a93ec82edaaaca3a9efe573

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.662-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e05048529e56a0097b0c748045be6890285540b3f4eaeb4a8a39015c92b0f768
MD5 b5049b59dec0d1b5a73a2851ced8b870
BLAKE2b-256 2b4d311b97b70450d413f631b2a958ed1e5b5d7cf74e5a5d5ab186f656b8c342

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.662-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.662-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c4a198ab216692ecdf5fd9ed4b15a9717762769bb0f3361e44dcc3d2ff837d6e
MD5 d5d1320f07ebdf6cf9c7af443c01f6f4
BLAKE2b-256 987ff6075a3a476873d70a8257385989aa50638e2eada78a2dca680f466fab49

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.662-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.662-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 79598c9ecf7bb27570d7f451709e4e71fc1a130e9490a6c05c5e6df393f079ae
MD5 11a0451638c59296af38a9d09712d23e
BLAKE2b-256 325314cb24cff518e9e977f2d9ecc66381ef3374dbd376e8d800b4c6e9ccf606

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.662-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba8b38ac3803d1b85385c39bddf33e6fb09dbae40b3690f6329fc7e1a5d31f8a
MD5 2c1a579471eaaf7f871e208de6a5c89a
BLAKE2b-256 fa56bb7f348854bb22bc8451fdaa8295018ecc6950a7e9349fde2a7562d15bf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.662-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 72d76801d8fe0ee17ab4eb68bb6426a9b52a06729f88fae11f4cbd5022fa3e32
MD5 d568d47518a4ec9e4208ed74e5107529
BLAKE2b-256 3e515eba4a8afe88fb2e17d47c1f1c391ee6d753d984ede822effd44861cdef4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.662-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.662-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 82fb5bef6ccf78a73d03b93f23e0b0faf543c77757eaf0225bb28e8860e765c9
MD5 64a4c43d5c6f392ceb966f80ac10b3a2
BLAKE2b-256 9622f55c132f1b3bce4da17047f457e6d317c79eeba406098707248b9b0f15ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.662-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.662-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f261aa9e0545e99777d4df8fccab26cc5112039ebcb5e61dfd36a825885ffec1
MD5 4fc068440dc6c1416017b24b6a0d1b5e
BLAKE2b-256 8928aebfbd740b4ea624da3edd663d45647ed513374e5ef9ccd4687fa04df769

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.662-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fe4caaaea1f4ca900567a055b16d7a11fdb08890aced26996f255dd9e5ac26b
MD5 35a126038e61e2835cdb2e2f955c3363
BLAKE2b-256 d6a586c95e0b05cf65c90df3e035de1d1e528bdaddf824f539b872d1247f6197

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.662-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.662-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5b1dd99bc828bbb4cc3e5f7e642895c1f73e60e69af2ab635e71b395488b9a4a
MD5 8d281ccae8dec7f957a72829afb1c933
BLAKE2b-256 2dffa3d40e56df4b2915d8d14ab183ead242e0a4e8c0b9c19665d805799dff23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.662-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.662-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 26bff6ebb5e33d2109fdbd7f31d88c779717dbac9fda0ac57693f5b82a888ed0
MD5 a48f3411959b3549196795209f6f1969
BLAKE2b-256 9438b61e579dcd66958383eb36f5858f1ba96b98f84e3100a031778f41b4e90c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.662-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.662-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83563a4c06e2c9d14a1e71cfe4524798813b0f3f27ff56b6e15cd0224830509c
MD5 686f51855891bda20f05c140c749d8a5
BLAKE2b-256 5a2b54966ad3eba9048318796d90510b4b2edcf5a6912625f6e9ec98943035d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.662-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae3ecbfd4c7e0b61d569fed93b4dd1971aed5c320a4ff32f768ae6f6f1d9f04c
MD5 61706028e7e733947abd6299f0e089a3
BLAKE2b-256 96e1082983d933e9e8af2c8fac601501e233d4d4091f0394f9219a36a89cb08c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.662-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.662-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 34727038116bd1e7f23173ff4a2ffbb9ad011bba2a0b6f5c545960962e154de5
MD5 83412ee45378810fd1fa3625b55778cd
BLAKE2b-256 8a703da255fe2ff496fcadc22631b92ef9740e73bf1068bd124604a95f681c21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.662-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.662-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ddce4ba24c02b8c7f65b5e8f484388d989d6ba3a62feb60e01906f5ad41b1386
MD5 c511807b9ecaf082b0ad12e71f28b7df
BLAKE2b-256 ef40683c1c8830eab1d9ce9c19f1fc64e52283defb027c2c8080ded5d631187e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.662-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.662-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f65e846f99aab4f378eeb2ff230437146666a4df53c49234dc5ecf61bf7d3bb3
MD5 85376e125e0ff04d782f25e5d51c91ff
BLAKE2b-256 23899b881467490bb85b9b526fc97965f1ebfd94caef33b4e2a185ccf6a9fd3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.662-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b9a048caaed5e82652c19ebcd7fd10caa80587de99741eff28823950d6ce092
MD5 5610b9e89b797b9ce3540e433f62250c
BLAKE2b-256 a68194d447a0864f027ac6f894948d2ca89f3e52279728527e67d0c7c539dfd1

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