TransWikia.com

Raise float into the power - print formula

Stack Overflow Asked by MarkL on November 27, 2021

I am trying to print the following:

"$y = 0.25x^1.99$"

But the result is as follows:

i

But I need the 1.99 to be in power all together, of course.
I searched a lot but cannot find the solution as I may getting the terminolgy wrong.
Thanks.

One Answer

So I'm not sure why it is related to python but what you're looking for is : "$y = 0.25x^{1.99}$"

I tested it with matplotlib since you don't mention what you're trying to do with it, and it works as intended.

Answered by Luke B on November 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP