Questions tagged [mathematical-notation]

Questions on the meaning, conventions, and usage of mathematical symbols and notation in programming.

Overview

Mathematical notation relates to the meaning, conventions, and usage of mathematical symbols and notation in programming.

See also

10 questions
198
votes
4 answers

What does this square bracket and parenthesis bracket notation mean [first1,last1)?

I have seen number ranges represented as [first1,last1) and [first2,last2). I would like to know what such a notation means.
Nav
  • 19,885
  • 27
  • 92
  • 135
66
votes
8 answers

Are the x,y and row, col attributes of a two-dimensional array backwards?

If I think of the x,y coordinate plane, x,y is the common notation for an ordered pair, but if I use a two-dime array I have myArray[row][col] and row is the y and col is the x. Is that backwards or am I just thinking about it wrong? I was…
johnny
  • 19,272
  • 52
  • 157
  • 259
1
vote
2 answers

Is it possible to use == twice in R mathematical notation?

I am trying to use R mathematical notation of plotmath in a plot label. In the label, I am trying to use to equality signs, e.g. ggplot(data=NULL) + geom_point(aes(x=0.5, y=0)) + geom_text(aes(x=0.5, y=-0.1), label = paste("x ==…
Lukas D. Sauer
  • 355
  • 2
  • 11
1
vote
1 answer

Mathematical notation to programming code

I have difficulties with transcripting the following two functions written in mathematical notation into Java code (the input of both functions is an array with D elements): Can somebody take a look at the code below and tell me if something is…
TheAptKid
  • 1,559
  • 3
  • 25
  • 47
1
vote
1 answer

"simple math syntax" to MathML converter

I'd like something that converts a simple calculator like ascii math syntax to mathML. I found this: http://www1.chapman.edu/~jipsen/mathml/asciimath.html But I don't understand how to use it.. I'd like to make it work from the command line for…
luca
  • 12,311
  • 15
  • 70
  • 103
0
votes
1 answer

Adding expression to ggplot axis label seems to require an extra character?

I am working on a plot in which I have scaled the horizontal axis by a factor of ten thousand. I've been trying to include that in my axis label, but have consistently failed. However, what I've found is that this works: g <- g +…
Karl Wolfschtagg
  • 425
  • 2
  • 10
0
votes
1 answer

Find the image of a given value in a relation

I have a relation R given below: R = {(a,1), (a,2), (b,1)} To get the image set of a, we can write R(|{a}|) = {1,2} in Z notation, using thick brackets symbol (| |). Is there a mathematical symbol to represent this rather than using the Z notation?…
snow
  • 47
  • 3
0
votes
1 answer

Mathematica Random Integer Function

Is there any way to use the RandomInteger function in Mathematica such that once an integer has been drawn, it cannot be drawn again. For example, I am looking to use the RandomInteger to draw 12 integers, between 1 & 12, such that each number is…
0
votes
4 answers

How to compute the double values in java with proper output?

I am writing mathematical function using Java and when I try to compare my result with ms office excel formula function the accuracy of the both the values missing which make my comparison(==) fails in case of double values. My…
user492888
  • 207
  • 3
  • 17
0
votes
2 answers

How to convert C# function to mathematical equation for thesis writing

I am writing my thesis right now and i wonder is that possible to give the function as an input and get the mathematical equation of that function for putting into thesis. For example this is a function public static bool…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342