Questions tagged [subscript]

A subscript is a number, figure, symbol, or indicator that is smaller than the normal line of type and is set slightly below the baseline.

Subscripts are common in mathematical notation (generally indicating position, such as the index of a variable in a vector) and chemistry formulas (e.g. H2O).

Subscript and superscript (Wikipedia)

625 questions
0
votes
2 answers

CSS Bold Text subscripted with image in same line

Just look at this screenshot and I think you'll get my problem: This does only happen if there's a image (like this smiley) in the same line. Happens to bold, italic and underlines text. There is no special formatting on the image. Does anyone…
Tobias Baumeister
  • 2,107
  • 3
  • 21
  • 36
0
votes
1 answer

C# TableCell Format Text or Render HTML

Hard-coding a table in which a cell displays Rmax with "max" as a subscript. TableCell c = new TableCell(); c.Text = "R<sub>max</sub>"; But the result is rendered R< sub >max< /sub > (without the whitespaces - sorry, crappy get-round to…
Extermiknit
  • 153
  • 1
  • 2
  • 12
0
votes
1 answer

R summation of a serie with subscript

I thought it should be an easy one but I have been scratching my head and couldn't find the correct way. I would like to calculate a summation of series A: A<-*summation((i=2 to i=s)*K(c1+c2(i-1))) where k, c1 & c2 are fixed values. Expand A, i…
lamushidi
  • 303
  • 3
  • 5
  • 14
0
votes
1 answer

What is the definition of a Subscript in a Java array?

It is on a test review and there is no definition in the book.
user2278811
  • 7
  • 1
  • 3
0
votes
1 answer

VB - Subscript out of range, error 9

**I am new to VB and I received and error 9, subscript out of range. The error indicated it was in the below procedure. Please let me know what might be the issue. I appreciate your assistance Private Sub RebuildGrid() Const c_strProcedureName…
user2196817
  • 1
  • 1
  • 2
0
votes
1 answer

Subscripting a string in Javascript

I have a data in the object section_data.title and i am trying to use str.sup() where str=section_data.title; and str holds following data: str="Not less than 30 net ft2 (2.8 net m2) per patient in a hospital or nursing home, or not less than…
tnchalise
  • 1,573
  • 2
  • 18
  • 38
0
votes
2 answers

Run-time error '9': Subscript out of range when creating matrix

I'm trying to create a varcov matrix using VBA but despite hours of trying to track down the answer to this problem have been unable to solve it. My problem is that I keep getting the run-time error '9' on each of the below double-asterisked…
0
votes
1 answer

How to fix this buggy code (roulette wheel selection)?

I am implementing genetical algorithm to minimize some function of 20 variables. Each individual is stored as a vector. scores are stored as doubles. double sum = 0; double sum = sumOfScores(); double random = (rand() * sum)/RAND_MAX; int selected =…
jazzybazz
  • 1,807
  • 4
  • 17
  • 21
0
votes
1 answer

Subscript of vector is sometimes out of range

I have a genetic algorithm program, everything is allocated dynamically using vectors. Nowhere is the number of generations or individuals per generation set at compile time. I tried it using 500, 1000, 2000 generations, it runs perfect. Then I…
jazzybazz
  • 1,807
  • 4
  • 17
  • 21
0
votes
2 answers

Unable to display subscript text in textView

I'm quite new to Android and I'm trying to display some chemical formulas in a textView which is contained in a customListView. I'm fetching all datas from xml parsing, then I wish to display the formula, such as C₉H₈O₄. But I can see only 1-4…
Enzoses
  • 115
  • 14
0
votes
1 answer

Invalid types 'int[int]' for array subscript error

I'm migrating into C++ from Java world and am trying to port over an example. I'm getting an error in that I'm not accessing my arrays correctly. I tried pointing to them, using -> and * notation but I'm having a hard time getting my head around it.…
amoeboar
  • 355
  • 1
  • 4
  • 22
0
votes
2 answers

import excel file with subscript character

Uploading Excel file is ok and not an issue gone through many articles on uloading excel to mysql Tried http://phpexcel.codeplex.com/ http://sourceforge.net/projects/phpexcelreader/ https://stackoverflow.com/a/7889220/1026905 (really nice…
0
votes
2 answers

How to display subscript in Visual C#?

I am making a projectile motion simulation program for my A level Computing project and I need to use physics notation with subscripts. I have no idea how to use this in a label or a rich text box. Can anyone please give me help/code to implement…
user1920206
  • 69
  • 10
0
votes
1 answer

Formatting NSString for superscript and subscript

I am writing a utility app for some coworkers. The app is essentially a custom notepad, with buttons that represent the shorthand they use to transcribe a task. All of the buttons add a string to arrays that I have set up to hold the transcript, and…
Joel Wehr
  • 65
  • 8
0
votes
1 answer

I'm getting a "subscript out of range error" everytime I debug this code. Can someone please help me pinpoint the error or errors?

I've checked all my strings and arrays. Nothing looks wrong to me. My include statements may be the problem. Perhaps I am missing one. I'm am a novice programmer. So I am clueless as to why this code will not work. It looks right and should…