Skip to content

Instantly share code, notes, and snippets.

@volkansalma
volkansalma / tavlama.cpp
Created March 27, 2011 08:13
tavlama benzetimi örnek kod
//Simulated Annealing C++ Sample Code
//generates "VOLKANSALMA@BLOGSPOT@COM" string.
//inspired from http://www.generation5.org/content/2003/gahelloworld.asp
//by volkan salma
//http://volkansalma.blogspot.com
#include <iostream> // for cout etc.
#include <vector> // for vector class
#include <string> // for string class
#include <algorithm> // for sort algorithm
@volkansalma
volkansalma / atan2_approximation.c
Created June 22, 2012 11:35
optimized atan2 approximation
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
float atan2_approximation1(float y, float x);
float atan2_approximation2(float y, float x);
int main()
{
float x = 1;