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.1.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.1.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ps_symbolic_modeling_tool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 34e1178b181c21dee58e67ed1758a3d39f74dba9f10f6421bad3f31ba13125ee
MD5 cb9596687c55e11927902a28b4447de3
BLAKE2b-256 1b2ee95eb4d94db352a46d5a954b62968876bf571fd6e80c00a86c8927038315

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ps_symbolic_modeling_tool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a2d4d036022cdc52722c5395c6882ed292ace1168364b17e83175635809e82d
MD5 1518988eafe072ab9a9055b8bcd32ed6
BLAKE2b-256 d1f8bcd57b369f620f3adad92971d2667968e31cb99e7322698ebc90b7997422

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