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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.586-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.586-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.586-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.586-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a51b3cd61acb4ea70682f4243218cd44e1b989d60522eba4dd65709abdb9d190
MD5 a72414f2c71a1bc7d3a551cb57cb0be5
BLAKE2b-256 9f773feb52a4d624332bde00482ce08cc94f2ed94fdf2f12a18b92fa56e12707

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.586-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.586-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6966b895ad91deccf47d9dc1e31a282a087faaa74be3654ed73a45a3edf7779d
MD5 e7879b956a63a14f5a1f427bb29201b9
BLAKE2b-256 5088a2f8438a3be3fe1bf8c772e2662da110ce09526cbb6972a5ca2032705ce9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.586-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.586-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e35063866881c2c7df6fcca239016d051d500db91f2f20a4631ade191f573f7b
MD5 b058412a614ff22b3c950488a54baf14
BLAKE2b-256 fbea2bb65d6511193f7ee086348c927f668bb890528ae9e1bb9d06339a98f168

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.586-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 151883114881f959db97b2332778a867b6083cc07da0fda4c8125909bb2e65e3
MD5 4a85547183cf583a024eaa0c6a659b86
BLAKE2b-256 48d7aff6822e11bbcec5b53dd5c330a43a5dc04c35a0261d5b5629004c3d359f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.586-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2a77342942522c604167a30e4384998d6ce0df4228aa3b0ddadb916b61fa2094
MD5 78677ace7bc0d97d0655fee69d80270e
BLAKE2b-256 1300fea2772a06575aefe161c4aa7b8325087491a9773aa5a005ef808c00cf43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.586-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.586-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3c41dba8f6935e26524363c55474a164c33ea6de717d0518f107ce74101ee014
MD5 a44ac3ad7fa6d11fec7a035bc4417c82
BLAKE2b-256 ca0495badabce890f5d5fbdab746e93dc5e27e650e0ba0820f4a6919da815fdf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.586-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.586-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e0fc3ae3404a449e418fbed5df38bd4ff586b97740061ee33452983b3dd0cd6
MD5 d4422cf68855f55c213611d8739e1b01
BLAKE2b-256 389b624f6b39418b88c832b25715de9d60f9eace1ab60c023fa128cc144a2257

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.586-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82e4812c36b788559597c3484ae1a4c9e0ccebaa9ce6612c569b574abe2a2ec9
MD5 ec4aadfb371c179de97dfd063eb9ebc2
BLAKE2b-256 8e23d157b8928c4e2a0107a90457404845a175c68ed7ec126fbebcb85fec685b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.586-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e42a2d692559f0e5c6a6c6ca29c6bcc50f1daac858dfed6afe3464503ba79e5e
MD5 5f85991b803a968af3e7342979d80e86
BLAKE2b-256 b2a02f418ace116d6c44bebbefcd3422d3fa21fa79763cf6fdbfe00ec4c2f61a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.586-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.586-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8a1a34069fc3a88a6dc85c7c17eb0820f820fff2581fecad129f4ead1886cb3b
MD5 296b8e8b4be94dbcd1ad396f36495c6e
BLAKE2b-256 8100c3c87e2435a76f248a7cfb38c84ad227026c1609f1b8f72685e8e29ed4eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.586-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.586-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73e34152b5a0655616dc4b7c8bfddde1c41b7765d1576b4b4736f720c5601342
MD5 492f12e53ab5640d598d594ee624d646
BLAKE2b-256 ef8789cda471b0549735830a80bf40bc2ecdb2140ea74cb8f0c0af8a375e5687

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.586-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b983d914bffc7fd00ed98cbbeb8d7bb146e84b948aed1d5ac01f36b79238fa8f
MD5 1d2e4c8de7d1d8f49c449c11426c5df7
BLAKE2b-256 469334331f193fe0d298c191637ef3d9b89a78223fb38c44e02c8db6544b267e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.586-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.586-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c352731961dfe5013402126a65f6a533e39302eea00f570728a2f5ea25f60595
MD5 d944dff4e468484317a7fca47980cd41
BLAKE2b-256 8302d17322eb202a3152f4b6f9ed25057ec4f80600c860ad6fb75cc85ac483b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.586-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.586-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e4f8c4a83d49c0486a77a686104ed176e823a5b854e0e91d0bb974c0d20972b8
MD5 c1c922c785da04c860db81f99f7abc69
BLAKE2b-256 fd0ecf2feec0e73875c334a5f13b29846a8ffb3b257658a1463f85852cdb6c4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.586-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.586-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7203c066a75aff97a747fab6341249af43b775dda49a9ea65a6f3acde16c38c3
MD5 958c23c5ada525ff7398d7178e5f25b6
BLAKE2b-256 990f481a55de7a4d8fc818729d0ee421946c6ac838d38048a2486f24944af157

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.586-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d01968077a4b2ef41ad1e394d78cf345f260265503d5995ded2ab5a45aac963b
MD5 c5537e1a509fea48a8c9679bf78a85d5
BLAKE2b-256 441925addacc7879065ed22b06923c2ba0af86cea6cefa08013c70e475b71524

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.586-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.586-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c488cd527e6d3c37bf3a6aaea0a46c98e5cb6986a4b0e7dc8c1b833cc69f22cc
MD5 d383dd959ca5ec2b464e693ffb48c638
BLAKE2b-256 57e633c4317b7594b271e783a95945922ac6f0005e6551830b6fb2adfa33c18a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.586-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.586-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e8fc0db1652309063432552de5d357d4d7c480bf58d65aca037d5ceb1c781a65
MD5 bfca3e6c576f4f34e1bbf8e955507b2c
BLAKE2b-256 0c706963d5d945a02985947b9a065932f91484e5375e466cdd4337ed0174a68f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.586-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.586-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 159587fe549f3764015d038061bb81d97f00f25a49c93bbf4e7904e40549c541
MD5 83eff72a2d33bd0f676f1b956539933f
BLAKE2b-256 cfe0fc2a11cdafb69a979c3eaac2d6ce4de93a402a54780cbe3e3fad879f05e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.586-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79266d2cb0b0647062827138f4a17c929e5f1410070874338a4b0a8696391df2
MD5 12e689d2f337dfbcd514775c7dc3d178
BLAKE2b-256 b697271cec4256678bd8890e4dbbc1d1c35357679c6c895dd81b6d8853689b85

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