Questions tagged [definitions]

84 questions
37
votes
7 answers

Definitions of sqrt, sin, cos, pow etc. in cmath

Are there any definitions of functions like sqrt(), sin(), cos(), tan(), log(), exp() (these from math.h/cmath) available ? I just wanted to know how do they work.
Pythagoras of Samos
  • 3,051
  • 5
  • 29
  • 51
26
votes
8 answers

Duck typing, must it be dynamic?

Wikipedia used to say* about duck-typing: In computer programming with object-oriented programming languages, duck typing is a style of dynamic typing in which an object's current set of methods and properties determines the valid…
13
votes
1 answer

Relative and absolute tolerance definitions in Matlab solver

I am trying to understand the following Matlab definitions for RelTol and AbsTol parameters: RelTol — This tolerance is a measure of the error relative to the size of each solution component. Roughly, it controls the number of correct digits in all…
julianfperez
  • 1,726
  • 5
  • 38
  • 69
12
votes
2 answers

What is a jQuery Object?

JavaScript kind of redefines what an Array means because an array is an object with a .length property and methods like .slice() and .join(). jQuery defines a jQuery object as "Array like", because it has a length property but it doesn't have…
Phillip Senn
  • 46,771
  • 90
  • 257
  • 373
10
votes
7 answers

Suggested speed improvement when defining string with value immediately, instead of delaying

I'm currently reading in "The C++ Programming Language: Special Edition" by Bjarne Stroustrup and on page 133 it states the following: For user-defined types, postponing the definition of a variable until a suitable initializer is available can…
Tony The Lion
  • 61,704
  • 67
  • 242
  • 415
10
votes
1 answer

How to provide an example of an object definition in swagger that contains an array as one of its attributes

Referring to the example below, I would like to provide an example of NamedElementArray in its definition. This will require showing an example of an array of NamedElement for the elements attribute. How do I do that? I can't find details of how to…
Geoff
  • 1,237
  • 1
  • 10
  • 15
10
votes
2 answers

Swagger 2.0: How to declare a definition property of type model?

I want to declare a definition property of type model in Swagger 2.0 Is this definition correct? (specially the type: StatusObject part) definitions: MyObject: type: "object" properties: id: type: "number" country: …
JAM
  • 323
  • 2
  • 4
  • 14
10
votes
8 answers

What is the actual definition of an array?

Possible Duplicate: Arrays, What’s the point? I tried to ask this question before in What is the difference between an array and a list? but my question was closed before reaching a conclusive answer (more about that). I'm trying to understand…
Ollie Saunders
  • 7,787
  • 3
  • 29
  • 37
8
votes
2 answers

TypeScript definition files

I'm playing with TypesScript, but the compiler complains when I use browser types such as HTMLCanvasElement. I guess I need definition files for these types. I bet there is a repository of definition files for the DOM and for most popular…
Robert Larsen
  • 1,018
  • 2
  • 11
  • 18
6
votes
1 answer

CMake + Qt = carved in stone Qt definitions (aka. -DQT_...)?

First, let's look at the excerpt from my CMakeLists.txt: find_package(Qt4 4.8.0 COMPONENTS QtCore QtGui QtOpenGL REQUIRED) include(${QT_USE_FILE}) add_definitions(${QT_DEFINITIONS}) Therefore, by default we get the following definitions in Debug…
Alexander Shukaev
  • 16,674
  • 8
  • 70
  • 85
6
votes
2 answers

Is it possible to Export TFS 2010 Build Definitions?

I'm cleaning up old build definitions and I want to back them up in case there is something I'm missing, is there a way to export the build definitions using Visual Studio 2010?
rwoodford
  • 135
  • 2
  • 7
6
votes
1 answer

Typescript definitions for sendgrid

I am trying to write a typescript app that uses sendgrid, but unlike with other definitions I got from typings the one from typings install sendgrid --ambient is causing me some headaches: I am able to instantiate the client like so: import * as…
6
votes
1 answer

SystemParametersInfo parameter definitions for C#

I want to make a call to SystemParametersInfo from C#. The first argument to this function is one of a large collection of possible values like SPI_GETACCESSTIMEOUT, which are listed in the documentation, but don't seem to be defined anywhere. I can…
Andrew
  • 61
  • 1
  • 3
5
votes
3 answers

SQL lookup and reference table definitions

I need some clarification. What is a lookup table and what is a reference table in SQL? I was under the impression that a lookup table is a table that has static data that hardly ever changes (e.g. a table that has all 50 states and their capitals)…
Halcyon
  • 14,631
  • 17
  • 68
  • 99
5
votes
3 answers

Meaning of "Tertiary level" In New Zealand programmer job listings

What does the phrase "Be qualified at the Tertiary level" mean in the context of a New Zealand listing for programming jobs?
Thomas L Holaday
  • 13,614
  • 6
  • 40
  • 51
1
2 3 4 5 6