<commit_before>#include "robot.h"
#include "stdio.h"
#define NUM_ARMS 3
int main(int argc, char **argv)
{
	double arms[NUM_ARMS] = {3,7,4};
	double angles[NUM_ARMS] = {1,0.3,1};
	double precision = 0.000001;
	double error = 0;
	int i;
	do
	{
		printf("%f\n\narm\t\tangle\n",error);
		for(i = 0; i < NUM_ARMS; i++)
		{
			printf("%f\t%f\n",arms[i],angles[i]);
		}
		
	}while((error = calculate_position_times(NUM_ARMS,arms,angles,1,8,8)) > precision);
	printf("%f\n\n",error);
	mat3_t end = calc_end(NUM_ARMS,arms,angles);
	mat3_print(&end);
	return 0;
}<commit_msg>Update demo.c<commit_after>#include "robot.h"
#include "stdio.h"
#define NUM_ARMS 3
int main(int argc, char **argv)
{
	double arms[NUM_ARMS] = {3,7,4};
	double angles[NUM_ARMS] = {1,0.3,1};
	double precision = 0.000001;
	double error = 0;
	int i;
	do
	{
		printf("error:\t%f\n\narm\t\tangle\n",error);
		for(i = 0; i < NUM_ARMS; i++)
		{
			printf("%f\t%f\n",arms[i],angles[i]);
		}
		
	}while((error = calculate_position_times(NUM_ARMS,arms,angles,1,8,8)) > precision);	//loop 1 time to position (8,8), but do that until precision is reached
	printf("%f\n\n",error);
	mat3_t end = calc_end(NUM_ARMS,arms,angles);
	mat3_print(&end);
	return 0;
}
{'fraction_non_alphanumeric': 0.1975206611570248, 'fraction_numerical': 0.04049586776859504, 'mean_word_length': 4.739336492890995, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3245241', 'n_tokens_mistral': 578, 'n_tokens_neox': 533, 'n_words': 102}