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
0
votes
1 answer

Dynamic struct member names like in javascript in golang

I am writing a multi-lang website. I read the language info from users cookies, and I have several translation modules such as en.go gr.go etc. The modules are of type map[string]string.The problem here is in javascript I can do something like…
nikoss
  • 3,254
  • 2
  • 26
  • 40
0
votes
1 answer

vba wrong pivot notation

Something wrong with my pivot notation 2 line shows an error but if I put "4" instead of "lastRow" it works. What am I doing wrong?. How to change fixed range into dynamic? Dim lastRow As Integer Set pc =…
salti
  • 27
  • 5
0
votes
2 answers

Design pattern: Which UML relationship best describes this class?

Given the following class: public class CardGame extends Game { private CardDeck[] cardDecks; public CardGame(int numCardDecks) { super(); cardDecks = new CardDeck[numCardDecks]; for (int i=0; i < numCardDecks; i ++)…
BJYC
  • 354
  • 2
  • 10
0
votes
1 answer

Are there any dangers associated with using kwarg=kwarg in Python functions?

I've sometimes seen code with kwarg=kwarg in one of the functions as shown below: def func1(foo, kwarg): return(foo+kwarg) def func2(bar, kwarg): return(func1(bar*2, kwarg=kwarg)) print(func2(4,5)) I've normally tried to avoid this…
Esteemator
  • 107
  • 7
0
votes
1 answer

Sciter shorthand notation

I have encountered this notation shorthand in the array.reduce and object.sort functions in Sciter (http://www.terrainformatica.com/) : array.reduce(:a, b: a + b) object.sort(:a, b: a.start_time < b.start_time ? -1 : 1 ) I can pretty much guess…
Alex.Gunning
  • 191
  • 11
0
votes
2 answers

Making Types in Swift Floating Point Value and "X": Polloquin Exercise Notation

I am trying to code times for weightlifting. There are four phases to a repetition: Eccentric (Time spent lowering the weight) Bottom (Time spent at the bottom of the lift) Concentric (Time spent lifting the weight) Top (Time spent a the top of the…
0
votes
4 answers

Big O notation of method with While loop containing an if statement

I am a little confused as to what the big O notation for a method like such would be public void printOut (SinglyLinkedList myLinked){ Iterator itr = myLinked.iterator(); while (itr.hasNext()){ double d = itr.next(); // unboxing …
ThomasJazz
  • 99
  • 9
0
votes
1 answer

MATLAB how to store Value in Variable without scientific/exponential notation?

I've got a Matrix, let's say x, that contains seven values in exponential notation. Next i want to write this Variable to a textfuile, but without the exponential but with a decimal notation. I tried str2num(num2str(exportdata, '%15.4f')); and…
Marcel Der
  • 171
  • 1
  • 4
0
votes
4 answers

Converting academic mathematical notation to C code

Those of you that are even moderately knowledgable of math will likely laugh, but I don't remember what much of the notation rules in math and I need assistance converting this into C code. Your help is greatly appreciated: …
james_womack
  • 10,028
  • 6
  • 55
  • 74
0
votes
1 answer

Is there an easy way to implement binary arithmetic without 2's compliment?

As a beginner computer science student, please excuse my limited knowledge of the field. Initially, we learned how to perform the following basic binary arithmetic manually. How to do addition with binary numbers How to do subtraction with binary…
AlanSTACK
  • 5,525
  • 3
  • 40
  • 99
0
votes
2 answers

Use of notation => in a subclass

What does the following mean when written in a subclass: public override bool IsReadOnly => false; Does this differ from: public override bool IsReadonly { get { return false; } }
steve_cdi
  • 166
  • 6
0
votes
1 answer

What is the point of Big-Omega asymptotic notation?

Pretty much as the title says. And for that matter, little omega seems pretty pointless as well. Surely they're just ways to be overly optimistic? I mean, for any positive equation I could say Big Omega is true, but it doesn't seem to actually serve…
Overt_Agent
  • 510
  • 6
  • 15
0
votes
1 answer

Express Running time in Big Theta Notation ?

For this pseudocode, how would I express the running time in the Θ notation in terms of n? s = 0 for i = 0 to n: for j = 0 to i: s = (s + i)*j print s
user2990394
  • 55
  • 1
  • 7
0
votes
1 answer

Need help understanding a javascript syntax and notation

I recently started learning AngularJS using the Google documentation, and I ran into a notation I am unfamiliar with. The general syntax that I am confused with is as follows: …
0
votes
2 answers

Do you have a modeling notation that you use for MVC?

Hopefully (but not necessarily) one that is independent of language or framework?
dkretz
  • 37,399
  • 13
  • 80
  • 138