Skip to content

Commit 1008c0f

Browse files
authored
Fix code block formatting in README.md
1 parent 0f26d4e commit 1008c0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,25 +127,25 @@ To run the latest GitHub version, download the repo and install required package
127127
## Quickstart
128128

129129
Import c4dynamics:
130-
```
130+
```python
131131
>>> import c4dynamics as c4d
132132
```
133133

134134
Define state space object of two variables in the state space (y, vy) with initial conditions (change the state with your variables):
135-
```
135+
```python
136136
>>> s = c4d.state(y = 1, vy = 0.5)
137137
```
138138

139139
Multiply the state vector by a matrix and store:
140-
```
140+
```python
141141
>>> F = [[1, 1],
142142
[0, 1]]
143143
>>> s.X += F @ s.X
144144
>>> s.store(t = 1)
145145
```
146146

147147
Print the state variables, the state vector, and the stored data:
148-
```
148+
```python
149149
>>> print(s)
150150
[ y vy ]
151151
>>> s.X

0 commit comments

Comments
 (0)