Linked Questions

1 vote
0 answers

How to assign (and retrieve) variables with subscripts? [duplicate]

I like to give subscripts to my variable names when the variables are related. I.e., Subscript[r, i] = 3 3 A problem arises when I later assign ...
jlconlin's user avatar
  • 247
0 votes
1 answer

Is there a way to use a subscript as variable? [duplicate]

I'm really new with Mathematica, and I could not find a previously question similar to this one. Is there a way that Mathematica can be made to recognize and treat a subscript letter as variable so ...
bruno henrique's user avatar
1 vote
0 answers

Why is my answer being displayed with "Subscript^(0,1)[a,b]"? [duplicate]

I type in my equations using ctrl+- to make it look nice and my answer outputs in "Subscript^(0,1)[a,b]" form? What is going on? In the answer some bits are displayed with the actual subscripts and ...
WetlabStudent's user avatar
0 votes
0 answers

How to prevent function from substituting the part of the parameter name if it has a subscript? [duplicate]

I have the following problem, when defining and using a function, that's supposed to have an outside parameter xmin: A[x_] := Exp[-x/Subscript[x, min]] A[5] E^(...
user14679's user avatar
0 votes
0 answers

Syntax question for declaring variables [duplicate]

I have a very basic syntax question for declaring $X_{hb}$ a variable. f[Subscript[X, hb_]] := Subscript[X, hb] In mathematica instead of writing the ...
Ozera's user avatar
  • 125
546 votes
37 answers

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
44 votes
5 answers

Clear complains that a subscripted variable is not a symbol or a string?

Here's a small listing where I've used EscqEsc to typeset θ in the notebook: ...
Peeter Joot's user avatar
  • 6,388
17 votes
6 answers

Why can't I define vector v as having subscripted elements v_1, v_2, v_3...?

I'm a very beginner in Mathematica 8 programming. While trying to play a little with tensor analysis I encountered a problem. How to define for example vector in such manner: v={$v_1,v_2,v_3$} For ...
Misery's user avatar
  • 2,570
6 votes
6 answers

bar and hat only apply to certain letters

(I'm navigated from where I asked almost the same question) I'm a beginner in Mathematica. Like shown in the image below, I'm trying to put hat ...
IsaacS's user avatar
  • 583
17 votes
1 answer

How to create symbol whose name has subscript?

I can do Symbol["foobar"] to create a symbol foobar. How to create a symbol $\theta_1$? ...
qazwsx's user avatar
  • 8,666
4 votes
2 answers

Save variables values and definition

I used to do a lot of programming in R and recently switched to Mathematica. One thing that bothers me is that I haven't found a way to save variables, their values and definition! Let's look at an ...
rainer's user avatar
  • 401
3 votes
2 answers

How to define a vector with automatically added symbolic elements with subscripts

I want to define a vector lets say k containing elements Symbolize[Subscript[k, 1]], k2, k3 ... etc. When I define lets say k4 . I want the symbol automatically added to vector k. Something like ...
s.s.o's user avatar
  • 4,539
4 votes
2 answers

Using Greek letters with subscripts as symbols

I'd like to use Subscript[ϕ, 1] as a function name: Subscript[ϕ, 1][x_] = C1 + C2*x + C3*Exp[α*x] + C4*Exp[-α*x] But as I use ...
Daniel's user avatar
  • 41
1 vote
2 answers

3D plot of multiple functions

I am just starting to learn Mathematica. I defined two functions Subscript[x, 1][t_, α_] :=1/2 (3 - 2 E^-t + E^t (2 + t) (-1 + α) - α) And ...
bluehills's user avatar
6 votes
1 answer

Best way to write an equation with subscripts and superscripts

This post is not about a specific Mathematica problem but about to develop the best way to enter mathematical equations with subscripts and superscripts. I have a ...
Tugrul Temel's user avatar
  • 5,490

15 30 50 per page