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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.667-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.667-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.667-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.667-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 13cd4aa3ef11baf8aa4806547bfff67e85ec45fb3c51b0088d456bb4d3c76c62
MD5 48eed8bbab88b9aeafaa1c46661f6ff9
BLAKE2b-256 b34e8ba08708ec214f64f2a7687e34ad3d57ce1b5025ec2df5e864af835cc0b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.667-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.667-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 89cbdf03a4d080c9d26949f36d55b32f47b04b6ededebe19eae45800daf47a61
MD5 33c981098e8ca6ae456dd6ad2c24ccd1
BLAKE2b-256 d657b9fcdddeea762989f851e9944e03b29dfaff7ffaeb27d4849c18b1b2c82b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.667-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.667-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab0e7ef90fdb96d1f3b7021ddeaee1721bb9a0554255ad777bf4d6c5ae447ad4
MD5 594ad2d144c0a3e7de728fcb0a43db02
BLAKE2b-256 be20d246ff5b9e06f82416612b043b2a1d5864250f94e6e9867b24541de3d1a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.667-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b539db54d3c2722515d822987a2a51bebd6e34c8737f7e70ad1fb1892540be25
MD5 7ff935b04271df96437c366542861da8
BLAKE2b-256 68fce0228333f37b0ab56242cafab2cd77b9439d85b4f15b864a9b9558aa2c73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.667-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f7820e2a68d7ee051f4e5b80f3e1a39d56f71c7be181ee313c2bbf4d966054bd
MD5 6544f647a9e09b1e12bd7e23237504e1
BLAKE2b-256 98bdeeec03131ea576ef54001a218e767d3c460297c8f20155239a7557022eab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.667-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.667-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3c73589d675cc4a4e2647287916843d9be17fffcd3d7277364846bd66628c9c0
MD5 5295fa3825753dee5f87bd341a325720
BLAKE2b-256 93a56c4ee9f67d376b2dadbfef0626556bb3b7550145a95008bb9c585fca5350

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.667-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.667-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c5044dc7a691bc761dae97393fb25c8506a33fe59983467d06ccf597843fcd2c
MD5 bd4df8c824690e9f98e8e7cc434e9630
BLAKE2b-256 086e684bec48166c72f9c8a3301ce7af460d160fece6e232cd4ff06a3ac2da5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.667-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cdda0f0c2c190f9c30186c6f6fd52d796f7779db7cdab889d8ef7ec7083d4b48
MD5 ff12d25c4f73ea2812ea142791eb6f37
BLAKE2b-256 a6cab537c840c2eb00641a0fb80a257681b7f6b16ea495c4b6f2ec3380975c9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.667-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 68c8fb9719dc2043a1cfff33101c7a29bedbf7eac0546038c08f30271ec319b1
MD5 fada2c9e002a2ae29820488729522d8d
BLAKE2b-256 3766d18e103768d94c4852506565e15cdd4f2ad3e1a10abb77720be314f51dcc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.667-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.667-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c0a354f683361b47f9a4996fae4548f856d2a2cecb9c01f5b7a17bc09dd1676d
MD5 b9344d2e701c23fc6fd9f47183a082e8
BLAKE2b-256 ca008c89154a2000e4ba270c3a294b110e2742613211bfbd63648f648ae363f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.667-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.667-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e1dad510f040a5640171cedafab14020366ec364ec5a604f03fc567a9b6f91b0
MD5 79b7fb8dbf4eccda8a71f18b6759546f
BLAKE2b-256 e093e95243c45a863d2563961cb95b316f915be757ae64c90a9a202b3c60cf9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.667-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab4204bd48ce0d1ef41ff67324f9f43c36328e03d91797172d02319b467c9295
MD5 06065650e67e30bd98c55019e1c34595
BLAKE2b-256 1b82e9763e09ec757e0c9d80fcd6f4fada58c05e4f3da9f5bc970956304789d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.667-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.667-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ef6c1ec19d64dea47efb3f187d9455b375e89066a656e82a51a2ecf9f673cf6c
MD5 994af71432012c7750456e06c945184b
BLAKE2b-256 02b89f2501eae14a23933c9c3f8c809af99c4fea8ab0330a8ffd04133b52182c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.667-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.667-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f5784e978cfa1d672dbb83a13a5eee139550d66644ca9efab5a0d0796206406f
MD5 dc7e38993efea7a8fab966f0f98d3758
BLAKE2b-256 c1c2a57df4f477a104addf68ec1c83f7b97e2431456e7d1223b7535bb85453dc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.667-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.667-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b6e26589dfa00ddf155eca93705b6cd2cb498f9d32d6c54d6d1c0dafbda0745
MD5 f58f75f2ac09d51e8db49407bba993a7
BLAKE2b-256 c7143b642d5c52075bfd7595418337b459d60a56cdc31a7f32b8587f6bafe125

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.667-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72d37e21c6af7fc6780c061ddb56ac38489fcbe21e2c0f3557d838118294a3f4
MD5 be2e30e3324c8dcc7c90b800dd93f201
BLAKE2b-256 064ad92dfab80302a42322e7a50fead62fb050c611855fcfcbfc0b86beaf9840

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.667-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.667-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6acb34af614899645cd850ce8348978eda90fad4970456fd49516341e6b64499
MD5 b1d3788314c669797277a6726c5af0b1
BLAKE2b-256 6c8bb21ef21f4fc36bfc4959bd1363e3a319230d335f9a12bc9aae861214ef01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.667-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.667-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 59a569587e5d534dcdd7e93383220474c6e91a162d203df9c7fb47e3b82f5cc9
MD5 9c6ea3786974a534fb72f3a70ecd7cb9
BLAKE2b-256 f2e6d9aca1faab69694bdae19990b51b0050851d22046d3f6e6338ea0751baa9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.667-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.667-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d281b5ed9a00dc29a3f3f6fc0e80ede4d1fac5a002417618f2a433401a57412a
MD5 02f17e4f2d8d5bc772c7c4bb79ae409f
BLAKE2b-256 2d5047943e3d48dc24f352b95afd485375cd86acdc6fa303ef74c485d3381ce8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.667-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5aa74cdc9743e7bc1e1b330ed7c1f882aa9dc98a9b73e1ade650da80a03653e1
MD5 6f485126da8fff85bc0c67d320821b61
BLAKE2b-256 f1e02f23281de5519e603bbcf6b9bdcc6ec391e6ed216af79f0aaf9079bf283b

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