# Creating objects and superscripts interpretation?

**URL:** <https://community.wolfram.com/t/creating-objects-and-superscripts-interpretation/21865>\
**Category:** Questions\
**Tags:** ui-ux-and-ide\
**Created:** [April 10, 2023, 3:29am UTC](https://community.wolfram.com/t/creating-objects-and-superscripts-interpretation/21865 "2023-04-10T03:29:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![315229706](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/315229706/32/40052_2.png) [@315229706](https://community.wolfram.com/u/315229706)\
**Post date:** [April 10, 2023, 3:29am UTC](https://community.wolfram.com/t/creating-objects-and-superscripts-interpretation/21865/1 "2023-04-10T03:29:29Z")

</div>

# Create an encapsulated object

I want to create an object in Wolfram Mathematica in Box form like InterpolatingFunction as following notebook. I tried Box and some other methods but failed. InputForm and FullForm of this expression seems do not give much useful information.

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/642e1c04-d493-4c2a-abe2-e862dec70d3c)

# Change Interpretation

The Mathematica will interpret input ctrl+6 into power like following:

◔

Can I change the interpretation into Superscript[x,2]?

# Superscript and Subscript

In Mathematica, I find something weird for superscript and subscript.

` Superscript[x,a]` is allowed but `Superscript[x,a,b]` not.

`Subscript[x,a,b,c...]` is allowed not matter how long the sequence is.

I thought superscript and subscript should be “equal” in some way.

I tried Wolfram-script, where Superscript can accept many arguments:

 ![屏幕截图2023-04-10114612.png](https://global.discourse-cdn.com/wolfram/original/3X/5/7/57ca8ffd37a1619d3c1a0dbacb05cc1f9b5fa24e.png)

It seems it’s not allowed in Mathematica only.

---

<div class="post-metadata">

**Author:** ![rolandfranzius](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@rolandfranzius](https://community.wolfram.com/u/rolandfranzius)\
**Post date:** [April 10, 2023, 6:32am UTC](https://community.wolfram.com/t/creating-objects-and-superscripts-interpretation/21865/2 "2023-04-10T06:32:12Z")

</div>

In modern mathematics there exists a l conflict since the 1930’s between the classical notation of powers (Count of equal factors in a an Orderless function Times) and the TensorAlgebra notation of tensors in a pair of dual spaces of vectors and their projection functions to the coordinates.  
i  
Vectors are the generalization of dirctinal derivatives, their duals are the directional differentials in line integrals, in short

```
int D f[x^1,--.], x^i ] dx^i == f[x^1,--]   

```

Einsteins most ingenious idea was probable to get rid of the clumsy Leibniz-Euler notation with these intimidating sum and Int symbols and their appendices and reduce that central formula of calculus to

```
f_,k dx^k = f

```

where summation or integration or both over equal “dummy” (meaning local ) upper and lower indices is implied and indices after the comma are coordinate indices of partial derivatives.

For a CAS system to be taylored to the use by the worldwide community of applied mathematics in an open field of ever growing specialized model mathematics, the symmetrical use of sub- and superscripts would shrink the market to a handful of abstractly working mathematicians and physicists.

So the Ricci-Einstein-Cartan display form of calculus is packed and outsurced to a special paclet.

At least, such a packet makes sense only if sub- and superscripted entities can be declared as atomically symbols for pattern matching. Times and Power has to be replaced by non-Orderless constructs like TensorProduct in order to guarantee strict 1-1 map between basis coordinate variables and their index, sub, or superscript numbers .

With these conceptual guidelines, I suppose, Wolfram decided to implement the Superscript use to the special Einstein case of denoting the indexed derivatives of a function via sequences of the integer order of differentiations in each variable.

```
Derivative[2,3][f][x^2+ a, y-x] -> f^(2,3)[x^2+ a,y-x] 

```

There exists no extra ^ key to differentiate in input between Power, Derivative and Superscript.

Could simply by implemented, I suppose, as an escape sequence. But without an elaborated algebra on a class of such symbolized, atomized expressions, its use is restricted to pretty printing.`enter code here`

---

<div class="post-metadata">

**Author:** ![315229706](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/315229706/32/40052_2.png) [@315229706](https://community.wolfram.com/u/315229706)\
**Post date:** [April 10, 2023, 6:52am UTC](https://community.wolfram.com/t/creating-objects-and-superscripts-interpretation/21865/3 "2023-04-10T06:52:32Z")

</div>

Hi Roland, thank you.

When I was programming a package for tensor calculations in General Relativity, I tried to find ways to input multi-superscripts with shortcut Ctrl + 6 to make more readable expressions. Finally I find another way to solve the conflict. But I am still in search of a more elegant way to solve the problem.

I see there is a way to input multi-superscripts in the Documentation, which does not really work in Mathematica. That’s inconsistent.

> **[Two-Dimensional Expression Input—Wolfram Documentation](https://reference.wolfram.com/language/tutorial/TwoDimensionalExpressionInput.html#453224886)**
>
> You can use the keyboard to move the cursor forward or backward one character or one word at a time. You can also delete the character or word to the right or the left of the cursor, and you can move the cursor to the beginning or end of a line. Move...

The content is :

 ![屏幕截图2023-04-10144948.png](https://global.discourse-cdn.com/wolfram/original/3X/f/9/f97bcc597c81ac0fe8f34217a366a97c26f8dcbc.png)

I tried but failed, no matter the comma is invisible or not.

I’m waiting for a more elegant way to solve the superscript conflict. And in fact, I’d like to make contributions if I could.
