Error, empty script base - Maple Programming Help

Home : Support : Online Help : System : Error Message Guide : emptyscriptbase

Error, empty script base

Error, invalid base

 Description These are 2-D math parser errors. They occur when you attempt to execute an expression that has a superscript or subscript with no base.   Tip: If an expression is executed accidentally, it can lead to error messages (if it is not valid Maple syntax). If this happens, toggling the expression to nonexecutable math removes the error message and changes the math to nonexecutable. To change an expression to nonexecutable math use the shortcut key Shift + F5.  For more information, see Executable and Nonexecutable Math or example 4a below.

Examples

Example 1

 > ${}^{b}+{x}^{2}$
 

This error occurred because the $b$ exponent is not attached to a base. To create this error, you must actively go back after creating the exponent and erase the base. Using standard keystroke or palette entry, the base is included before a superscript or subscript can be added.

Solution:

To fix this error, ensure that any superscripts or subscripts are attached to a base.

 > ${x}^{b}+{x}^{2}$
 ${{x}}^{{b}}{+}{{x}}^{{2}}$ (2.1)

Example 2

 > ${}_{b}-{x}^{5}$
 

In this example, a subscript is missing the required base.

Solution:

To fix the error, ensure the subscript is attached to a base.

 > ${x}_{b}-{x}^{5}$
 ${-}{{x}}^{{5}}{+}{{x}}_{{b}}$ (2.2)

Example 3

 >
 

This is the same type of error, but the missing base for the superscript $b$ is found inside the expression. The 2-D math parser returns a slightly different error, because it is interpreting the superscript as a base, which is invalid.

Solution:

Just like the "empty script base" error, you must ensure that any superscripts or subscripts include a valid base.

 > ${x}^{2}-{x}^{b}$
 ${{x}}^{{2}}{-}{{x}}^{{b}}$ (2.3)

Example 4a - Expression in text

To write an expression but not execute it, you can use nonexecutable math.  That can help avoid parsing errors for expressions.  For example, suppose you want to write Radium-229 in isotope notation in text, either in a paragraph (or in a plot—see Example 4b).

As a first attempt, write a^229 Ra and then delete a.  If executed, this gives a parsing error.

Radioactive Decay of ${}^{229}\mathrm{Ra}$

 



Solution 1

Change the expression to nonexecutable math: click the expression, and use the shortcut key Shift + F5.  The error message is removed. For more information, see Executable and Nonexecutable Math.

Radioactive Decay of ${}^{229}\mathrm{Ra}$

Solution 2

Use the Layout palette element ${}^{{b}}{A}$ or use the shortcut key for pre-superscript.

Radioactive Decay of ${}^{229}\mathrm{Ra}$

Example 4b - Expression in text in a plot

Now suppose you want to write use Radium-229 in text in a plot, perhaps as a title or in a legend.

(This example is based on one from the MaplePortal/ChemicalIsotope help page.)

 >
 ${\mathrm{\lambda }}{≔}{0.002887500000}$ (2.4)
 >
 

Solution

Use the Layout palette or use the shortcut key for pre-superscript to get an expression which doesn't have parsing issues.

 > For more tips on fixing parsing errors in text in a plot, including using atomic identifiers, see Typesetting in Plots.
{"ft_lang_label":"__label__en","ft_lang_prob":0.7935914,"math_prob":0.91024536,"size":2131,"snap":"2019-35-2019-39","text_gpt3_token_len":487,"char_repetition_ratio":0.1377527,"word_repetition_ratio":0.03846154,"special_character_ratio":0.21820742,"punctuation_ratio":0.11219512,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9740462,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-22T06:43:24Z\",\"WARC-Record-ID\":\"<urn:uuid:a16845c3-4fc0-46cf-9990-220cd5479c05>\",\"Content-Length\":\"190532\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:cb30c72b-a9a9-4237-81c6-98e9b70833e9>\",\"WARC-Concurrent-To\":\"<urn:uuid:fc34dc7a-b6a4-46b5-99f0-599f913a600d>\",\"WARC-IP-Address\":\"199.71.183.28\",\"WARC-Target-URI\":\"https://www.maplesoft.com/support/help/Maple/view.aspx?path=emptyscriptbase\",\"WARC-Payload-Digest\":\"sha1:TJG2WA6Q5ZWANMGWJA2EAZFUDHCSSGJ7\",\"WARC-Block-Digest\":\"sha1:VCUUTQ65FBFJR3U2LLVU42DLUT4WWLPZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514575168.82_warc_CC-MAIN-20190922053242-20190922075242-00513.warc.gz\"}"}