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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.867-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.867-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.867-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.867-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e844a2d891ce843780727c85f50cda33513e7296b63a14d206e27ddd74fa8c11
MD5 3a19ef6579e0fabe58cd329acec3012d
BLAKE2b-256 ba6966cdab81084ec372e867b8d33e5ad05d4987e6f51e7402b2d16bbac98354

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.867-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.867-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6b74fec28ce6affb75044f3590b9fcc1de4f17768c9ae7e8b00760ce90cf23cd
MD5 10f1dae9669dbc7d514cfdcf6d9a5f32
BLAKE2b-256 d0128107c4a57b2194cc6eed8b5bec6b53d6e98b9ca0c27f18fbefcbc1e4a26c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.867-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.867-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 559bbe43638daba734a39130552a99813150346a9752957748f332f3ceaddedc
MD5 14c4b0e0484dd4d7c9d045cc76635ce4
BLAKE2b-256 c832f38d791404877dd169e3305a39218811eacba1f4b228355e0bb642dc5d62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.867-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ead18d7a320e5cb0bb3c616866165d72b53ffb17e05880b9dd9b3f297872d130
MD5 381f7a8f9a5a2392de0f8fce34f0dc48
BLAKE2b-256 3696dfd8de5af81af86a0d277b453d843935449d38220206b581eb3a0e74924b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.867-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7e543e3a5b1f84954d3e8be932624a2dcbcbc7782aef539f525adc99855061b3
MD5 ec97e28827468c46938305f530ab30a0
BLAKE2b-256 69ba04be4a344d13a1f1684ddf62be244b865bdf948202a363eae02fab9cb10e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.867-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.867-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e706bf65d2095b3037fc685b5ef19e00a2456b1e08e006ecfca7fc5b8d7ecad4
MD5 275406f0b6d1ab3765530d961cd95f2a
BLAKE2b-256 e54b9787f91c19be1e7b61ab2d8cbacdab5191d2eb1c3b343978778ba2df8c12

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.867-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.867-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6955f1ef084aa9e19220ee17e84dae701d4c10ac3701640e65a239e00fc102cd
MD5 65c981fb167ae280eab5f6a937549811
BLAKE2b-256 5e71a1ecd9a24de0ee8e4dd97d9a410ad023fe59fd532423e9bad5be2c6e50a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.867-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb15c245b916f376a97c1d3a12bd2d52bb58621ee879cb54309e3a43f707c1a3
MD5 176d3a7660577792b6f3c58ebfd7274e
BLAKE2b-256 8ad337c66e70d8ab365b719cbc836e97ba90513ee2172e6b9e774030a2e40bc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.867-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 16518e07d5ac5e98ca49abf88d6fba72a84aac1703ee199b037bd21a7bf80fb4
MD5 3041c423c8592f77e95eaee20fa84d75
BLAKE2b-256 dd065adab616400b80b1c0b573888304999d10cf7e91bc5543774a9c25674db6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.867-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.867-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c5d841935e238f9cd3e8bdd3e84edc3f2882cca0da90a158bd4016f06ffd7fae
MD5 6eb74df52bca793b0ccff382bf6f2f3b
BLAKE2b-256 289dc0aa648b9c5e5ec55fd03bdf3532ec6cefce93558390abd260462daec41d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.867-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.867-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 65a6f5b2daeeea71e038bf0502b61738e73e3de9332f23d64c0d750b5a2944aa
MD5 9783cbed98118e41e7b7775740134aa8
BLAKE2b-256 71e22bd725081c8da87eb098d4504e36b7477ca160e94008b04f1e49e4a137aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.867-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07e73c336b6576f01a7f23b43c956589a51905e435403dd8ed3322212ca0d714
MD5 836aa45da8edabae662fd1a33cdfa10e
BLAKE2b-256 8128f810e64f1b5d93345e214e5e7fa279a89e1d55f37f0b4f017a5b5341f7a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.867-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.867-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 89b7e0e15b433ca0f3de133b5d465c563455cf31bf8bc322eb5c2cfb4a262fb6
MD5 d85f9a97abb6d2a167e5326e7c476d1d
BLAKE2b-256 b1fbc77807ca6c53bdc86c7de97afa71f65bf6c53d2c58e06321e735d6612075

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.867-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.867-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 61426bdd5ce0c2d74e0c6984dbaafba29ed232f5f6fedfd6a637786a04ec3cba
MD5 39dfaad23ac1f8c99baab5c8419871d6
BLAKE2b-256 3b9947c0fbf3849d41c9212e5d3e971df63ea1fe5036ff15dfda3e4b7ff89b24

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.867-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.867-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67bf979ce2e73d62b1970d1c25bfd93af73bc3aa91384cd073c97289cc2b53ee
MD5 7f1b03a1a1926b8ba416fba2cf1ec5e4
BLAKE2b-256 514d4fe75bd6d5797177deaba480b245be4b53fd0926c29c9790fabbe9273dd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.867-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bf13dc47d85ae6812c0d5b1577fcfe5ee6134964db281b32d8b9ade195091dc
MD5 7f1606df4d20fc2e8d08421e87b60760
BLAKE2b-256 407147a6095b0d3027e5261a23198eb9fc9df091da22f226b5a2ae5b7666cc60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.867-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.867-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e14c6f2af715baabafdb273d4035c3996a1d8f8be883601cb501b78b6e6031dc
MD5 9f2f85b655eb086125457a19cbb807c2
BLAKE2b-256 2808add7b931ebabc2cafc24ef3aec7f22aa5edf621ab48a69c3d960ea69aa61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.867-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.867-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 23dfb56e818021a1609ed41dd2dfb51157615ede389960f414fe134afcdd49d5
MD5 05ff6b256852166a6a0092825c3454b0
BLAKE2b-256 55c124165d94174f38604a809b9a7d46fb8f7a0d55606fb6b6dc15edbd65becd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.867-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.867-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c9951708fd12d1a5df75f321adb417d5e54cc94f7919b834fa92321d4426420
MD5 97f87c6297a4d2dc0e5aab837c27be02
BLAKE2b-256 284e7dfc57e2a582b8fd2a68fd158cafcc435b800adf7bbe94b10b5c57ac8ace

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.867-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 550a650c0e761a68f8e8f4b06b53370c1cfd65d4d6d7741b44294b059be720fd
MD5 aaac0c56c431cb99aa900a774363083a
BLAKE2b-256 827bd42b9353b2f85966adf2d4528cd5073c845548c9bd29b53bf535cc2fbdcc

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