Tags » Function

C Tutorial (30) : Function and local-global variables

Typical computer programs are not the 20- to 30-line variety that you see in textbooks. In the “real world,” computer programs are much longer. That’s why, until this point, you’ve seen fairly short programs that contain all their code in main(). 1,264 more words

Technical

Golang: Structs Methods and Interface

Go Struct, Methods and Embedding example

package main

import "fmt"

type User struct {
	name, address string
}

type Employee struct {
	level  int
	salary int
	user   User // Embedding
}

/**
 * Greating for User
 */
func (u User) Greeting() string {
	return fmt.Sprintf("Dear %s %s", u.name, u.address)
}

/**
 * Greating for User
 */
func (e Employee) Greeting() string {
	return fmt.Sprintf("Your level %d, Your salary %d", e.level, e.salary)
}

func main() {
	user := User{"Yazid", "Jalan munukan no.19"}

	fmt.Println(user.Greeting())

	employee := Employee{1, 2000, user}

	fmt.Println(employee.user.Greeting())
	fmt.Println(employee.Greeting())
}

… 187 more words

Placing Image Objects on the Board

In this post, under the section Tiled’s Objects and Board’s Logical Positions, point out that the positions for Tiled’s Objects  are set in orthogonal space, as though we were viewing things from top-down. 374 more words

Workflow

What is F(x)?

I recently had a very interesting discussion with my student on topic “Function”. She was not able to appreciate the significance and usage of “Function”. 369 more words

Math Education

Final Major Project Research

MODULE FOCUS

This is the last year of my undergraduate degree in 3D Design and as with most Art & Design courses at university in the UK, the weighting is more heavily geared towards the Graduate Degree Show. 658 more words

My Projects

Determine the Gradient of a Function of Three Variables - Exponential

This video explains how to determine the gradient vector field of a function of three variables.

VI. Calculus Videos

Determine the Gradient of a Function of Three Variables - Polynomial

This video explains how to determine the gradient vector field of a function of three variables.

VI. Calculus Videos