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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.696-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.696-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.696-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.696-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3e66c9b3fadb8b292c3dc213692bd19f296c70634c60ae564dfb1b2f69932c4c
MD5 ce74777fe2a1078ae32b3d48e6388e97
BLAKE2b-256 54c0394986620ee61b067e2e270b1ac34ab4160c40190d5ba7baac405a0a050d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.696-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.696-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0523e1440bdf711e29108241ab83fa2826f4b8528f7d6a8645b54a60f3e3896d
MD5 4da2d6e2c5f1d09b8ab7a7c2d2d5b6a6
BLAKE2b-256 79144beb1e378ffa9ea84090366114e5dd0d8ac8a718632f4f62e7c50aa63c96

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.696-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.696-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3271f4984e421af39c8e63cb9aedeb3d3cf48a901b499cc4a85a7514e7eef233
MD5 f9d227f19e83163c5b6be4078a8c0605
BLAKE2b-256 c991264e6c852172514edc6c97cf047d3f6eaad778aad300e8067d70f3e1e0de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.696-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad5407245d7fec12be07348aac90913846a0ae76014008d278600b6f906c2088
MD5 375138be727cd351e940674aa17bd903
BLAKE2b-256 7556cbf346e0dbedd78515ad6e572339292e8c5422b78fde4e1b8aa1a23f448f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.696-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 92085abf69ce6899fe1ff5bdd1972e35609f978a0ed8b3f59187b3f6bd87a72c
MD5 0331759faf17fe2b19a910d953d98635
BLAKE2b-256 cc9427edb2579abe1fce5e596cacf84a0a04cb555778cee04c8983fb2728f2d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.696-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.696-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 611f25f7553d53132a68d1e69c6bf4c99328272ea358edbe95aee53dc26b3a86
MD5 227c28e81d997730dfe99e52af7324bc
BLAKE2b-256 e55f9767afcb4fc6aa471d97118968bc5f2583bfc3c1b66c92dc04d8da3f4ea0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.696-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.696-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ddd08d78d85310b6bd55727de03c1beb6cdb6fc20cba71f7638ea84b2c778f15
MD5 ad37f9c3c195b62682d4f298b3128a10
BLAKE2b-256 8befa6214ec13cf90f68c4822b710543bb24b70a2dde8cf4ed90a3abd03b20f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.696-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4121ffa00658df36d2de034eecfa5cf9431bb8d06c21682919687a9363a1de8
MD5 e97e16463266a6fdcdfc928b7b72abd6
BLAKE2b-256 1fb9d00ce35ee7ee3cd2fe63c215663325bc8e560610a330a7e226842acea4b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.696-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4fcdff70856fe2f375826b6399827320470210bb35e5c9d1d28693ab21c86eef
MD5 a1fcdd1af547a4081a0b5ed001775e5c
BLAKE2b-256 29774df3b7ab5540e079cc5e6318f11bc2c10a0eae8892d85f88e30b968e8c9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.696-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.696-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 51c529659628a7788d6d38334838e41f21400e9e43f1159e6ff3194d71025dd8
MD5 02b95b44d7078ee5f8116dee0c3578dd
BLAKE2b-256 f727b116086bd1449ada9eb1b4ab246ea93af652f42ced767ecafa576ea8ca93

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.696-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.696-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c613e87a258056666e43c719dc1e252106cc9ef6d154c8a3a8b4d9201523e367
MD5 b7c39351579efebd9da7464e0b5b37a5
BLAKE2b-256 0309f1d0f1cab56259bcfceab8ca8b3ed55de941b74b617a7f86f0d35e8b6a0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.696-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25b5c6b029cf2e0ce047e80dd05423e6003aafd7862ebb282b54cf6735f192c1
MD5 297b0426d604109f4dfc0375d0ea0322
BLAKE2b-256 d1b0ca28a6455bc7888ecf562bd08ac0baa530b367a3b2209ee992bb9cde5e26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.696-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.696-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bf39b774a7ae8b0459684b7d2f6eca021c9a740cb068e96524d98ec339621911
MD5 f57a4f6a684502e4c7ccb533c6503583
BLAKE2b-256 d9c498cdd138fdcad947b5fa5ece3bc717edaa77bd8816d66aeec2fb1dfbd90c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.696-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.696-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b7ed527e2b828e13e3513b26018f4ccdc441db02f071c4bd95fb0842aaefbedf
MD5 e7797db415024ee20f34e75a00b0cce4
BLAKE2b-256 644bc189c0c3bd4496d5a6863f66106c9d46b7194ab43b5cc1bb0307b3883d7c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.696-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.696-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c313c9a727c1ba99de684ab1a8a06fdcff6255a90a74014e8f4b37928c4bdf8e
MD5 df41e4d3f033971c3cf6c7e7e996dae8
BLAKE2b-256 ddcaa63d56b7dd7d31f678cf2c2bac41a57c457e2148daced7edf8006b52da47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.696-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e621c148d80efea4c2d7565c3e7d87bd0dd52cc6d7f9751f64429d3009bc2d7e
MD5 722012a2945cdb8fcdbfc61c1b540b87
BLAKE2b-256 00635479d7aa2064eb64b25a9cefb419e0b1b247cd37b9c5fcfb60065d524e7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.696-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.696-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 128da6c43b6aad6aa5b20ffc1f1c5ce77ca41a0a5ca01cea3459b0997a6046e7
MD5 c514d038825d6b62d9c577919a99e41a
BLAKE2b-256 3e2e7ccfa6023d0e481063873108432362def629c2374a6dcd184bdec7535cb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.696-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.696-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4969ca7b5b9f804dc38c22a650d660349e7b7f2d6e122ca36d294f351fac391e
MD5 f84e9ef1eeb594f1bbaadd85ea7f27cf
BLAKE2b-256 4aaf9664176158f41a03604d881e466ee2e0c76a5ae256d8d008a052ef8af990

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.696-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.696-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f117dfc2825c4bc4b94dfc0a72afcd5a11c2ed160ad27ce378fa14de31fe3300
MD5 9d60b94a68d956f8a098b75624e93b69
BLAKE2b-256 491358bdb8e5f59b2860716368c8304e723319b309715c2eb81fd6413a3b67d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.696-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48e999f37659d6ad82f821ca1ce23ce5129c97f263a7763b3d2672d0a3e70d98
MD5 e53a168b91fb17fa774f91fe7af96fbf
BLAKE2b-256 8e88f63fc2743db9227dd2dd4a515c072bdf5ced930c3722c73e5a87686678b7

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