Skip to main content
Tweeted twitter.com/StackMma/status/1367988298908635140
Became Hot Network Question
edited tags
Link
Carl Woll
  • 131.7k
  • 6
  • 246
  • 359
Source Link
BabaYaga
  • 1.9k
  • 1
  • 11
  • 20

How do I write Sqrt[x] as x^(1/2)

Sometimes it is needed to keep the powers as the fractional form. However Mathematica tends to write x^(1/2) as Sqrt[x].

How do I keep x^(1/2) as it is in the output without writing it as Sqrt[x]?

Here is a simple example:

 expr = Rationalize[1+x^(0.5),0.0000001] >> output.m

Output is

 1 + Sqrt[x]

Instead I want the output to have the form

 1 + x^(1/2)

I could not find any solution for this.