Skip to main content

This package converts symbolic functions written in sympy to their numerical versions and also generates the Jacobian matrix.

Project description

Symbolic Modeling Tool

This package converts symbolic functions written in sympy to their numerical versions and also generates the Jacobian matrix.

Features

  • Convert symbolic functions to numerical versions
  • Generate the Jacobian matrix for the functions

Installation

To install the package, use pip:

pip install ps_symbolic_modeling_tool

Usage Example

Put your symbolic code and model information into a folder (suppose the folder is named sym_files).

From another Python script

import ps_symbolic_modeling_tool

# Define the paths
folder_path_for_files_to_be_converted = 'sym_files'
num_output_folder_path = 'num_files'
jac_output_folder_path = 'jac_files'

# Generate numerical functions
ps_symbolic_modeling_tool.to_num(folder_path_for_files_to_be_converted, num_output_folder_path)

# Generate Jacobian functions
ps_symbolic_modeling_tool.to_jac(folder_path_for_files_to_be_converted, jac_output_folder_path)

From the CLI

ps_symbolic_modeling_tool num --folder_name sym_files --output_folder num_files
ps_symbolic_modeling_tool jac --folder_name sym_files --output_folder jac_files

Licence

This project is licensed under the GNU Lesser General Public License v3.0 (LGPL-3.0) LICENCE.

Contact

If you have any questions or feedback, please contact tianqi.hong@uga.edu.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ps_symbolic_modeling_tool-0.2.0.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ps_symbolic_modeling_tool-0.2.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file ps_symbolic_modeling_tool-0.2.0.tar.gz.

File metadata

File hashes

Hashes for ps_symbolic_modeling_tool-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dc1ec00e90694ac18083a0578d152263f7a9dab2a2d090e709ccaecee4ed7403
MD5 d3158da6638becb9bacd1ebf6b794421
BLAKE2b-256 c1eb7dc289dfa119ad19194a28801e17a94eaf0395d9b4ecba6fae53d7615995

See more details on using hashes here.

File details

Details for the file ps_symbolic_modeling_tool-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ps_symbolic_modeling_tool-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f08ef6da5dcbe7f05a32c59c0eb3664bbfd5c7d78df9f86e48f2427f8654e7b
MD5 191bfb19d145bfeab9afddcd99c52f87
BLAKE2b-256 7f702fa88e637fb98f3a61c84096417cd199ccb27ef60ac506b22c7830906fb5

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