Questions tagged [notation]

Notation refers to a specific way of writing various concepts, functions, etc. Usually it is introduced to abbreviate complicated expressions and make common idioms more readable.

633 questions
-1
votes
2 answers

In Java, what does the notation `...` mean in the context of a prototype declaration: `type function_name (type... parameter_name)`

I'm learning Java, and in function prototypes I often see parameters of the variety type... parameter_name. What does the ... notation mean?
Matt Munson
  • 2,903
  • 5
  • 33
  • 52
-1
votes
2 answers

Importing data with engineering notation into Matlab

I've got a .xls file and I want to import it into Matlab by xlsread function..I get NaNs for numbers with engineering notation..like I get NaNs for 15.252 B or 1.25 M Any suggestions? Update: I can use [num,txt,raw] = xlsread('...') and the raw one…
MDBX
  • 13
  • 4
-1
votes
2 answers

Display multiple hash keys notation

Let's say i have a ruby hash in the style of savon soap xml response to hash hash1= { node1­: {node­2:{node3:1­,node4:2}}­} now to display this hash hash1[:nod­e1][:node2­][:node3] works and outputs => 1 hash1[:nod­e1][:node2­][:node4] works…
-1
votes
2 answers

C++/CLI - What does the postfix operator '*' do?

I am new to C++/CLI and I stumbled upon a strange notation. Are these syntaxes equivalent? (ci*)-> and (*ci)->
-1
votes
1 answer

how can i convert infix to postfix expression of multi digit operands?

I am able to convert infix to postfix and calculates with one digit but i can't convert to postfix and calculate with N digits. PLz anyone help me! Thanks!! here is my code with single…
Ayush Garg
  • 13
  • 2
  • 4
-1
votes
1 answer

What is the [do(args)] notation called in C#?

When we import legacy dlls in C# we use something like the following notation: [DllImport("user32.dll")] // Why am I enclosed in "["s static extern int MessageBoxA(int hWnd, string strMsg, string strCaption, int iType); OR…
LazyLeopard
  • 194
  • 1
  • 11
-1
votes
3 answers

What argument names do you prefer in constructors? Suffixes, prefixes or smth else?

For example, I sometimes use "Set" suffix, like that: ClassA { public: ClassA(int xSet, int ySet): x(xSet), y(ySet) { ; } private: int x, y; }; So, is there a better way…
user3496846
  • 1,627
  • 3
  • 16
  • 28
-1
votes
3 answers

Print a string in list notation in Haskell

I have a function, where a string is printed out repeatedly by a specific number of times. However, if a negative number is given, the function should print out an empty list. main = print (repeat (-1) "Hello World") repeat 1 x = x repeat n x |…
ceppuiqmx
  • 13
  • 2
-1
votes
2 answers

Referencing sheets with spaces

I am having an issue with referencing the sheet name through =Branded!$A$1 Notation in VBA. For a while I have passed in simple sheet names like: Dim SheetName As String SheetName = "Pizza" ("=" & SheetName & "!$A$1") This has worked fine, but…
-1
votes
2 answers

Infix expression evaluation

I would like to evaluate (not convert) infix expression in C++. If you posses algorithm or even implementation of such algorithm (in any language... I will try to rewrite it to C++) share please. Evaluation means give the value of expression.…
Yoda
  • 17,363
  • 67
  • 204
  • 344
-2
votes
3 answers

Good Naming Convention for Anonymous Types

An anonymous type can be thought of as a "Set Once" Object type, whereas an plain old Object or Variant can be set many times. An object or variant tends to be short lived, while an anonymous type is expected to live longer, making it important to…
CLaRGe
  • 1,821
  • 1
  • 25
  • 22
-2
votes
1 answer

What does this for loop syntax mean?

I recently came to this thread, and had a quick question on the syntax used in the first answer. @ggorlen used this syntax/notation in the for loop that I've never seen before and couldn't find any answers online: for (;;) { try { await…
jolthedev
  • 11
  • 1
-2
votes
1 answer

Regex function that only affects strings with specific notation

I am trying to manipulate text output from a web scrape I have done. I want a regex function that ONLY for strings that include the notation "-" to remove words from after this in each string. The function '\s*(.*)(?=-)' works, but removes all text…
-2
votes
1 answer

Is it mathematically correct to use P(z|x) & P(x|z) to refer Encoder & Decoder respectively in Deep Learning?

There are tons of research papers about neural network, for example, VAEs simply call its Encoder & Decoder by P(z|x) & P(x|z) respectively. Although I get what people try to say, I still find it's not strictly correct to simply use e.g. P(x|z) to…
Jason
  • 3,166
  • 3
  • 20
  • 37
-2
votes
3 answers

For loop to math notation

Can someone tell me how can I write the following in math notation for x in (range(1,n)): var1=1 var2=0 var1*=x var2+=x Var3+=var1/var2 I tried SUM((n!)/SUM(n) but I cant seem to get the same answer. Thank you in…