# What is alternative command besides \`print(ivp\_vt)\` to looks like when only typing \`ivp\_vt\` in REPL?

**URL:** <https://discourse.julialang.org/t/what-is-alternative-command-besides-print-ivp-vt-to-looks-like-when-only-typing-ivp-vt-in-repl/97271>\
**Category:** General Usage\
**Tags:** question\
**Created:** [April 9, 2023, 6:45am UTC](https://discourse.julialang.org/t/what-is-alternative-command-besides-print-ivp-vt-to-looks-like-when-only-typing-ivp-vt-in-repl/97271 "2023-04-09T06:45:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [April 9, 2023, 6:45am UTC](https://discourse.julialang.org/t/what-is-alternative-command-besides-print-ivp-vt-to-looks-like-when-only-typing-ivp-vt-in-repl/97271/1 "2023-04-09T06:45:09Z")

</div>

This is about aesthetic matter,

I want to make  
`print(ivp_vt)` shown like when I type `ivp_vt`, but the problem is if I type `print(ivp_vt)` there is this bugging Eq at front and the format becomes ugly as well, the fraction should be in two rows instead of just one.

What is the command besides `print()` that can make me print:

```julia
ivp_vt
ivp_wt

```

when running one Julia code in REPL to show beautifully?

this is the code:

```julia
using SymPy, Plots
@syms t, g, r, A, u
@syms v()
@syms w()

# Computing IVP with SymPy
diffeqv = Eq(v(t).diff(t), -r*v(t)); string(diffeqv)
diffeqw = Eq(w(t).diff(t), -g -r*w(t)); string(diffeqw)

# To solve the ODE, pass it and the function to solve with dsolve.
vt = dsolve(diffeqv, v(t))
wt = dsolve(diffeqw, w(t))

sol_vt = rhs(vt)
sol_wt = rhs(wt)

# To solve the Initial Value Problem, initial condition v(0) = u cos (A)
ivp_vt = dsolve(diffeqv, v(t), ics = Dict(v(0) => u*cos(A) ))
ivp_wt = dsolve(diffeqw, w(t), ics = Dict(w(0) => u*sin(A) ))

# Manual way
# Find the constant C₁
c1 = free_symbols(vt)[1]
# To solve the Initial Value Problem, initial condition v(0) = u cos (A)
C1 = solve(sol_vt(t=>0) ~ u*cos(A), c1)
#ivp_vt = sol_vt(c1=>C1[1])

println("Modeling with First Order Equations with Julia")
println("A baseball is thrown with the initial speed of u and initial angle of elevation is A")
println("v(t) is the horizontal component of the velocity of the thrown baseball")
println("w(t) is the vertical component of the velocity of the thrown baseball")
println("x(t) is the horizontal coordinate of the thrown baseball at time t")
println("y(t) is the vertical coordinate of the thrown baseball at time t")

println("")
println("The horizontal component of the velocity of a thrown baseball : ")
print(ivp_vt)
print(ivp_wt)

```

![Capture d’écran_2023-04-09_11-11-10](https://global.discourse-cdn.com/julialang/original/3X/b/4/b47ea2648aed1a6d7e9910c819aae459a849d3dd.png)

---

<div class="post-metadata">

**Author:** ![j\_verzani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j_verzani/32/8551_2.png) [@j\_verzani](https://discourse.julialang.org/u/j_verzani)\
**Post date:** [April 9, 2023, 11:36am UTC](https://discourse.julialang.org/t/what-is-alternative-command-besides-print-ivp-vt-to-looks-like-when-only-typing-ivp-vt-in-repl/97271/2 "2023-04-09T11:36:12Z")

</div>

Maybe `sympy.pretty_print(ivp_wt)`?

---

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [April 9, 2023, 12:27pm UTC](https://discourse.julialang.org/t/what-is-alternative-command-besides-print-ivp-vt-to-looks-like-when-only-typing-ivp-vt-in-repl/97271/3 "2023-04-09T12:27:37Z")

</div>

Yes that is what I am talking about. It looks like textbook on Julia REPL now

---

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [April 9, 2023, 12:38pm UTC](https://discourse.julialang.org/t/what-is-alternative-command-besides-print-ivp-vt-to-looks-like-when-only-typing-ivp-vt-in-repl/97271/4 "2023-04-09T12:38:20Z")

</div>

Turns out, SymPy alone with its future version is the only package needed for all Mathematics branches
