Skip to content
Snippets Groups Projects
Commit 4618177d authored by Lukas Müller's avatar Lukas Müller
Browse files

Implemented first mathematical function capabilities

Former-commit-id: ee913fea251dd9151e29a22108c6110e859ebfdc
parent 99279646
No related branches found
No related tags found
No related merge requests found
Pipeline #193014 canceled
Showing
with 12 additions and 0 deletions
......@@ -85,6 +85,18 @@ print 'Getting repository connectivity graph (RCG)...'
# Get repository connectivity graph (RCG) from knowledge Base
RCG = KB_sellarProblem.get_rcg(name='RCG')
print 'Adding some equations to the graph for illustration purposes (RCG)...'
RCG.add_equation_labels()
RCG.add_equation('A', 'a', 'Python')
RCG.add_equation('A', 'a', 'LaTeX')
RCG.add_equation('A', '<math xmlns="http://www.w3.org/1998/Math/MathML"><mi>a</mi></math>', 'MathML')
RCG.add_equation('G1', 'y1/3.16-1', 'Python')
RCG.add_equation('G1', 'y1/3.16-1', 'LaTeX')
RCG.add_equation('G1', '<math xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mn>1</mn><mo>/</mo><mn>3</mn><mo>.</mo><mn>16</mn><mo>-</mo><mn>1</mn></math>', 'MathML')
RCG.add_equation('G2', '1-y2/24.0', 'Python')
RCG.add_equation('F1', 'x1**2+z2+y1+exp(-y2)', 'Python')
RCG.add_equation('F1', 'x1^2+z2+y1+e^{-y2}', 'LaTeX')
# Plot RCG
if show_plots:
RCG.plot_graph(1, fig_size=fig_size, show_now=False)
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment