(John L Weatherwax) Solutions To Introduction To L (B-Ok - CC)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Untitled2

January 10, 2019

In [1]: from matplotlib import animation, rc


from IPython.display import HTML
import shapely
import idealab_tools
import foldable_robotics
import pynamics
import pynamics_examples.pendulum_2_ways

2019-01-10 11:10:54,920 - pynamics.system - INFO - getting dynamic equations


2019-01-10 11:10:54,950 - pynamics.system - INFO - solving a = f/m and creating function
2019-01-10 11:10:55,132 - pynamics.system - INFO - done solving a = f/m and creating function
2019-01-10 11:10:55,583 - pynamics.integration - INFO - beginning integration
2019-01-10 11:10:55,587 - pynamics.system - INFO - integration at time 0000.00
2019-01-10 11:10:55,819 - pynamics.integration - INFO - finished integration
2019-01-10 11:10:55,826 - pynamics.output - INFO - calculating outputs
2019-01-10 11:10:55,828 - pynamics.output - INFO - done calculating outputs

In [2]: HTML(pynamics_examples.pendulum_2_ways.points_output.anim.to_html5_video())

Out[2]: <IPython.core.display.HTML object>

In [3]: from foldable_robotics.laminate import Laminate


from foldable_robotics.layer import Layer
import shapely.geometry as sg
box = sg.box(-2,-1,2,1)
box = Layer(box)
circle =sg.Point((0,0))
circle = Layer(circle)<<1.5
lam = Laminate(box,circle)
lam.plot()

1
2

You might also like