```python
from cime import *
import matplotlib.pyplot as plt
from sympy.physics.mechanics import dynamicsymbols, init_vprinting
init_vprinting()
```


```python
t = symbols("t")
r2 = 3
t2 = kinvars("theta_2")
r3 = 8
t3 = kinvars("theta_3")
r1 = kinvars("r_1")
t1 = pi
```


```python
v1 = Vector2D(r1,t1)
v2 = Vector2D(r2,t2)
v3 = Vector2D(r3,t3)

s = VectorLoop(v2,v3,v1)
s
```




$$ \begin{bmatrix} {- r_{1} + 3 \operatorname{cos}\left(\theta_{2}\right) + 8 \operatorname{cos}\left(\theta_{3}\right)} \\ {3 \operatorname{sin}\left(\theta_{2}\right) + 8 \operatorname{sin}\left(\theta_{3}\right)} \end{bmatrix} $$




```python
ssol = s.solve([r1,t3],{t2:rad(40).evalf()})
ssol 
```


```python
ssol
```


```python
s.draw({r1:ssol[0][0], t3:ssol[0][1], t2:rad(40).evalf()})
s.draw({r1:ssol[1][0], t3:ssol[1][1], t2:rad(40).evalf()})
plt.axis("equal")
```


```python
r1 = Vector2D(x=10,y=10)
r2 = Vector2D(x=10,y=-10)
r3 = Vector2D(x=-20,y=0)
VectorLoop(r1,r2,r3).draw()
```


```python

```

29ce01c3609c3b50914a65e6a7b94e314f7c9cb8
ipynb
Jupyter Notebook
examples/nbooks/ForTest.ipynb
iro-upgto/cime
1e71927f8dc029d5968f63a1c86991eca1456dd0
MIT
examples/nbooks/ForTest.ipynb
iro-upgto/cime
1e71927f8dc029d5968f63a1c86991eca1456dd0
MIT
examples/nbooks/ForTest.ipynb
iro-upgto/cime
1e71927f8dc029d5968f63a1c86991eca1456dd0
MIT
Qwen/Qwen-72B
1. YES
2. YES