I have a very simple question. I have an array of floats
a = array([0.01,0.1,10,100,1000])
I would like to print this array so that the end result looks something like
10$^-2$, 10$^-1$, ....
Is that possible with the % command?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
as a one-liner:
or more clearly: