9. Conversion and promotion Flashcards

1
Q

Julia as a Second Language

So what does the @edit macro do?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Julia as a Second Language

Why is it important for numbers to have units?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Julia as a Second Language

What does convert() do?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Julia as a Second Language

What is the Type{} object (for example, Type{Int64}?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Julia as a Second Language

What is going on here?

A

Radians and Angles are being defined at their lowest level. All conversions will start at this point.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Julia as a Second Language

What is happening here?

A

Struct’s have created Radians and Degrees. From the value of these structs all other units can be created, which is what these constructors are doing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Julia as a Second Language

What is happening here?

A

We create structs for Radians and Degrees and constructors, now we need to tell Julia how to add Radians together and Degrees together.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Julia as a Second Language

What is going on here?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Julia as a Second Language

What is happening here?

A

This says the print function will used the given format when printing a DMS object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Julia as a Second Language

What is going on here?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Julia as a Second Language

What is happening here?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Julia as a Second Language

What is happening here?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Julia as a Second Language

What is happening here?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly