blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 2
247
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
57
| license_type
stringclasses 2
values | repo_name
stringlengths 4
111
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringlengths 4
58
| visit_date
timestamp[ns]date 2015-07-25 18:16:41
2023-09-06 10:45:08
| revision_date
timestamp[ns]date 1970-01-14 14:03:36
2023-09-06 06:22:19
| committer_date
timestamp[ns]date 1970-01-14 14:03:36
2023-09-06 06:22:19
| github_id
int64 3.89k
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 25
values | gha_event_created_at
timestamp[ns]date 2012-06-07 00:51:45
2023-09-14 21:58:52
⌀ | gha_created_at
timestamp[ns]date 2008-03-27 23:40:48
2023-08-24 19:49:39
⌀ | gha_language
stringclasses 159
values | src_encoding
stringclasses 34
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 7
10.5M
| extension
stringclasses 111
values | filename
stringlengths 1
195
| text
stringlengths 7
10.5M
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9fb713dc9e98d87967d7d0263f0c6e4076c8b98
|
0303903be55485c95358c2dd83e13fa1fcaa0784
|
/문자열.cpp
|
c23a80e389fcc0f6c915eb55e7adc92ca3c75c8b
|
[] |
no_license
|
nasemY/coding
|
06dd5a1a9371fcaaf24d138ac9b8c75c3fd86792
|
615dc9e4f5f211a644273909358c0abc45306e8f
|
refs/heads/master
| 2020-09-15T17:33:42.304647
| 2020-05-23T02:57:23
| 2020-05-23T02:57:23
| 223,516,572
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 258
|
cpp
|
문자열.cpp
|
#include <stdio.h>
#include <string.h>
int main() {
char str1[10];
char str2[10];
int a=0;
scanf("%s %s",str1, str2 );
for (int i = 0; i < 10; i++) {
if (str1[i] != str2[i]) {
a = 1;
break;
}
}printf("%d", a);
return 0;
}
|
f01cb827c722c82b4f7b502fb3c87bbacaf4301a
|
6b40e9cba1dd06cd31a289adff90e9ea622387ac
|
/Develop/mdk/MiNet/include/MCommandHandler.h
|
7c66b17c3bdbd11bbd42c76b749dedd54a071796
|
[] |
no_license
|
AmesianX/SHZPublicDev
|
c70a84f9170438256bc9b2a4d397d22c9c0e1fb9
|
0f53e3b94a34cef1bc32a06c80730b0d8afaef7d
|
refs/heads/master
| 2022-02-09T07:34:44.339038
| 2014-06-09T09:20:04
| 2014-06-09T09:20:04
| null | 0
| 0
| null | null | null | null |
UHC
|
C++
| false
| false
| 1,007
|
h
|
MCommandHandler.h
|
#ifndef _MCOMMAND_HANDLER_H
#define _MCOMMAND_HANDLER_H
#include "MiNetLib.h"
#include "MiNetCommon.h"
#include <vector>
using namespace std;
namespace minet {
class MCommand;
class MCommandCommunicator;
class MCommandHandler;
typedef MCommandResult (MCommandHanderFunc) (MCommand* pCommand, MCommandHandler* pHandler);
/// 커맨드 핸들러 기반 클래스
class MINET_API MCommandHandler
{
protected:
vector<int> m_vecCmdID;
MCommandCommunicator* m_pCC;
protected:
void SetCmdHandler(int nID, MCommandHanderFunc* fnFunc);
public:
MCommandHandler(MCommandCommunicator* pCC) : m_pCC(pCC) {}
virtual ~MCommandHandler();
MCommandCommunicator* GetCommandCommunicator() const { return m_pCC; }
};
#define DECL_CMD_HANDLER(_func) static MCommandResult _func(MCommand* pCommand, MCommandHandler* pHandler);
#define IMPL_CMD_HANDLER(_class, _func) MCommandResult _class::_func(MCommand* pCommand, MCommandHandler* pHandler)
} // namespace minet
#endif
|
3b493de2ba1d39fa0f86ce4f6b6b86a9020344ae
|
e61263d248ca198d7efecf199cf14f029524c6c1
|
/ECS/src/GraphicSystem.cpp
|
654337e62208cb7be243604b097d027952c9a1dc
|
[] |
no_license
|
kharyus/Cpp-Exercises
|
694227cac76d95c3a7d54aa06ca9f4487da0ccbb
|
4c776bd9cc9718dcdbe7c5d16327629d09c2ba4c
|
refs/heads/master
| 2021-01-18T03:08:58.260434
| 2017-03-08T03:24:09
| 2017-03-08T03:24:09
| 84,269,190
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 297
|
cpp
|
GraphicSystem.cpp
|
#include "GraphicSystem.h"
#include <iostream>
using namespace std;
GraphicSystem::GraphicSystem(std::vector<Entity*>* entities)
: System(entities)
{
//ctor
}
GraphicSystem::~GraphicSystem()
{
//dtor
}
void GraphicSystem::update()
{
cout << "Graphic System updated" << endl;
}
|
39ce21da5a321e0490a2a021585162108b915132
|
a0faeee77ad38b760e623429d13249706cba4673
|
/Trees/inorderTraversal.cpp
|
b2e30a9e54a8912f5beb569d4b0170c391172b38
|
[] |
no_license
|
smunj/InterviewBit
|
2ff8b8d8f5e0a8d7de02bd94c9c354c08d71eba5
|
dc00051fee00daf4057cd52ffa25d5eb85a21374
|
refs/heads/master
| 2020-03-17T14:37:12.580360
| 2018-06-13T05:07:43
| 2018-06-13T05:07:43
| 133,679,765
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 798
|
cpp
|
inorderTraversal.cpp
|
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
struct node{
TreeNode* root;
};
vector<int> Solution::inorderTraversal(TreeNode* A) {
stack<node> s;
vector<int> ans;
if(A==NULL){
return ans;
}
node curr;
curr.root = A;
while(curr.root != NULL){
s.push(curr);
curr.root = curr.root -> left;
}
while(!s.empty()){
node temp = s.top();
s.pop();
ans.push_back(temp.root->val);
curr.root = temp.root->right;
while(curr.root != NULL){
s.push(curr);
curr.root = curr.root -> left;
}
}
return ans;
}
|
dcf84287b8aa3d358cabd78049932f6461b2b695
|
d109d703edcb82f376e3c7c6d146aa4ba52644a0
|
/Shared/IceBoxPruning_BruteForce.cpp
|
7ffb83638c91231b31f7f93c891df5749c4d5be3
|
[] |
no_license
|
rygorous/BoxPruning
|
56bc455667eb1846426111ed4f742d2f23a81d27
|
d470931ba53cbf8cc4789679c613049231e38b4a
|
refs/heads/master
| 2021-01-19T10:09:57.697953
| 2017-02-26T07:48:56
| 2017-02-26T07:48:56
| 82,166,558
| 10
| 1
| null | 2017-02-16T10:02:46
| 2017-02-16T10:02:46
| null |
UTF-8
|
C++
| false
| false
| 3,611
|
cpp
|
IceBoxPruning_BruteForce.cpp
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Contains code for box pruning.
* \file IceBoxPruning.cpp
* \author Pierre Terdiman
* \date January, 29, 2000
*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Precompiled Header
#include "Stdafx.h"
using namespace Meshmerizer;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Brute-force versions are kept:
// - to check the optimized versions return the correct list of intersections
// - to check the speed of the optimized code against the brute-force one
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Brute-force bipartite box pruning. Returns a list of overlapping pairs of boxes, each box of the pair belongs to a different set.
* \param nb0 [in] number of boxes in the first set
* \param list0 [in] list of boxes for the first set
* \param nb1 [in] number of boxes in the second set
* \param list1 [in] list of boxes for the second set
* \param pairs [out] list of overlapping pairs
* \return true if success.
*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool Meshmerizer::BruteForceBipartiteBoxTest(udword nb0, const AABB** list0, udword nb1, const AABB** list1, Container& pairs)
{
// Checkings
if(!nb0 || !list0 || !nb1 || !list1)
return false;
// Brute-force nb0*nb1 overlap tests
for(udword i=0;i<nb0;i++)
{
for(udword j=0;j<nb1;j++)
{
if(list0[i]->Intersect(*list1[j]))
pairs.Add(i).Add(j);
}
}
return true;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Complete box pruning. Returns a list of overlapping pairs of boxes, each box of the pair belongs to the same set.
* \param nb [in] number of boxes
* \param list [in] list of boxes
* \param pairs [out] list of overlapping pairs
* \return true if success.
*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool Meshmerizer::BruteForceCompleteBoxTest(udword nb, const AABB** list, Container& pairs)
{
// Checkings
if(!nb || !list)
return false;
// Brute-force n(n-1)/2 overlap tests
for(udword i=0;i<nb;i++)
{
for(udword j=i+1;j<nb;j++)
{
if(list[i]->Intersect(*list[j]))
pairs.Add(i).Add(j);
}
}
return true;
}
|
d8233189aa68cffb22a0cfb62d83e6fbe13105b7
|
8ff6c046964f20e9452bf581a75d197ea0c658c2
|
/Sorting/BoubleSort.h
|
78bd2d4dfc3e498269de393a006c90d893aa5b60
|
[] |
no_license
|
TomSms/study
|
db627c23a95550e713af4f7e02d4f55965d6d3e5
|
4729970b0665557b55623d278b4ca297bd2af401
|
refs/heads/master
| 2021-09-10T15:35:46.446776
| 2018-03-28T16:51:02
| 2018-03-28T16:51:02
| 105,613,321
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 213
|
h
|
BoubleSort.h
|
#pragma once
#include "CCSort.h"
class BoubleSort :
public CCSort
{
public:
BoubleSort(bool flag);
virtual ~BoubleSort();
virtual void sort(int *arr, int len);
virtual void boubleSort(int *arr, int len);
};
|
15b65a01c8321acf31591f25c77545b2046aca6c
|
725ca110592c55de3d9f26ae9afbe0d14a235ba0
|
/Queues/Queues.cpp
|
d89a3ccc9effd16ec4938a99e01ba3bc14bc15ab
|
[] |
no_license
|
lumeyus/Queues
|
1fadbb5ccd9d1fffc63a773fe3379682794e11c2
|
7f6ea07ce3ffcce5aca1323e8e4d9a02f4bb7b1c
|
refs/heads/master
| 2021-02-18T18:14:29.293977
| 2020-03-06T02:17:00
| 2020-03-06T02:17:00
| 245,222,085
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 712
|
cpp
|
Queues.cpp
|
/*
Queues.cpp - Luis Ibanez - 3/6/2020
-----------------------------------
This file contains the 'main' function where program execution begins and ends.
Performs queue simulation based on details given in homework 3 description.
Runs through simulations for every queue type, asking user for output file name before each.
*/
#include "Implementations/Solution.h"
int main()
{
// problem 1
int p1_queue = geogeo1;
RunProblemOne(p1_queue);
p1_queue = geoD1;
RunProblemOne(p1_queue);
p1_queue = geoX1;
RunProblemOne(p1_queue);
// problem 2
int p2_queue = geogeokk;
RunProblemTwo(p2_queue);
p2_queue = geoDkk;
RunProblemTwo(p2_queue);
p2_queue = geoXkk;
RunProblemTwo(p2_queue);
return 0;
}
|
fa3743e68e1430ba8a1f11ff7d3b39275751a3d3
|
00d541f55f05872f76521961bacdb776b78512f8
|
/src/main.h
|
d7aa3d597f5febb9dfcd91dbf36c2767dfd10bd7
|
[] |
no_license
|
bcrusco/CUDA-Path-Tracer
|
c592dcdb42a45cf019a8a88dd2d749a8ff42606b
|
23336835c837141401a8215225daccbb8e7fa23f
|
refs/heads/master
| 2021-01-24T04:36:02.654403
| 2015-12-10T22:08:57
| 2015-12-10T22:08:57
| 42,607,287
| 23
| 2
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 712
|
h
|
main.h
|
#pragma once
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <cuda_runtime.h>
#include <cuda_gl_interop.h>
#include <fstream>
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp>
#include "glslUtility.hpp"
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <string>
#include "sceneStructs.h"
#include "image.h"
#include "pathtrace.h"
#include "utilities.h"
#include "scene.h"
using namespace std;
//-------------------------------
//----------PATH TRACER----------
//-------------------------------
extern Scene* scene;
extern int iteration;
extern int width;
extern int height;
void runCuda();
void keyCallback(GLFWwindow *window, int key, int scancode, int action, int mods);
|
d74001dc1d45c4029a0dc7308f1f740516263c86
|
6a82b383545f4500df5c26afd17cf03e0e89d292
|
/opendnp3/DNP3/MasterStates.cpp
|
9d60c5205ced5022b94cebbe72c3d1ad04161d5e
|
[] |
no_license
|
nitesh-agsft/internal-projects
|
98f8de64c981601219ce07d80905a5d505beb310
|
c2bd16857a9701795b4ad1ba932a0fa63577c98c
|
refs/heads/master
| 2021-01-16T17:39:00.655783
| 2017-10-09T13:02:25
| 2017-10-09T13:02:25
| 100,011,951
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,918
|
cpp
|
MasterStates.cpp
|
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
#include "MasterStates.h"
#include <opendnp3/APL/Configure.h>
#include <opendnp3/APL/Exception.h>
#include <opendnp3/APL/Logger.h>
#include <opendnp3/APL/AsyncTaskInterfaces.h>
#include <opendnp3/APL/AsyncTaskGroup.h>
#include "Master.h"
#include <boost/bind.hpp>
namespace apl
{
namespace dnp
{
/* AMS_Base */
void AMS_Base::StartTask(Master*, ITask*, MasterTaskBase*)
{
throw InvalidStateException(LOCATION, this->Name());
}
void AMS_Base::OnLowerLayerUp(Master*)
{
throw InvalidStateException(LOCATION, this->Name());
}
void AMS_Base::OnLowerLayerDown(Master*)
{
throw InvalidStateException(LOCATION, this->Name());
}
void AMS_Base::OnSendSuccess(Master*)
{
throw InvalidStateException(LOCATION, this->Name());
}
void AMS_Base::OnFailure(Master*)
{
throw InvalidStateException(LOCATION, this->Name());
}
void AMS_Base::OnPartialResponse(Master*, const APDU&)
{
throw InvalidStateException(LOCATION, this->Name());
}
void AMS_Base::OnFinalResponse(Master*, const APDU&)
{
throw InvalidStateException(LOCATION, this->Name());
}
void AMS_Base::OnUnsolResponse(Master*, const APDU&)
{
throw InvalidStateException(LOCATION, this->Name());
}
void AMS_Base::ChangeState(Master* c, AMS_Base* apState)
{
c->mpState = apState;
}
void AMS_Base::ChangeTask(Master* c, MasterTaskBase* apTask)
{
c->mpTask = apTask;
}
/* AMS_Closed */
AMS_Closed AMS_Closed::mInstance;
void AMS_Closed::OnLowerLayerUp(Master* c)
{
ChangeState(c, AMS_Idle::Inst());
}
/* AMS_OpenBase */
void AMS_OpenBase::OnUnsolResponse(Master* c, const APDU& arAPDU)
{
c->ProcessDataResponse(arAPDU);
}
void AMS_OpenBase::OnLowerLayerDown(Master* c)
{
ChangeState(c, AMS_Closed::Inst());
}
/* AMS_Idle */
AMS_Idle AMS_Idle::mInstance;
void AMS_Idle::StartTask(Master* c, ITask* apScheTask, MasterTaskBase* apMasterTask)
{
this->ChangeState(c, AMS_Waiting::Inst());
this->ChangeTask(c, apMasterTask);
c->mpScheduledTask = apScheTask;
c->StartTask(apMasterTask, true);
}
/* AMS_WaitForSimpleRsp */
AMS_Waiting AMS_Waiting::mInstance;
void AMS_Waiting::OnLowerLayerDown(Master* c)
{
ChangeState(c, AMS_Closed::Inst());
c->mpTask->OnFailure();
}
void AMS_Waiting::OnFailure(Master* c)
{
this->ChangeState(c, AMS_Idle::Inst());
c->mpTask->OnFailure();
c->mpScheduledTask->OnComplete(false);
}
void AMS_Waiting::OnPartialResponse(Master* c, const APDU& arAPDU)
{
switch(c->mpTask->OnPartialResponse(arAPDU)) {
case(TR_FAIL):
this->ChangeState(c, AMS_Idle::Inst());
c->mpScheduledTask->OnComplete(false);
break;
case(TR_CONTINUE):
break;
default:
throw InvalidStateException(LOCATION, "Tasks must return FAIL or CONTINUE in on partial responses");
}
}
void AMS_Waiting::OnFinalResponse(Master* c, const APDU& arAPDU)
{
switch(c->mpTask->OnFinalResponse(arAPDU)) {
case(TR_FAIL):
this->ChangeState(c, AMS_Idle::Inst());
c->mpScheduledTask->OnComplete(false);
break;
case(TR_CONTINUE): //multi request task!
c->StartTask(c->mpTask, false);
break;
case(TR_SUCCESS):
this->ChangeState(c, AMS_Idle::Inst());
c->mpScheduledTask->OnComplete(true);
}
}
}
} //ens ns
|
165a97fc7fa55b40e7b7e3ceff8e8bc1691a2c43
|
74c5c1ae823caf17fb49341476fe2b7e935fa220
|
/reverbtuner/lv2_world.h
|
9efe595fc56c0874379d1659559471117d34bbab
|
[] |
no_license
|
sbergen/ReverbTuner
|
d6d892d2ce2714cfa421f76e5c8d793e798c4075
|
8eb9866ea1591d6ec4c96a93f26a05816cfbb05e
|
refs/heads/master
| 2020-06-01T19:52:32.626140
| 2014-11-11T20:21:26
| 2014-11-11T20:21:26
| 26,501,944
| 2
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 742
|
h
|
lv2_world.h
|
#ifndef REVERB_TUNER_LV2_LV2_WORLD_H
#define REVERB_TUNER_LV2_LV2_WORLD_H
#include <string>
#include <slv2/slv2.h>
namespace ReverbTuner {
struct Lv2World
{
Lv2World ();
~Lv2World ();
/// Return Value as float, free value struct
static float value_as_float (SLV2Value val);
/// Return value as string, free value struct
static std::string value_as_string (SLV2Value val);
SLV2World world;
SLV2Plugins plugins;
// Port classes
SLV2Value input_class;
SLV2Value output_class;
SLV2Value control_class;
SLV2Value audio_class;
// Port properties
SLV2Value optional;
SLV2Value latency;
SLV2Value integer;
SLV2Value toggled;
SLV2Value srate;
};
} // namespace ReverbTuner
#endif // REVERB_TUNER_LV2_LV2_WORLD_H
|
ce7a6f8e6d34e60cd085fcc2d78b5c4838a0f77c
|
28cd1ad933a9453f0d2a69b6501c2ef467ca31b3
|
/UnitTests/Test_Dumps_tape.cpp
|
bec6a51eeb3cd81b2a90c8872d6ac01c2fe5cced
|
[
"MIT"
] |
permissive
|
Tom1975/CPCCore
|
f7f013b51c181936a39977a0d46435c11279dce6
|
e5cdf7de5984c87b28832c69cb337a492bb0ff2a
|
refs/heads/master
| 2023-08-17T14:49:10.648628
| 2023-06-09T11:29:02
| 2023-06-09T11:29:02
| 153,919,452
| 6
| 1
|
MIT
| 2023-08-10T07:50:56
| 2018-10-20T15:24:43
|
C
|
UTF-8
|
C++
| false
| false
| 39,676
|
cpp
|
Test_Dumps_tape.cpp
|
#ifdef _WIN32
#define _CRT_SECURE_NO_WARNINGS
#define _CRT_NONSTDC_NO_DEPRECATE
#endif
#include <iostream>
#include "gtest/gtest.h"
#include "TestUtils.h"
#define BUILD 1
#define EXECUTE 0
////////////////////////////////////
// PROTECTIONS
////////////////////////////////////
////////////////////////////////////
// Protection Alkatraz
// E-motion (UK) (1990) (UK retail version) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Alkatraz_Emotion_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/E-motion (UK) (1990) (UK retail version) [Original] [TAPE].cdt",
"./res/Tape/Record/E-motion (UK) (1990) (UK retail version) [Original] [TAPE].cdt_1.txt", 0x9D7F, 0x500, "A", 57000, EXECUTE));
}
////////////////////////////////////
// Protection Ariolasoft K7
// - TODO
TEST(Dumps_Tape_Protections, DISABLED_Ariolasoft_TODO)
{
// KO ! Bride of Frankenstein & Werner - Mach hin
}
////////////////////////////////////
// Protection Bleepload v1
// Thrust (UK) (1986) (v2) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Bleepload_v1_Thrust_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Thrust (UK) (1986) (v2) [Original] [TAPE].cdt",
"./res/Tape/Record/Thrust (UK) (1986) (v2) [Original] [TAPE].cdt_1.txt", 0x3EC2, 0x7000, "A", 100000, EXECUTE));
//// 28bc, 38b1, 3ec2
}
////////////////////////////////////
// Protection Bleepload v2
// Flying Shark (UK) (1987) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Bleepload_v2_Flying_shark_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Flying Shark (UK) (1987) [Original] [TAPE].cdt",
"./res/Tape/Record/Flying Shark (UK) (1987) [Original] [TAPE].cdt_1.txt", 0x07E3, 0xC000, "A", 53000, EXECUTE));
//// 28bc, 38b1, 3ec2
}
////////////////////////////////////
// Protection Bleepload v3
// Booty (UK) (1986) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Bleepload_v3_Booty_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Booty (UK) (1986) [Original] [TAPE].cdt",
"./res/Tape/Record/Booty (UK) (1986) [Original] [TAPE].cdt_1.txt", 0x1C65, 0x6001, "D", 43000, EXECUTE));
}
////////////////////////////////////
// Protection Cassys
// 007 The Living Daylights (UK) (1987) (UK retail version) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Cassys_Living_daylights_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/007 The Living Daylights (UK) (1987) (UK retail version) [Original] [TAPE].cdt",
"./res/Tape/Record/007 The Living Daylights (UK) (1987) (UK retail version) [Original] [TAPE].cdt_1.txt", 0x28BC, 0x78D, "A", 61000, EXECUTE));
}
////////////////////////////////////
// Protection Codemaster
// Little Puff In Dragonland (UK) (1989) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Codemaster_Little_puff_in_dragonland_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Little Puff In Dragonland (UK) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/Little Puff In Dragonland (UK) (1989) [Original] [TAPE].cdt_1.txt", 0xBC18, 0x2718, "L", 57000, EXECUTE));
}
////////////////////////////////////
// Custom loader
// Cauldron II (UK) (1988) (Silverbird) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Custom_Cauldron_II_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Cauldron II (UK) (1988) (Silverbird) [Original] [TAPE].cdt",
"./res/Tape/Record/Cauldron II (UK) (1988) (Silverbird) [Original] [TAPE].cdt_1.txt", 0x28BC, 0xC000, "A", 77000, EXECUTE));
}
////////////////////////////////////
// Custom musical
// The Red Arrows (UK) (1985) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, DISABLED_Custom_musical_The_red_arrow_cdt)
{
// TODO
}
////////////////////////////////////
// Digital Integration
// TODO KO !!
TEST(Dumps_Tape_Protections, DISABLED_Digital_Integration_TODO)
{
// TODO
}
////////////////////////////////////
// Dinamic poliload
// After The War (UK) (Face 1) (1989) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Dinamic_Poliload_After_The_War_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/After The War (UK) (Face 1) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/After The War (UK) (Face 1) (1989) [Original] [TAPE].cdt_1.txt", 0xA4C0, 0x7FBC, "A", 80000, EXECUTE));
}
// El Capitan Trueno (S) (Face A) (1989) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Dinamic_Poliload_ElCapitanTrueno_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/El Capitan Trueno (S) (Face A) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/El Capitan Trueno (S) (Face A) (1989) [Original] [TAPE].cdt_1.txt",
0xA563, 0x3B1, "L", 68000, EXECUTE));
}
////////////////////////////////////
// Elite MFM K7 Encoding
// Frank Brunos Boxing(UK) (Face 1) (1985) (v1)[Original][TAPE].cdt
TEST(Dumps_Tape_Protections, Elite_MFM_Frank_Brunos_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Frank Brunos Boxing (UK) (Face 1) (1985) (v1) [Original] [TAPE].cdt",
"./res/Tape/Record/Frank Brunos Boxing (UK) (Face 1) (1985) (v1) [Original] [TAPE].cdt_1.txt", 0xBD4C, 0x55A, "C", 49000, EXECUTE));
}
////////////////////////////////////
// Elmar Krieger
// Prehistorik II (UK,F,G) (1993) [Original] [TAPE].cdt
// Super Cauldron (UK,F,G) (1993) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Elmar_Krieger_Prehistorik_2_cdt)
{
// Chgt
TestTape test;
// Press space
CommandKeyboard cmd_space(" ");
CommandRunCycles run_cycles(350);
// First test : To the white screen, with '0' countdown
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Prehistorik II (UK,F,G) (1993) [Original] [TAPE].cdt",
"./res/Tape/Record/Prehistorik II (UK,F,G) (1993) [Original] [TAPE].cdt_1.txt", 0x28BC, 0x6000, "A", 63000, EXECUTE));
run_cycles.Action(test.machine_);
// "Espace"
cmd_space.Action(test.machine_);
run_cycles.Action(test.machine_);
// "Espace"
cmd_space.Action(test.machine_);
// 2nd part
// Another test, until game
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/Prehistorik II (UK,F,G) (1993) [Original] [TAPE].cdt_2.txt", 0x28BC, 0x274, "A", 49000, EXECUTE));
// "Espace"
run_cycles.Action(test.machine_);
cmd_space.Action(test.machine_);
run_cycles.Action(test.machine_);
cmd_space.Action(test.machine_);
// 3rd part
// Another test, until game
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/Prehistorik II (UK,F,G) (1993) [Original] [TAPE].cdt_3.txt", 0x28BC, 0x1097, "A", 19000, EXECUTE));
}
////////////////////////////////////
// Protection Gremlin loader 2
// Basil The Great Mouse Detective (UK) (1987) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Gremlin_loader_2_Basil_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Basil The Great Mouse Detective (UK) (1987) [Original] [TAPE].cdt",
"./res/Tape/Record/Basil The Great Mouse Detective (UK) (1987) [Original] [TAPE].cdt_1.txt", 0x0275, 0x8000, "A", 63000, EXECUTE));
}
////////////////////////////////////
// Protection Hexagon
//Eswat - Cyber Police (UK) (64K) (Face A) (1990) [Original] [TAPE].cdt
// Eswat - Cyber Police (UK) (64K) (Face B) (1990) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Hexagon_Eswat_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Eswat - Cyber Police (UK) (64K) (Face A) (1990) [Original] [TAPE].cdt",
"./res/Tape/Record/Eswat - Cyber Police(UK) (64K) (Face A) (1990)[Original][TAPE].cdt_1.txt", 0x81BE, 0x2AEB, "A", 40000, EXECUTE));
CommandKeyboard cmd_space(" ");
CommandRunCycles run_cycles(350);
// Press space
cmd_space.Action(test.machine_);
run_cycles.Action(test.machine_);
// Insert tape 2
test.machine_->LoadTape("./res/Tape/Eswat - Cyber Police (UK) (64K) (Face B) (1990) [Original] [TAPE].cdt");
// Press space
run_cycles.Action(test.machine_);
cmd_space.Action(test.machine_);
run_cycles.Action(test.machine_);
cmd_space.Action(test.machine_);
// Next
ASSERT_EQ(true, test.MoreTest ( "./res/Tape/Record/Eswat - Cyber Police (UK) (64K) (Face B) (1990) [Original] [TAPE].cdt_1.txt", 0x3238, 0x14EF, "A", 19000, EXECUTE));
}
////////////////////////////////////
// Protection Laser Load
// The Krypton Factor (UK) (1987) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, LaserLoad_Krypton_Factor_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/The Krypton Factor (UK) (1987) [Original] [TAPE].cdt",
"./res/Tape/Record/The Krypton Factor (UK) (1987) [Original] [TAPE].cdt_1.txt", 0x30DF, 0x1ABC, "L", 51000, EXECUTE));
}
////////////////////////////////////
// Protection Lenslok
// Tomahawk (UK) (1986) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, DISABLED_Lenslok_Tomahawk_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Tomahawk (UK) (1986) [Original] [TAPE].cdt",
"./res/Tape/Record/Tomahawk (UK) (1986) [Original] [TAPE].cdt_1.txt", 0x30DF, 0x1ABC, "L", 51000, EXECUTE));
}
////////////////////////////////////
// Protection Lockout
// Le Necromancien (F) (1987) (-Code Programme) (Version Split) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Lockout_Necromancien_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Le Necromancien (F) (1987) (-Code Programme) (Version Split) [Original] [TAPE].cdt",
"./res/Tape/Record/Le Necromancien (F) (1987) (-Code Programme) (Version Split) [Original] [TAPE].cdt_1.txt", 0x28BC, 0xCF65, "A", 24000, EXECUTE));
}
////////////////////////////////////
// Protection Loriciel
// Bactron (F) (1986) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Loriciel_Bactron_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Bactron (F) (1986) [Original] [TAPE].cdt",
"./res/Tape/Record/Bactron (F) (1986) [Original] [TAPE].cdt_1.txt", 0x28BC, 0x7E0B, "A", 61000, EXECUTE));
}
////////////////////////////////////
// Protection Microkey
// Despotik Design(F, UK, G) (1987)[Original][TAPE].cdt
TEST(Dumps_Tape_Protections, Microkey_DespotikDesign_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Despotik Design (F,UK,G) (1987) [Original] [TAPE].cdt",
"./res/Tape/Record/Despotik Design (F,UK,G) (1987) [Original] [TAPE].cdt_1.txt", 0x28BC, 0x5563, "A", 72000, EXECUTE));
}
////////////////////////////////////
// Protection Opera soft
// Sol Negro - Soleil Noir(S) (Face A) (1988)[Original][TAPE].cdt
TEST(Dumps_Tape_Protections, OperaSoft_SolNegro_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Sol Negro - Soleil Noir (S) (Face A) (1988) [Original] [TAPE].cdt",
"./res/Tape/Record/Sol Negro - Soleil Noir (S) (Face A) (1988) [Original] [TAPE].cdt_1.txt", 0x0137, 0x400, "H", 66000, EXECUTE));
}
////////////////////////////////////
// Protection Ricochet
// Stunt Car Racer - Normal Version (UK) (1990) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Ricochet_StuntCarRacer_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Stunt Car Racer - Normal Version (UK) (1990) [Original] [TAPE].cdt",
"./res/Tape/Record/Stunt Car Racer - Normal Version (UK) (1990) [Original] [TAPE].cdt_1.txt", 0x42ED, 0xA684, "L", 63000, EXECUTE));
}
////////////////////////////////////
// Protection RubiK7
// Skate Ball(F) (1989)[Original][TAPE].cdt
TEST(Dumps_Tape_Protections, RubiK7_SkateBall_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Skate Ball (F) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/Skate Ball (F) (1989) [Original] [TAPE].cdt_1.txt", 0xBC96, 0x6F50, "L", 57000, EXECUTE));
}
////////////////////////////////////
// Protection Spectrum
// North Star (UK) (1988) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Spectrum_NorthStar_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/North Star (UK) (1988) [Original] [TAPE].cdt",
"./res/Tape/Record/North Star (UK) (1988) [Original] [TAPE].cdt_1.txt", 0x01FE, 0x2E32, "L", 68000, EXECUTE));
}
////////////////////////////////////
// Protection Spectrum Multiload
// Deflektor (UK) (1987) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpectrumMultiload_Deflektor_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Deflektor (UK) (1987) [Original] [TAPE].cdt",
"./res/Tape/Record/Deflektor (UK) (1987) [Original] [TAPE].cdt_1.txt", 0x0183, 0x0AAD, "L", 51000, EXECUTE));
}
////////////////////////////////////
// Protection Spectrum Pur
// Chart Attack (UK) (Face 1A) (1991) (Lotus Turbo Challenge - Data - HandBook) [Original] [TAPE] [COMPILATION].cdt
TEST(Dumps_Tape_Protections, SpectrumPur_Lotus_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Chart Attack (UK) (Face 1A) (1991) (Lotus Turbo Challenge - Data - HandBook) [Original] [TAPE] [COMPILATION].cdt",
"./res/Tape/Record/Chart Attack (UK) (Face 1A) (1991) (Lotus Turbo Challenge - Data - HandBook) [Original] [TAPE] [COMPILATION].cdt_1.txt", 0x20E2, 0x7F11, "L", 46000, EXECUTE));
}
////////////////////////////////////
// Protection Spectrum Variant 3
// Chicagos 30 (S) (1988) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpectrumVariant3_Chicagos30_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Chicagos 30 (S) (1988) [Original] [TAPE].cdt",
"./res/Tape/Record/Chicagos 30 (S) (1988) [Original] [TAPE].cdt_1.txt", 0xA585, 0x2B90, "L", 65000, EXECUTE));
}
////////////////////////////////////
// Protection Spectrum Variant 4
// Spherical (UK) (1989) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpectrumVariant4_Spherical_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Spherical (UK) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/Spherical (UK) (1989) [Original] [TAPE].cdt_1.txt", 0x28BC, 0xF21B, "A", 2000, EXECUTE));
// Press space
CommandKeyboard cmd_space(" ");
CommandRunCycles run_cycles(100);
run_cycles.Action(test.machine_);
cmd_space.Action(test.machine_);
// Second part
// Another test, until game
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/Spherical (UK) (1989) [Original] [TAPE].cdt_2.txt",
0x9F1C, 0x89EB, "L", 74000, EXECUTE));
}
////////////////////////////////////
// Protection Spectrum Zydrloload
// The Light Corridor (UK) (1990) [Original] [TAPE]
TEST(Dumps_Tape_Protections, Spectrumzydroload_LightCorridor_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/The Light Corridor (UK) (1990) [Original] [TAPE].cdt",
"./res/Tape/Record/The Light Corridor (UK) (1990) [Original] [TAPE].cdt_1.txt", 0xD143, 0x2100, "L", 75000, EXECUTE));
}
////////////////////////////////////
// Protection SpecVar
// Gryzor.cdt
TEST(Dumps_Tape_Protections, SpecVar_Gryzor_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Gryzor.cdt",
"./res/Tape/Record/Gryzor.cdt_1.txt", 0x80EE, 0x0700, "L", 31000, EXECUTE));
// Press space
CommandKeyboard cmd_space(" ");
CommandRunCycles run_cycles(100);
run_cycles.Action(test.machine_);
cmd_space.Action(test.machine_);
// Second part
// Another test, until game
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/Gryzor.cdt_2.txt",
0x1F58, 0x5D4 , "L", 26000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock
// Alien Highway (UK) (1986) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Speedlock_AlienHighway_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Alien Highway (UK) (1986) [Original] [TAPE].cdt",
"./res/Tape/Record/Alien Highway (UK) (1986) [Original] [TAPE].cdt_1.txt", 0x28BC, 0x0E1D, "A", 13000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock DATA TYPE_1
// Barbarian II(UK) (1989)[Original][TAPE].cdt
TEST(Dumps_Tape_Protections, Speedlock_DataType1_BarbarianII_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Barbarian II (UK) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/Barbarian II (UK) (1989) [Original] [TAPE].cdt_1.txt", 0xA85B, 0xB533, "E", 8500, EXECUTE));
// Press '0'
CommandScanCode cmd_keyboard(test.machine_->GetKeyboardHandler(), 0x0b, 1);
CommandScanCode cmd_keyboard_up(test.machine_->GetKeyboardHandler(), 0x0b, 0);
CommandRunCycles run_cycles(100);
run_cycles.Action(test.machine_);
cmd_keyboard.Action(test.machine_);
run_cycles.Action(test.machine_);
cmd_keyboard_up.Action(test.machine_);
// Another test, until game
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/Barbarian II (UK) (1989) [Original] [TAPE].cdt_2.txt",
0xB860, 0x2BA3, "A", 64000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V1
// 10th_Frame__RERELEASE_KIXX.cdt
TEST(Dumps_Tape_Protections, SpeedlockV1_10thFrame_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/10th_Frame__RERELEASE_KIXX.cdt",
"./res/Tape/Record/10th_Frame__RERELEASE_KIXX.cdt_1.txt", 0xBC18, 0x0400, "L", 60000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V1 Chaine
// 3D Starfighter (UK) (1987) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV1Chaine_3DStarfighter_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/3D Starfighter (UK) (1987) [Original] [TAPE].cdt",
"./res/Tape/Record/3D Starfighter (UK) (1987) [Original] [TAPE].cdt_1.txt", 0xBC18, 0x1FA7, "L", 61100, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V2
// Frankenstein Junior(UK) (1987)[Codemasters Software][Original][TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV2_FrankensteinJr_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Frankenstein Junior (UK) (1987) [Codemasters Software] [Original] [TAPE].cdt",
"./res/Tape/Record/Frankenstein Junior (UK) (1987) [Codemasters Software] [Original] [TAPE].cdt_1.txt", 0xBC18, 0x610B, "L", 70000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V2 chaine
// Arkanoid (UK) (1987) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV2Chaine_Arkanoid_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Arkanoid (UK) (1987) [Original] [TAPE].cdt",
"./res/Tape/Record/Arkanoid (UK) (1987) [Original] [TAPE].cdt_1.txt", 0xBC18, 0x22F, "L", 51000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V2 chaine Type 1
// Combat School (UK) (1987) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV2ChaineType1_CombatSchool_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Combat School (UK) (1987) [Original] [TAPE].cdt",
"./res/Tape/Record/Combat School (UK) (1987) [Original] [TAPE].cdt_1.txt", 0xA527, 0x3E8, "A", 52000, EXECUTE));
CommandKeyboard cmd_space(" ");
CommandRunCycles run_cycles(100);
run_cycles.Action(test.machine_);
cmd_space.Action(test.machine_);
// Another test, until game
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/Combat School (UK) (1987) [Original] [TAPE].cdt_2.txt",
0xA0D1, 0xF5F, "L", 18000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V2 chaine Type 2
// Amstrad Gold Hits 3 (UK) (Face 2B) (1988) (6. World Class Leaderboard - Terrain B) [Original] [TAPE] [COMPILATION].cdt
TEST(Dumps_Tape_Protections, SpeedlockV2ChaineType2_Leaderboard_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Amstrad Gold Hits 3 (UK) (Face 2B) (1988) (6. World Class Leaderboard - Terrain B) [Original] [TAPE] [COMPILATION].cdt",
"./res/Tape/Record/Amstrad Gold Hits 3 (UK) (Face 2B) (1988) (6. World Class Leaderboard - Terrain B) [Original] [TAPE] [COMPILATION].cdt_1.txt"
, 0xBAA4, 0x5B2A, "A", 60000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V2 Data Type 1
// Arkanoid Revenge Of Doh (UK) (1988) (UK retail version) [Original] [TAPE].cdt
// TODO : NOT WORKING !
////////////////////////////////////
// Protection Speedlock V3
// 750cc Grand Prix (UK) (1989) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV3_750cc_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/750cc Grand Prix (UK) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/750cc Grand Prix (UK) (1989) [Original] [TAPE].cdt_1.txt"
, 0xBC18, 0x32AD, "L", 56000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V3 DATA TYPE 1
// Mega Mix (UK) (Face 2) (1989) (2. Operation Wolf) [Original] [TAPE] [COMPILATION].cdt
TEST(Dumps_Tape_Protections, SpeedlockV3DataTye1_OperationWolf_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Mega Mix (UK) (Face 2) (1989) (2. Operation Wolf) [Original] [TAPE] [COMPILATION].cdt",
"./res/Tape/Record/Mega Mix (UK) (Face 2) (1989) (2. Operation Wolf) [Original] [TAPE] [COMPILATION].cdt_1.txt"
, 0xA677, 0x2E8E, "A", 52000, EXECUTE));
// Press 1
CommandScanCode cmd_keyboard(test.machine_->GetKeyboardHandler(), 2, 1);
CommandScanCode cmd_keyboard_up(test.machine_->GetKeyboardHandler(), 2, 0);
CommandRunCycles run_cycles(200);
run_cycles.Action(test.machine_);
cmd_keyboard.Action(test.machine_);
run_cycles.Action(test.machine_);
cmd_keyboard_up.Action(test.machine_);
// Another test, until game
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/Mega Mix (UK) (Face 2) (1989) (2. Operation Wolf) [Original] [TAPE] [COMPILATION].cdt_2.txt",
0x3E80, 0x23DF, "E", 18000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V3 DATA TYPE 3
// Batman The Movie(UK) (1989)[Original][TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV3DataType3_BatmanTheMovie_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464UK", "./TestConf.ini",
"./res/Tape/Batman The Movie (UK) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/Batman The Movie (UK) (1989) [Original] [TAPE].cdt_1.txt"
, 0xF703, 0x6F7F, "E", 45000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V4
// Batman The Caped Crusader (UK) (Face A) (1988) (Version Hit Squad 06) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV4_BatmanCapedCrusader_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Batman The Caped Crusader (UK) (Face A) (1988) (Version Hit Squad 06) [Original] [TAPE].cdt",
"./res/Tape/Record/Batman The Caped Crusader (UK) (Face A) (1988) (Version Hit Squad 06) [Original] [TAPE].cdt_1.txt"
, 0xA77F, 0x9424, "A", 64000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V4 DATA TYPE 1
//Mega Mix (UK) (Face 1) (1989) (1. Dragon Ninja) [Original] [TAPE] [COMPILATION].cdt
TEST(Dumps_Tape_Protections, SpeedlockV4DataType1_DragonNinja_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Mega Mix (UK) (Face 1) (1989) (1. Dragon Ninja) [Original] [TAPE] [COMPILATION].cdt",
"./res/Tape/Record/Mega Mix (UK) (Face 1) (1989) (1. Dragon Ninja) [Original] [TAPE] [COMPILATION].cdt_1.txt"
, 0xA788, 0x19A2, "A", 55000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V4 DATA TYPE 3
//Cabal (UK) (1989) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV4DataType3_Cabal_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Cabal (UK) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/Cabal (UK) (1989) [Original] [TAPE].cdt_1.txt"
, 0xA786, 0x34C, "A", 59000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V4 Spectrum
//Mega Mix (UK) (Face 4) (1989) (4. The Real Ghostbusters) [Original] [TAPE] [COMPILATION].cdt
TEST(Dumps_Tape_Protections, SpeedlockV4Spectrum_Ghostbuster_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Mega Mix (UK) (Face 4) (1989) (4. The Real Ghostbusters) [Original] [TAPE] [COMPILATION].cdt",
"./res/Tape/Record/Mega Mix (UK) (Face 4) (1989) (4. The Real Ghostbusters) [Original] [TAPE] [COMPILATION].cdt_1.txt"
, 0x308B, 0x51A5, "A", 45000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V5
// Adidas Championship Tie Break (UK) (1990) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV5_AdidasChampionshipTieBreak_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Adidas Championship Tie Break (UK) (1990) [Original] [TAPE].cdt",
"./res/Tape/Record/Adidas Championship Tie Break (UK) (1990) [Original] [TAPE].cdt_1.txt"
, 0x15F, 0x415, "E", 57000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V5 DATA TYPE 3
// Operation Thunderbolt (UK) (Face A) (1989) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV5DataType3_OperationThunderbolt_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Operation Thunderbolt (UK) (Face A) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/Operation Thunderbolt (UK) (Face A) (1989) [Original] [TAPE].cdt_1.txt"
, 0xA5C3, 0x3852, "A", 58000, EXECUTE));
// Press 4
CommandScanCode cmd_keyboard(test.machine_->GetKeyboardHandler(), 5, 1);
CommandScanCode cmd_keyboard_up(test.machine_->GetKeyboardHandler(), 5, 0);
CommandRunCycles run_cycles(200);
run_cycles.Action(test.machine_);
cmd_keyboard.Action(test.machine_);
run_cycles.Action(test.machine_);
cmd_keyboard_up.Action(test.machine_);
// Another test, until game
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/Operation Thunderbolt (UK) (Face A) (1989) [Original] [TAPE].cdt_2.txt",
0x3EC1, 0x5138, "E", 16426, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V6
// Puzznic (UK) (1990) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV6_Puzzinc_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Puzznic (UK) (1990) [Original] [TAPE].cdt",
"./res/Tape/Record/Puzznic (UK) (1990) [Original] [TAPE].cdt_1.txt",
0xA594, 0x5FEC, "A", 51000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V6 DATA TYPE 1
// The Untouchables (UK) (Face A) (1989) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV6DataType1_Untouchable_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/The Untouchables (UK) (Face A) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/The Untouchables (UK) (Face A) (1989) [Original] [TAPE].cdt_1.txt",
0xA594, 0x8000, "A", 56000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V6 Spectrum
// 10 Great Games II (UK) (Face 1A) (1988) (01. Death Wish 3) [Original] [TAPE] [COMPILATION].cdt
TEST(Dumps_Tape_Protections, SpeedlockV6Spectrum_DeathWish3_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/10 Great Games II (UK) (Face 1A) (1988) (01. Death Wish 3) [Original] [TAPE] [COMPILATION].cdt",
"./res/Tape/Record/10 Great Games II (UK) (Face 1A) (1988) (01. Death Wish 3) [Original] [TAPE] [COMPILATION].cdt_1.txt",
0x1FE, 0x41E2, "L", 67000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V6 Spectrum variant 3
// After The War (S) (Face A) (1989) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV6SpectrumVariant3_AfterTheWar_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/After The War (S) (Face A) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/After The War (S) (Face A) (1989) [Original] [TAPE].cdt_1.txt",
0xA523, 0x9C97, "L", 67000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V7
// Captain Planet And The Planeteers(UK) (1990)[Original][TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV7_CaptainPlanet_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Captain Planet And The Planeteers (UK) (1990) [Original] [TAPE].cdt",
"./res/Tape/Record/Captain Planet And The Planeteers (UK) (1990) [Original] [TAPE].cdt_1.txt",
0xA0FD, 0x2007, "E", 13000, EXECUTE));
CommandKeyboard cmd_space(" ");
CommandRunCycles run_cycles(100);
run_cycles.Action(test.machine_);
cmd_space.Action(test.machine_);
// Another test, until game
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/Captain Planet And The Planeteers (UK) (1990) [Original] [TAPE].cdt_2.txt",
0xA292, 0xA0D1, "E", 47000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V7 TYPE 1
// Cisco Heat (UK) (1991) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV7Type1_CiscoHeat_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Cisco Heat (UK) (1991) [Original] [TAPE].cdt",
"./res/Tape/Record/Cisco Heat (UK) (1991) [Original] [TAPE].cdt_1.txt",
0x31C, 0x411E, "E", 53000, EXECUTE));
}
////////////////////////////////////
// Protection Speedlock V7 TYPE 3
// Lemmings (UK) (1991) (00. Code Program) (Version Split) [Original] [TAPE].cdt
// Lemmings (UK) (1991) (01. Level 01 FUN - JUST DIG!) (Version Split) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, SpeedlockV7Type3_Lemmings_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Lemmings (UK) (1991) (00. Code Program) (Version Split) [Original] [TAPE].cdt",
"./res/Tape/Record/Lemmings (UK) (1991) (00. Code Program) (Version Split) [Original] [TAPE].cdt_1.txt",
0x2D6, 0x8EEB, "E", 69000, EXECUTE));
// Press 1
CommandScanCode cmd_keyboard(test.machine_->GetKeyboardHandler(), 2, 1);
CommandScanCode cmd_keyboard_up(test.machine_->GetKeyboardHandler(), 2, 0);
CommandRunCycles run_cycles(100);
run_cycles.Action(test.machine_);
cmd_keyboard.Action(test.machine_);
run_cycles.Action(test.machine_);
cmd_keyboard_up.Action(test.machine_);
// Press space
CommandKeyboard cmd_space(" ");
cmd_space.Action(test.machine_);
// Insert tape 2
test.machine_->LoadTape("./res/Tape/Lemmings (UK) (1991) (01. Level 01 FUN - JUST DIG!) (Version Split) [Original] [TAPE].cdt");
// Load Lemmings (UK) (1991) (01. Level 01 FUN - JUST DIG!) (Version Split) [Original] [TAPE].cdt
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/Lemmings (UK) (1991) (01. Level 01 FUN - JUST DIG!) (Version Split) [Original] [TAPE].cdt_1.txt",
0xF62F, 0xB646, "E", 5000, EXECUTE));
}
////////////////////////////////////
// Protection Titus K7 FM
// Knight Force (UK) (1989) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, TitusK7FM_KnightForce_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Knight Force (UK) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/Knight Force (UK) (1989) [Original] [TAPE].cdt_1.txt",
0x6506, 0x7B61, "A", 48000, EXECUTE));
}
////////////////////////////////////
// Protection Uniload
// Gazza II (UK) (1990) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, Uniload_GazzaII_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Gazza II (UK) (1990) [Original] [TAPE].cdt",
"./res/Tape/Record/Gazza II (UK) (1990) [Original] [TAPE].cdt_1.txt",
0x70A8, 0x0C00, "C", 43000, EXECUTE));
}
////////////////////////////////////
// Protection USGOld
// Gauntlet II (UK) (Face A) (1986) [Original] [TAPE].cdt
TEST(Dumps_Tape_Protections, USGold_GauntletII_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Gauntlet II (UK) (Face A) (1986) [Original] [TAPE].cdt",
"./res/Tape/Record/Gauntlet II (UK) (Face A) (1986) [Original] [TAPE].cdt_1.txt",
0x4BD, 0xC00, "A", 38000, EXECUTE));
}
////////////////////////////////////
// Protection Zydroload
// Not working ! Todo
////////////////////////////////////
// Specific Tape blocks
////////////////////////////////////
////////////////////////////////////
// ID10-11 : Speed data
//1942 + Batty (UK) (1989) (Spain retail version) [Original] [TAPE] [COMPILATION].cdt
TEST(Dumps_Tape_Format_CDT, ID10_11_1942_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/1942 + Batty (UK) (1989) (Spain retail version) [Original] [TAPE] [COMPILATION].cdt",
"./res/Tape/Record/1942 + Batty (UK) (1989) (Spain retail version) [Original] [TAPE] [COMPILATION].cdt_1.txt",
0xA7FE, 0x2B0A, "L", 61000, EXECUTE));
}
////////////////////////////////////
// ID12 : Pure tone
//Bubble Bobble (UK) (1987) [Original] [TAPE].cdt
TEST(Dumps_Tape_Format_CDT, ID12_BubbleBobble_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Bubble Bobble (UK) (1987) [Original] [TAPE].cdt",
"./res/Tape/Record/Bubble Bobble (UK) (1987) [Original] [TAPE].cdt_1.txt",
0x3CD1, 0x1C3, "A", 61000, EXECUTE));
}
////////////////////////////////////
// ID15 : Direct Recording block
// One (UK) (1986) [Original] [TAPE].cdt
TEST(Dumps_Tape_Format_CDT, ID15_One_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/One (UK) (1986) [Original] [TAPE].cdt",
"./res/Tape/Record/One (UK) (1986) [Original] [TAPE].cdt_1.txt",
0xF8C, 0x116A, "A", 67000, EXECUTE));
// Space
CommandKeyboard cmd_space(" ");
cmd_space.Action(test.machine_);
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/One (UK) (1986) [Original] [TAPE].cdt_2.txt",
0xF8C, 0x49AC, "A", 70000, EXECUTE));
}
////////////////////////////////////
// ID32 : Archive information block
// 007 The Living Daylights (UK) (1987) (Spain retail version) [Original] [TAPE].cdt
TEST(Dumps_Tape_Format_CDT, ID32_Living_daylights_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/007 The Living Daylights (UK) (1987) (Spain retail version) [Original] [TAPE].cdt",
"./res/Tape/Record/007 The Living Daylights (UK) (1987) (Spain retail version) [Original] [TAPE].cdt_1.txt", 0x28BC, 0x78D, "A", 61000, EXECUTE));
}
////////////////////////////////////
// NON REGRESSION / Specific
////////////////////////////////////
// Bad Cat (UK) (1987) [Original] [TAPE].cdt
TEST(Dumps_Tape_Other, BadCat_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Bad Cat (UK) (1987) [Original] [TAPE].cdt",
"./res/Tape/Record/Bad Cat (UK) (1987) [Original] [TAPE].cdt_1.txt",
0x28BC, 0x542F, "A", 28000, EXECUTE));
//test.machine_->ClearBreakpoints();
CommandRunCycles run_cycles(250);
run_cycles.Action(test.machine_);
// Space
CommandKeyboard cmd_space(" ");
cmd_space.Action(test.machine_);
run_cycles.Action(test.machine_);
// Space
cmd_space.Action(test.machine_);
// Wait a bit
run_cycles.Action(test.machine_);
// Name + enter
CommandKeyboard cmd_name("Test\r");
cmd_name.Action(test.machine_);
// 2nd load part
// Another test, until game
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/Bad Cat (UK) (1987) [Original] [TAPE].cdt_2.txt",
0x28BC, 0x31A3, "A", 37000, EXECUTE));
}
// Enterprise (UK) (1987) [Original] [TAPE].cdt
TEST(Dumps_Tape_Other, Enterprise_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Enterprise (UK) (1987) [Original] [TAPE].cdt",
"./res/Tape/Record/Enterprise (UK) (1987) [Original] [TAPE].cdt_1.txt", 0xBDF5, 0xBD5A, "L", 100000, EXECUTE));
}
// Footballer Of The Year 2 (UK) (1989) [Original] [TAPE].cdt
TEST(Dumps_Tape_Other, FOTY2_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Footballer Of The Year 2 (UK) (1989) [Original] [TAPE].cdt",
"./res/Tape/Record/Footballer Of The Year 2 (UK) (1989) [Original] [TAPE].cdt_1.txt", 0x9D0C, 0x9C8E, "A", 54000, EXECUTE));
}
// Kikekankoi Face Programme Principal.cdt
TEST(Dumps_Tape_Other, Kikekankoi_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Kikekankoi Face Programme Principal.cdt",
"./res/Tape/Record/Kikekankoi Face Programme Principal.cdt_1.txt",
0x28BC, 0xFA2A, "A", 48000, EXECUTE));
}
// Marmelade (F) (1987) (Version Basic 1.0) [Original] [TAPE]
TEST(Dumps_Tape_Other, Marmelade_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/Marmelade (F) (1987) (Version Basic 1.0) [Original] [TAPE].cdt",
"./res/Tape/Record/Marmelade (F) (1987) (Version Basic 1.0) [Original] [TAPE].cdt_1.txt", 0xBC2A, 0xBF00, "D", 60000, EXECUTE));
}
// 12 Jeux Exceptionnels (UK) (Face 2B) (1988) (12. Mask) [Original] [TAPE] [COMPILATION].cdt
TEST(Dumps_Tape_Other, Mask_12_jeux_exceptionnles_cdt)
{
TestTape test;
// First test : To the white screen, with '0' countdown
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/12 Jeux Exceptionnels (UK) (Face 2B) (1988) (12. Mask) [Original] [TAPE] [COMPILATION].cdt",
"./res/Tape/Record/12 Jeux Exceptionnels (UK) (Face 2B) (1988) (12. Mask) [Original] [TAPE] [COMPILATION].cdt_1.txt", 0x40F, 0x47D, "A", 63000, EXECUTE));
// Press space
CommandKeyboard cmd_space(" ");
CommandRunCycles run_cycles(100);
CommandJoystick cmd1(0, 64);
CommandJoystick cmd2(0, 0);
run_cycles.Action(test.machine_);
cmd_space.Action(test.machine_);
run_cycles.Action(test.machine_);
cmd_space.Action(test.machine_);
run_cycles.Action(test.machine_);
// Joystick button x2
cmd1.Action(test.machine_);
run_cycles.Action(test.machine_);
cmd2.Action(test.machine_);
run_cycles.Action(test.machine_);
cmd1.Action(test.machine_);
run_cycles.Action(test.machine_);
cmd2.Action(test.machine_);
// Another test, until game
ASSERT_EQ(true, test.MoreTest("./res/Tape/Record/12 Jeux Exceptionnels (UK) (Face 2B) (1988) (12. Mask) [Original] [TAPE] [COMPILATION].cdt_2.txt",
0x465, 0x828F, "A", 20000, EXECUTE));
}
// Skate Crazy (UK) (Face A) (1988) [Original] [TAPE].cdt
TEST(Dumps_Tape_Other, Skate_Crazy_cdt)
{
TestTape test;
ASSERT_EQ(true, test.Test("464", "./TestConf.ini",
"./res/Tape/SkateCrazy (UK) (Face A) (1988) (Part 1) [Original] TAPE].cdt",
"./res/Tape/Record/SkateCrazy (UK) (Face A) (1988) (Part 1) [Original] TAPE].cdt_1.txt", 0x0AE7, 0xC36, "A", 60000, EXECUTE)) ;
}
|
39e4862a2eda8ac74d25e6643c015bb8628bb2d1
|
f1ee65fbe1ffc43c2aac45e41515f1987eb534a4
|
/src/net/third_party/quiche/src/quiche/quic/core/quic_packet_writer.h
|
c68465657dbd0e680e990c84b6e90a3f2ba04219
|
[
"BSD-3-Clause"
] |
permissive
|
klzgrad/naiveproxy
|
6e0d206b6f065b9311d1e12b363109f2d35cc058
|
8ef1cecadfd4e2b5d57e7ea2fa42d05717e51c2e
|
refs/heads/master
| 2023-08-20T22:42:12.511091
| 2023-06-04T03:54:34
| 2023-08-16T23:30:19
| 119,178,893
| 5,710
| 976
|
BSD-3-Clause
| 2023-08-05T10:59:59
| 2018-01-27T16:02:33
|
C++
|
UTF-8
|
C++
| false
| false
| 8,280
|
h
|
quic_packet_writer.h
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef QUICHE_QUIC_CORE_QUIC_PACKET_WRITER_H_
#define QUICHE_QUIC_CORE_QUIC_PACKET_WRITER_H_
#include <cstddef>
#include <utility>
#include "absl/types/optional.h"
#include "quiche/quic/core/quic_packets.h"
#include "quiche/quic/platform/api/quic_export.h"
#include "quiche/quic/platform/api/quic_ip_address.h"
#include "quiche/quic/platform/api/quic_socket_address.h"
namespace quic {
struct WriteResult;
// This class allows a platform to pass instructions to an associated child of
// QuicWriter without intervening QUIC code understanding anything about its
// contents.
class QUIC_EXPORT_PRIVATE PerPacketOptions {
public:
virtual ~PerPacketOptions() {}
// Returns a heap-allocated copy of |this|.
//
// The subclass implementation of this method should look like this:
// return std::make_unique<MyAwesomePerPacketOptions>(*this);
//
// This method is declared pure virtual in order to ensure the subclasses
// would not forget to override it.
virtual std::unique_ptr<PerPacketOptions> Clone() const = 0;
};
// The owner of QuicPacketWriter can pass control information via this struct.
struct QUIC_EXPORT_PRIVATE QuicPacketWriterParams {
// Specifies ideal release time delay for this packet.
QuicTime::Delta release_time_delay = QuicTime::Delta::Zero();
// Whether it is allowed to send this packet without |release_time_delay|.
bool allow_burst = false;
// ECN codepoint to use when sending this packet.
QuicEcnCodepoint ecn_codepoint = ECN_NOT_ECT;
};
// An interface between writers and the entity managing the
// socket (in our case the QuicDispatcher). This allows the Dispatcher to
// control writes, and manage any writers who end up write blocked.
// A concrete writer works in one of the two modes:
// - PassThrough mode. This is the default mode. Caller calls WritePacket with
// caller-allocated packet buffer. Unless the writer is blocked, each call to
// WritePacket triggers a write using the underlying socket API.
//
// - Batch mode. In this mode, a call to WritePacket may not cause a packet to
// be sent using the underlying socket API. Instead, multiple packets are
// saved in the writer's internal buffer until they are flushed. The flush can
// be explicit, by calling Flush, or implicit, e.g. by calling
// WritePacket when the internal buffer is near full.
//
// Buffer management:
// In Batch mode, a writer manages an internal buffer, which is large enough to
// hold multiple packets' data. If the caller calls WritePacket with a
// caller-allocated packet buffer, the writer will memcpy the buffer into the
// internal buffer. Caller can also avoid this memcpy by:
// 1. Call GetNextWriteLocation to get a pointer P into the internal buffer.
// 2. Serialize the packet directly to P.
// 3. Call WritePacket with P as the |buffer|.
class QUIC_EXPORT_PRIVATE QuicPacketWriter {
public:
virtual ~QuicPacketWriter() {}
// PassThrough mode:
// Sends the packet out to the peer, with some optional per-packet options.
// If the write succeeded, the result's status is WRITE_STATUS_OK and
// bytes_written is populated. If the write failed, the result's status is
// WRITE_STATUS_BLOCKED or WRITE_STATUS_ERROR and error_code is populated.
//
// Batch mode:
// If the writer is blocked, return WRITE_STATUS_BLOCKED immediately.
// If the packet can be batched with other buffered packets, save the packet
// to the internal buffer.
// If the packet can not be batched, or the internal buffer is near full after
// it is buffered, the internal buffer is flushed to free up space.
// Return WriteResult(WRITE_STATUS_OK, <bytes_flushed>) on success. When
// <bytes_flushed> is zero, it means the packet is buffered and not flushed.
// Return WRITE_STATUS_BLOCKED if the packet is not buffered and the socket is
// blocked while flushing.
// Otherwise return an error status.
//
// Options must be either null, or created for the particular QuicPacketWriter
// implementation. Options may be ignored, depending on the implementation.
//
// Some comment about memory management if |buffer| was previously acquired
// by a call to "GetNextWriteLocation()":
//
// a) When WRITE_STATUS_OK is returned, the caller expects the writer owns the
// packet buffers and they will be released when the write finishes.
//
// b) When this function returns any status >= WRITE_STATUS_ERROR, the caller
// expects the writer releases the buffer (if needed) before the function
// returns.
//
// c) When WRITE_STATUS_BLOCKED is returned, the caller makes a copy of the
// buffer and will retry after unblock, so if |payload| is allocated from
// GetNextWriteLocation(), it
// 1) needs to be released before return, and
// 2) the content of |payload| should not change after return.
//
// d) When WRITE_STATUS_BLOCKED_DATA_BUFFERED is returned, the caller expects
// 1) the writer owns the packet buffers, and 2) the writer will re-send the
// packet when it unblocks.
virtual WriteResult WritePacket(const char* buffer, size_t buf_len,
const QuicIpAddress& self_address,
const QuicSocketAddress& peer_address,
PerPacketOptions* options,
const QuicPacketWriterParams& params) = 0;
// Returns true if the network socket is not writable.
virtual bool IsWriteBlocked() const = 0;
// Records that the socket has become writable, for example when an EPOLLOUT
// is received or an asynchronous write completes.
virtual void SetWritable() = 0;
// The error code used by the writer to indicate that the write failed due to
// supplied packet being too big. This is equivalent to returning
// WRITE_STATUS_MSG_TOO_BIG as a status.
virtual absl::optional<int> MessageTooBigErrorCode() const = 0;
// Returns the maximum size of the packet which can be written using this
// writer for the supplied peer address. This size may actually exceed the
// size of a valid QUIC packet.
virtual QuicByteCount GetMaxPacketSize(
const QuicSocketAddress& peer_address) const = 0;
// Returns true if the socket supports release timestamp.
virtual bool SupportsReleaseTime() const = 0;
// True=Batch mode. False=PassThrough mode.
virtual bool IsBatchMode() const = 0;
// Returns true if the writer will mark ECN on packets it writes.
virtual bool SupportsEcn() const = 0;
// PassThrough mode: Return {nullptr, nullptr}
//
// Batch mode:
// Return the QuicPacketBuffer for the next packet. A minimum of
// kMaxOutgoingPacketSize is guaranteed to be available from the returned
// address. If the internal buffer does not have enough space,
// {nullptr, nullptr} is returned. All arguments should be identical to the
// follow-up call to |WritePacket|, they are here to allow advanced packet
// memory management in packet writers, e.g. one packet buffer pool per
// |peer_address|.
//
// If QuicPacketBuffer.release_buffer is !nullptr, it should be called iff
// the caller does not call WritePacket for the returned buffer.
virtual QuicPacketBuffer GetNextWriteLocation(
const QuicIpAddress& self_address,
const QuicSocketAddress& peer_address) = 0;
// PassThrough mode: Return WriteResult(WRITE_STATUS_OK, 0).
//
// Batch mode:
// Try send all buffered packets.
// - Return WriteResult(WRITE_STATUS_OK, <bytes_flushed>) if all buffered
// packets were sent successfully.
// - Return WRITE_STATUS_BLOCKED if the underlying socket is blocked while
// sending. Some packets may have been sent, packets not sent will stay in
// the internal buffer.
// - Return a status >= WRITE_STATUS_ERROR if an error was encuontered while
// sending. As this is not a re-tryable error, any batched packets which
// were on memory acquired via GetNextWriteLocation() should be released and
// the batch should be dropped.
virtual WriteResult Flush() = 0;
};
} // namespace quic
#endif // QUICHE_QUIC_CORE_QUIC_PACKET_WRITER_H_
|
fe3ec722e305ad2aaac2b6b53438a3842b356e9e
|
8373930d5cdf68dd02d13e05d48b7010aafa5a1f
|
/B3.Ejercicio4.cpp
|
c17397ef7f6a7f9b5f004ab9b76b7d2068aaf6fc
|
[] |
no_license
|
mileznegriv/Cpp
|
c3921ba15f77e817621b29a5ad7b9815344b2935
|
72bcec22b89f961f3f088ca18070435addaedafc
|
refs/heads/master
| 2022-11-29T09:38:30.511989
| 2020-08-06T02:17:59
| 2020-08-06T02:17:59
| 256,542,342
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 277
|
cpp
|
B3.Ejercicio4.cpp
|
#include<iostream>
using namespace std;
int main(){
float numb;
cout<<"Type a number: ";
cin>>numb;
if(numb > 0){
cout<<"\nThe number is positive";
}
else if(numb < 0){
cout<<"\nThe number is negative";
}
else{
cout<<"\nThe number is s0";
}
return 0;
}
|
795e1f7aff2d5ca5bba81e7bae656d769f514d85
|
8406ad80bae3c83ced99cec9ffb909498edd6de4
|
/算法/RMQ/st(稀疏表).cpp
|
ded85313757bb8911560ff1982f923073403ff16
|
[] |
no_license
|
CEHSIA/oi
|
d3c25baf5518a99e8d6066e113c7b159dc1b4df7
|
04c149b864812b997596fb839478eab900b5d30a
|
refs/heads/master
| 2021-07-07T07:34:48.442015
| 2021-05-21T03:41:46
| 2021-05-21T03:41:46
| 123,156,081
| 2
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,849
|
cpp
|
st(稀疏表).cpp
|
/*
dp[i][j]=max(dp[i][j-1],dp[i+2^j-1][j-1]);
理解:
i表示开始的位置
j表示往后数2^j个数的最大值
a b c d e f g h i j k l n=12 a~l表示12个数字
|-|-|-|-|-|-|-|-|-|-|-|-| j=0时i管辖区间
|---|---|---|---|---|---|
|---|---|---|---|---|-- j=1时i管辖区间
|-------|-------|-------|
|-------|-------|------
|-------|-------|----
|-------|-------|-- j=2时i管辖区间
|---------------|--------
|---------------|------
|---------------|----
|---------------|--
|---------------|
|--------------
|------------
|----------
|--------
|------
|----
|-- j=3时i管辖区间
可以看出j每增加1,管辖区间由两个j-1区间合并而成
还有另一种dp方程
dp[i][j]=max(dp[i][j-1],dp[i+2^(j-1)][j-1])
RMQ(l,r)时
找到最大的k使得l+2^k<r+1
移项得2^k<r-l+1
∴k=[ln(r-l+1)/ln(2)]向下取整
求得k之后有
RMQ(l,r)
=max(st[l][l+2^k-1],st[r-2^k+1][r])
*/
#include <iostream>
#include <cmath>
#define MAX 10086
using namespace std;
int a[MAX],n;
int st[MAX][MAX],pos[MAX][MAX];
int q,l,r;
int main(int argc,char *argv[]){
cin>>n;
for(int i=1;i<=n;i++){
cin>>a[i];
st[i][0]=a[i];
pos[i][0]=i;
}
//建表,O(nlogn)
for(int j=1;(1<<j)<=n;j++){
for(int i=1;i<=n;i++){
st[i][j]=st[i][j-1];
pos[i][j]=pos[i][j-1];
if((i+(1<<j)-1)<=n&&st[i+(1<<j)-1][j-1]>st[i][j]){
st[i][j]=st[i+(1<<j)-1][j-1];
pos[i][j]=pos[i+(1<<j)-1][j-1];
}
}
}
//查询RMQ(l,r) O(1)/O(logn)
cin>>q;
int k;
int maxn,maxpos;
for(int i=1;i<=q;i++){
cin>>l>>r;
k=floor(log((double)(r-l+1))/log(2.0));
maxn=st[l][k];
maxpos=pos[l][k];
if(maxn<st[r-(1<<k)+1][k]){
maxn=st[r-(1<<k)+1][k];
maxpos=pos[r-(1<<k)+1][k];
}
cout<<maxn<<" "<<maxpos<<endl;
}
return 0;
}
|
340a1d55d89e24cf66fee5b89edac239ab961dd9
|
acb896ff1b1845eded4451ffd618f2e1fa90b8f1
|
/data-structures-and-algorithms-I/CLInterfaceBDList.cpp
|
4bb2c067595949e53d72bc8f1bf194ca1964c042
|
[] |
no_license
|
bartoszpogoda/data-struct-and-algorithms-I
|
2b9502c5563330308a01e6df20f02f78e0b05bd3
|
3389f56abd7343369523c874ef232d10cb69974e
|
refs/heads/master
| 2021-01-19T21:08:36.268480
| 2017-04-22T14:28:31
| 2017-04-22T14:28:31
| 85,242,048
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 6,598
|
cpp
|
CLInterfaceBDList.cpp
|
#include "CLInterface.h"
#include <sstream>
using namespace std;
BDList* CLInterface::testBDList = nullptr;
void CLInterface::viewMenuBDList() {
int selected = 0, max = 9, selectedDelta = 0;
system("CLS");
while (selected != max) {
do {
if (selected + selectedDelta < 0)
selected = max;
else if (selected + selectedDelta > max)
selected = 0;
else
selected += selectedDelta;
system("CLS");
cout << "-- Lista dwukierunkowa: --" << endl << endl;
cout << ((selected == 0) ? " > " : " ") << "Wczytaj z pliku" << endl;
cout << ((selected == 1) ? " > " : " ") << "Wypisz liste na ekran" << endl;
cout << " " << "Dodaj element:" << endl;
cout << ((selected == 2) ? " > " : " ") << "Indeks" << endl;
cout << ((selected == 3) ? " > " : " ") << "Poczatek" << endl;
cout << ((selected == 4) ? " > " : " ") << "Koniec" << endl;
cout << " " << "Usun element:" << endl;
cout << ((selected == 5) ? " > " : " ") << "Indeks" << endl;
cout << ((selected == 6) ? " > " : " ") << "Poczatek" << endl;
cout << ((selected == 7) ? " > " : " ") << "Koniec" << endl;
cout << ((selected == 8) ? " > " : " ") << "Znajdz element" << endl << endl;
cout << ((selected == 9) ? " > " : " ") << "Wyjscie" << endl;
} while ((selectedDelta = handleUserInput()) != 0);
if (selected == 0) {
viewInputFilenameBDList();
viewPrintedBDList();
}
else if (selected == 1) {
viewPrintedBDList();
}
else if (selected == 2) {
viewAddElementToBDList();
viewPrintedBDList();
}
else if (selected == 3) {
viewAddElementToBDListFront();
viewPrintedBDList();
}
else if (selected == 4) {
viewAddElementToBDListEnd();
viewPrintedBDList();
}
else if (selected == 5) {
viewDeleteElementFromBDList();
viewPrintedBDList();
}
else if (selected == 6) {
viewDeleteElementFromBDListFront();
viewPrintedBDList();
}
else if (selected == 7) {
viewDeleteElementFromBDListEnd();
viewPrintedBDList();
}
else if (selected == 8) {
viewFindElementInBDList();
viewPrintedBDList();
}
}
delete testBDList;
testBDList = nullptr;
}
void CLInterface::viewInputFilenameBDList() {
string filename = " ";
system("CLS");
cout << "-- Wczytaj z pliku: --" << endl << endl;
cout << " > Podaj nazwe pliku: ";
cin >> filename;
cout << "Wynik: " << fileReader.readBDList(filename, CLInterface::testBDList);
cout << endl << endl << "> Powrot: Enter";
handleUserInput();
}
void CLInterface::viewPrintedBDList() {
system("CLS");
cout << "-- Aktualna zawartosc listy dwukierunkowej: --" << endl << endl;
if (testBDList == nullptr)
testBDList = new BDList();
cout << testBDList->toString();
cout << endl << endl << "> Powrot: Enter";
handleUserInput();
}
void CLInterface::viewAddElementToBDList() {
system("CLS");
type element;
int index;
cout << "-- Dodaj element do listy dwukierunkowej: --" << endl << endl;
cout << " > Wprowadz element (liczba calkowita): ";
cin >> element;
cout << " > Wprowadz indeks: ";
cin >> index;
if (testBDList == nullptr)
testBDList = new BDList();
if (index < 0 || index >= testBDList->size())
index = testBDList->size();
testBDList->addAt(element, index);
cout << " > Element " << element << " dodany na pozycji " << index;
cout << endl << endl << "> Powrot: Enter";
handleUserInput();
}
void CLInterface::viewAddElementToBDListFront() {
system("CLS");
type element;
cout << "-- Dodaj element do listy dwukierunkowej - poczatek: --" << endl << endl;
cout << " > Wprowadz element (liczba calkowita): ";
cin >> element;
if (testBDList == nullptr)
testBDList = new BDList();
testBDList->addFront(element);
cout << " > Element " << element << " dodany na pierwszej pozycji";
cout << endl << endl << "> Powrot: Enter";
handleUserInput();
}
void CLInterface::viewAddElementToBDListEnd() {
system("CLS");
type element;
cout << "-- Dodaj element do listy dwukierunkowej - koniec: --" << endl << endl;
cout << " > Wprowadz element (liczba calkowita): ";
cin >> element;
if (testBDList == nullptr)
testBDList = new BDList();
testBDList->addEnd(element);
cout << " > Element " << element << " dodany na ostatniej pozycji";
cout << endl << endl << "> Powrot: Enter";
handleUserInput();
}
void CLInterface::viewDeleteElementFromBDList() {
system("CLS");
if (testBDList == nullptr || testBDList->size() == 0) {
return;
}
int index;
cout << "-- Usun element z listy dwukierunkowej: --" << endl << endl;
cout << " > Wprowadz indeks: ";
cin >> index;
if (index < 0 || index >= testBDList->size())
cout << " > Nie znaleziono elementu o indeksie " << index;
else {
testBDList->deleteAt(index);
cout << " > Element z pozycji " << index << " zostal usuniety.";
}
cout << endl << endl << "> Powrot: Enter";
handleUserInput();
}
void CLInterface::viewDeleteElementFromBDListFront() {
system("CLS");
if (testBDList == nullptr || testBDList->size() == 0) {
return;
}
cout << "-- Usun element z listy dwukierunkowej - poczatek: --" << endl << endl;
char decision;
cout << " > Potwierdzenie operacji T/N: ";
cin >> decision;
if (decision == 'T' || decision == 't') {
testBDList->deleteFront();
cout << " > Element z poczatkowej pozycji zostal usuniety.";
}
else {
cout << " > Operacja anulowana";
}
cout << endl << endl << "> Powrot: Enter";
handleUserInput();
}
void CLInterface::viewDeleteElementFromBDListEnd() {
system("CLS");
if (testBDList == nullptr || testBDList->size() == 0) {
return;
}
cout << "-- Usun element z listy dwukierunkowej - koniec: --" << endl << endl;
char decision;
cout << " > Potwierdzenie operacji T/N: ";
cin >> decision;
if (decision == 'T' || decision == 't') {
testBDList->deleteEnd();
cout << " > Element z ostatniej pozycji zostal usuniety.";
}
else {
cout << " > Operacja anulowana";
}
cout << endl << endl << "> Powrot: Enter";
handleUserInput();
}
void CLInterface::viewFindElementInBDList() {
system("CLS");
if (testBDList == nullptr || testBDList->size() == 0) {
return;
}
int element;
cout << "-- Znajdz indeks pierwszego wystapienia elementu w liscie dwukierunkowej: --" << endl << endl;
cout << " > Wprowadz element (liczba calkowita): ";
cin >> element;
int foundIndex = testBDList->find(element);
if (foundIndex == -1)
cout << " > Nie znaleziono elementu: " << element;
else {
cout << " > Element " << element << " wystapil na pozycji " << foundIndex;
}
cout << endl << endl << "> Powrot: Enter";
handleUserInput();
}
|
e9d848fc7da9a4eb6e8b2d6f4d2ad1e84575b6cb
|
c76e78581983830158b2a6f56b807e37132f4bba
|
/Codeforces/c1400-1499/c1490p1.cpp
|
6f35939ce7237bbbc3952aed1811ffd3471d375a
|
[] |
no_license
|
itslinotlie/competitive-programming-solutions
|
7f72e27bbc53046174a95246598c3c9c2096b965
|
b639ebe3c060bb3c0b304080152cc9d958e52bfb
|
refs/heads/master
| 2021-07-17T17:48:42.639357
| 2021-05-29T03:07:47
| 2021-05-29T03:07:47
| 249,599,291
| 2
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 955
|
cpp
|
c1490p1.cpp
|
// 02/16/2021
// https://codeforces.com/contest/1490/problem/A
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define CLR(a) memset(a, 0, sizeof(a))
#define REP(i, n) for(int i=0;i<n;i++)
#define FOR(i, n) for(int i=1;i<=n;i++)
#define all(c) (c).begin(), (c).end()
#define F first
#define S second
inline ll gcd(ll a, ll b) {return b==0? a:gcd(b, a%b);}
inline ll lcm(ll a, ll b) {return a*b/gcd(a, b);}
const int mxn = 55;
int t(1), n, a[mxn], ans;
double fun(int x, int y) {
return 1.0 * max(x, y) / min(x, y);
}
void solve() {
cin >> n; ans = 0;
FOR(i, n) cin >> a[i];
for(int i=1;i<n;i++) {
int b = a[i], c = a[i+1];
int x = min(b, c), y = max(b, c);
while(fun(x, y)>2) {
x*=2; ans++;
}
}
cout << ans << endl;
}
int main() {
ios::sync_with_stdio(0); cin.tie(0);
cin >> t;
for (int i=1;i<=t;i++) {
solve();
}
}
|
4aed4cd0e60ac3f4621fc6742470d7473d9b3bca
|
c5d6fd2f5bcd7a19d4a5572bc0b9daa104184d66
|
/src/main.cpp
|
832494d1faf4a30400e1b389b4234eefd8d4719c
|
[] |
no_license
|
kiddos/reversi
|
5c4a4394e05bf3273b130bf048cdec3c1c3d7ce3
|
e864e66faee41099430dcda1c7f66ad1211ad4a1
|
refs/heads/master
| 2020-12-25T07:02:57.274972
| 2016-05-12T08:54:34
| 2016-05-12T08:54:34
| 58,399,480
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 392
|
cpp
|
main.cpp
|
#include "window.h"
#include "aitrainer.h"
using reversi::Window;
using reversi::AITrainer;
int main(int argc, char *argv[]) {
if (argc == 3) {
const int instances = atoi(argv[1]);
const int iterations = atoi(argv[2]);
AITrainer trainer;
trainer.train(instances, iterations);
trainer.saveparam();
} else {
Window window;
window.mainloop();
}
return 0;
}
|
bf86c04fd60f25425aa43d10b48e739dec8e6087
|
5b18f4e4141607c12b3928a1dea3fea36d11e8e1
|
/QtGlobals.h
|
417d5093dd8fe8ff99c36ae509cff9acfa0f91b4
|
[
"MIT"
] |
permissive
|
alexgg-developer/FileListCreator
|
e1e8c09d8b73aa12cf194334f1640a5b4d2814b1
|
8501f62db4bcbe5a33ece0bfcf7406d4063957ef
|
refs/heads/master
| 2021-06-21T18:50:03.339136
| 2017-07-27T18:05:38
| 2017-07-27T18:05:38
| 97,385,919
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 258
|
h
|
QtGlobals.h
|
#ifndef QTGLOBALS_H
#define QTGLOBALS_H
#include <QQmlApplicationEngine>
class QtGlobals
{
public:
QQmlApplicationEngine* engine;
static QtGlobals* getInstance();
private:
static QtGlobals *single;
QtGlobals() { }
};
#endif // QTGLOBALS_H
|
aa9998c43e7164c792d745d70ef203871fed2e90
|
fc33d5f6acaa819f9e5f663aed34d1b2fa1cf2f3
|
/Server.h
|
a652b35f424e2444b7609930ab4d767c8c3d1378
|
[] |
no_license
|
ykrutsko/Server
|
2b972d0718215e5f601ac5e6b54fdba3ff35c7dd
|
459f571f4165df2705a10a51a000e74005a9da0c
|
refs/heads/main
| 2023-08-29T13:22:47.900548
| 2021-10-22T11:36:09
| 2021-10-22T11:36:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 374
|
h
|
Server.h
|
#ifndef SERVER_H
#define SERVER_H
#include <Windows.h>
#include <winsock.h>
#pragma comment(lib, "ws2_32.lib")
class Server {
private:
static const int portNumber;
static const char* hostAdress;
int thisSocket;
struct sockaddr_in socketAdress;
public:
Server();
struct sockaddr_in createSocket();
void bindSocket();
void waitConnection();
~Server();
};
#endif
|
79ebeba6a1e6082ecc18ba8bef24765a40b48d64
|
d40accb15d5a7c61a1ad56f738493dca8495dba5
|
/StringToInt.h
|
13ef9a0c803af0127f2a2ef582d9a00eb5054b6e
|
[] |
no_license
|
zhangliugang/LeetCode-CPP
|
2910be7f5bb2a455f47c8b11374a1837de219a30
|
611629de7ebbfeb7d5e20b06418568fa05fb0df4
|
refs/heads/master
| 2021-05-21T14:05:59.582715
| 2020-04-27T03:16:53
| 2020-04-27T03:16:53
| 252,675,218
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,040
|
h
|
StringToInt.h
|
//
// Created by August on 4/3/20.
//
#ifndef LEETCODE_STRINGTOINT_H
#define LEETCODE_STRINGTOINT_H
/**
* 8. 字符串转换整数 (atoi)
* https://leetcode-cn.com/problems/string-to-integer-atoi/
*/
#include <string>
using namespace std;
class StringToInt {
public:
int myAtoi(string str) {
if (str.empty()) return 0;
auto flag = false;
auto negative = false;
int64_t a = 0;
for (auto &c : str) {
if (c == ' ' && !flag) {
continue;
}
else if (c == '-' && !flag) { negative = true; flag = true; }
else if (c == '+' && !flag) { flag = true; }
else if (c >= 48 && c <= 57) {
flag = true;
a = a * 10 + (c - 48);
if (a >= 2147483648) break;
} else break;
}
if (negative) a = -a;
if (a > 2147483647) return 2147483647;
if (a < -2147483648) return -2147483648;
return a;
}
};
#endif //LEETCODE_STRINGTOINT_H
|
8310d1f4d3f2ed782fa38ca2e689d5a762c021df
|
c7bb028cc483b8728a4ed412334f83b15cc038c9
|
/lab7.cpp
|
90c9416310a66429be6dde626d6d8d4916d6f9d4
|
[
"MIT"
] |
permissive
|
kertnique/numericalMethods-labs
|
1230f5c382ca79da3e4ed0261baac1a0c8fe1c06
|
9cc5c9a1808ff09b1907b43e9e81b9adf230688e
|
refs/heads/main
| 2023-06-11T02:44:01.439482
| 2021-06-28T18:32:38
| 2021-06-28T18:32:38
| 381,127,039
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,174
|
cpp
|
lab7.cpp
|
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
double f (double x){
return (x+1) * sin(x);
}
double f_derN (double x, int N){ // похідна 2N-ого порядку
if(N%2 == 0) return (x+1) * sin(x) - 2 * N * cos(x);
else return 2 * N * cos(x) - (x+1) * sin (x);
}
int factorial (int x){
int out = 1;
for(int i = 2; i <=x; i++){
out*=i;
}
return out;
}
double getMax (double a, double b, int m){
int N = 100000;
double maximum = max(abs(f_derN(a,m)), abs(f_derN(b,m)));
for(int i = 1; i < N ; i++){
if(abs(f_derN(a + i * (b-a) / N,m)) > maximum) maximum = f_derN(a + i * (b-a) / N,m);
}
return maximum;
}
double Simpson (double a, double b, int n){
double result = f(a);
for(int i = 1; i <= n; i++){
result += 4 * f(a + (b-a) * (2*i-1)/ 2 / n);
result += 2 * f(a + (b-a) * i/n);
}
result -= f(b);
result *= (b-a) / 6 / n;
return result;
}
int error_Simpson (double a, double b, double wanted_error){ // виводить необхідне 2n для заданої точності
double maximum = getMax(a,b,2);
int n = ceil(pow(maximum * pow((b-a), 2) / 180 / wanted_error , 0.25));
if(n%2 ==1) n++;
return n;
}
double Gaus (double a, double b){
double x[4] = {-0.861136311594, -0.339981043584856, 0.339981043584856, 0.861136311594}; // з таблиці коренів поліномів Лежандра
double w[4] = {0.34785484513745, 0.6521451548625, 0.6521451548625, 0.34785484513745};
double result = 0;
for(int i = 0; i < 4; i++){
double y = x[i] * (b-a)/2 + (a+b)/2;
result += w[i] * f(y);
}
return result * (b-a) / 2;
}
int error_Gaus (double a, double b, double wanted_error){
int n = 2;
double R = wanted_error + 1;
while (R > wanted_error){
R = (pow(factorial(n),4) * pow((b-a), 2*n+1)) / ((2*n+1) * pow(factorial(2*n), 3)) * (getMax(a,b,n));
n++;
}
return n;
}
int main()
{
double lower = 0.8;
double upper = 1.6;
double precision = 0.0001;
cout << "Метод Сімпсона: \nЗа формулою похибки знадено необхідну кількість підінтервалів: " << 2 * error_Simpson(lower,upper,precision);
cout << "\nАналітична похибка для методу: " << pow((upper - lower),2) / 180 / pow(2 * error_Simpson(lower,upper,precision), 4) * getMax(lower,upper,2);
cout << "\nЗнайдений інтеграл : " << setprecision(11) << Simpson(lower,upper, error_Simpson(lower,upper,precision));
int n = error_Gaus(lower, upper, precision);
cout << "\n\nМетод Гауса: \nЗа формулою похибки знайдено необхідну кількість підінтервалів: " << n;
cout << "\nАналітична похибка для методу: " << (pow(factorial(n),4) * pow((upper-lower), 2*n+1)) / ((2*n+1) * pow(factorial(2*n), 3)) * (getMax(lower,upper,n));
cout << "\nЗнайдений інтеграл: " << setprecision(11) << Gaus(lower,upper) << "\n";
return 0;
}
|
e86106d7b26bdc75df2da49ce229fd010a3952bd
|
c74faaa9c859dde87a92716ae76ad30858b294b0
|
/Nov14/prpalin.cpp
|
0c2ddfa2ae9a24d4d08cde33fc49087ab6b5d2b6
|
[] |
no_license
|
sbpraveen34/Codeblocks_Projects
|
acad3225357d9850ecbb53bdae24f96420e0d9b8
|
f6be0c74190ef73d0d862a500a989e6071cb1b66
|
refs/heads/master
| 2021-03-12T21:48:03.786353
| 2014-11-30T15:53:23
| 2014-11-30T15:53:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 976
|
cpp
|
prpalin.cpp
|
#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
bool palin(string s)
{
int n=s.length();
for(int i=0;i<=n/2;i++)
{
if(s.at(i)!=s.at(n-(i+1)))
return false;
}
return true;
}
int main()
{
int t;
scanf("%d",&t);
while(t>0)
{
string s,a,b;
bool f=false;
cin>>s;
for(int i=0;i<s.length();i++)
{
if(i==0)
{
a=s.substr(1);
if(palin(a))
{
f=true;
break;
}
}
else
{
a=s.substr(0,i);
b=s.substr(i+1);
if(palin(a+b))
{
f=true;
break;
}
}
}
if(f)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
t--;
}
return 0;
}
|
d189df8b9251efbe295c6829dd9fd9318a1ce0f7
|
26fcbac2ca68d078f58ea0e722b21fc32bb1089d
|
/Num_Command.cpp
|
ae23ed6585594d7e731b3fd77c877fae1a64deba
|
[] |
no_license
|
RedWheeler/calculator
|
607278800e1bc0a7f3cb4ff24113c46ddb975fd6
|
a6c07b93996dc57791647afa761f386a17384892
|
refs/heads/main
| 2023-03-25T09:56:45.478199
| 2021-03-25T04:25:46
| 2021-03-25T04:25:46
| 351,305,637
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 158
|
cpp
|
Num_Command.cpp
|
#include "Num_Command.h"
Num_Command:: Num_Command(Stack <int> & s, int n)
:s_ (s), n_ (n)
{
}
void Num_Command:: execute(void)
{
s_.push(this->n_);
}
|
b626d29deeb473f8716ca9ab71e118d91a1b665e
|
2124d0b0d00c3038924f5d2ad3fe14b35a1b8644
|
/source/GamosCore/GamosGenerator/src/GmGenerDistPositionPoint.cc
|
0477ab8d866f198d4843ce2f93bef1a0802576ce
|
[] |
no_license
|
arceciemat/GAMOS
|
2f3059e8b0992e217aaf98b8591ef725ad654763
|
7db8bd6d1846733387b6cc946945f0821567662b
|
refs/heads/master
| 2023-07-08T13:31:01.021905
| 2023-06-26T10:57:43
| 2023-06-26T10:57:43
| 21,818,258
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,101
|
cc
|
GmGenerDistPositionPoint.cc
|
#include "GmGenerDistPositionPoint.hh"
#include "GmGenerVerbosity.hh"
#include "GamosCore/GamosGenerator/include/GmParticleSource.hh"
#include "GamosCore/GamosUtils/include/GmGenUtils.hh"
#include "G4UnitsTable.hh"
//---------------------------------------------------------------------
G4ThreeVector GmGenerDistPositionPoint::GeneratePosition( GmParticleSource* )
{
#ifndef GAMOS_NO_VERBOSE
if( GenerVerb(infoVerb) ) G4cout << " GmGenerDistPositionPoint::Generate pos " << thePoint << G4endl;
#endif
return thePoint;
}
//---------------------------------------------------------------------
void GmGenerDistPositionPoint::SetParams( const std::vector<G4String>& params )
{
if( params.size() == 0 ) {
thePoint = G4ThreeVector();
} else if( params.size() == 3 ) {
thePoint = G4ThreeVector(GmGenUtils::GetValue( params[0] ), GmGenUtils::GetValue( params[1] ), GmGenUtils::GetValue( params[2] ) );
} else {
G4Exception(" GmGenerDistPositionPoin::SetParams",
"Wrong argument",
FatalErrorInArgument,
"To set point you have to add 3 parameters: POS_X POS_Y POS_Z");
}
}
|
97bfa6c66771da4c6827f8fc4300eb95a37c6661
|
e37ea57c174698121d7fbfc6cda3eea999ac8c1d
|
/src/coreclr/jit/regalloc.cpp
|
78add29413f30ed4bba3f5e7015671adea1dc493
|
[
"MIT"
] |
permissive
|
mikedn/runtime
|
ec0c7f5dd2340f2b44e3f04bea5518fa6af0debb
|
fcbcaaf345871e3200acaeddb53255ce25cac0f4
|
refs/heads/mjit
| 2023-08-16T17:33:16.116940
| 2023-07-29T09:54:42
| 2023-07-29T09:54:42
| 224,108,521
| 10
| 0
|
MIT
| 2023-07-29T09:54:43
| 2019-11-26T05:18:21
|
C#
|
UTF-8
|
C++
| false
| false
| 6,835
|
cpp
|
regalloc.cpp
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX XX
XX RegAlloc XX
XX XX
XX Does the register allocation and puts the remaining lclVars on the stack XX
XX XX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
*/
#include "jitpch.h"
#if DOUBLE_ALIGN
//------------------------------------------------------------------------
// shouldDoubleAlign: Determine whether to double-align the frame
//
// Arguments:
// refCntStk - sum of ref counts for all stack based variables
// refCntEBP - sum of ref counts for EBP enregistered variables
// refCntWtdEBP - sum of wtd ref counts for EBP enregistered variables
// refCntStkParam - sum of ref counts for all stack based parameters
// refCntWtdStkDbl - sum of wtd ref counts for stack based doubles (including structs
// with double fields).
//
// Return Value:
// Returns true if this method estimates that a double-aligned frame would be beneficial
//
// Notes:
// The impact of a double-aligned frame is computed as follows:
// - We save a byte of code for each parameter reference (they are frame-pointer relative)
// - We pay a byte of code for each non-parameter stack reference.
// - We save the misalignment penalty and possible cache-line crossing penalty.
// This is estimated as 0 for SMALL_CODE, 16 for FAST_CODE and 4 otherwise.
// - We pay 7 extra bytes for:
// MOV EBP,ESP,
// LEA ESP,[EBP-offset]
// AND ESP,-8 to double align ESP
// - We pay one extra memory reference for each variable that could have been enregistered in EBP (refCntWtdEBP).
//
// If the misalignment penalty is estimated to be less than the bytes used, we don't double align.
// Otherwise, we compare the weighted ref count of ebp-enregistered variables against double the
// ref count for double-aligned values.
//
bool Compiler::shouldDoubleAlign(unsigned refCntStk,
unsigned refCntEBP,
BasicBlock::weight_t refCntWtdEBP,
unsigned refCntStkParam,
BasicBlock::weight_t refCntWtdStkDbl)
{
bool doDoubleAlign = false;
const unsigned DBL_ALIGN_SETUP_SIZE = 7;
unsigned bytesUsed = refCntStk + refCntEBP - refCntStkParam + DBL_ALIGN_SETUP_SIZE;
unsigned misaligned_weight = 4;
if (compCodeOpt() == SMALL_CODE)
{
misaligned_weight = 0;
}
if (compCodeOpt() == FAST_CODE)
{
misaligned_weight *= 4;
}
JITDUMP("\nDouble alignment:\n");
JITDUMP(" Bytes that could be saved by not using EBP frame: %i\n", bytesUsed);
JITDUMP(" Sum of weighted ref counts for EBP enregistered variables: %f\n", refCntWtdEBP);
JITDUMP(" Sum of weighted ref counts for weighted stack based doubles: %f\n", refCntWtdStkDbl);
if (((BasicBlock::weight_t)bytesUsed) > ((refCntWtdStkDbl * misaligned_weight) / BB_UNITY_WEIGHT))
{
JITDUMP(" Predicting not to double-align ESP to save %d bytes of code.\n", bytesUsed);
}
else if (refCntWtdEBP > refCntWtdStkDbl * 2)
{
// TODO-CQ: On P4 2 Proc XEON's, SciMark.FFT degrades if SciMark.FFT.transform_internal is
// not double aligned.
// Here are the numbers that make this not double-aligned.
// refCntWtdStkDbl = 0x164
// refCntWtdEBP = 0x1a4
// We think we do need to change the heuristic to be in favor of double-align.
JITDUMP(" Predicting not to double-align ESP to allow EBP to be used to enregister variables.\n");
}
else
{
// OK we passed all of the benefit tests, so we'll predict a double aligned frame.
JITDUMP(" Predicting to create a double-aligned frame\n");
doDoubleAlign = true;
}
return doDoubleAlign;
}
#endif // DOUBLE_ALIGN
bool Compiler::rpMustCreateEBPFrame()
{
bool result = false;
INDEBUG(const char* reason = nullptr);
if (opts.IsFramePointerRequired())
{
INDEBUG(reason = "FramePointerRequired");
result = true;
}
else if (opts.OptimizationDisabled())
{
INDEBUG(reason = "Debug Code");
result = true;
}
#ifndef TARGET_AMD64
else if (opts.jitFlags->IsSet(JitFlags::JIT_FLAG_FRAMED))
{
// The VM sets JitFlags::JIT_FLAG_FRAMED for two reasons:
// (1) the COMPlus_JitFramed variable is set, or
// (2) the function is marked "noinline".
// The reason for #2 is that people mark functions noinline to ensure they
// show up on in a stack walk. But for AMD64, we don't need a frame pointer
// for the frame to show up in stack walk.
INDEBUG(reason = "JIT_FLAG_FRAMED");
result = true;
}
#endif
#if ETW_EBP_FRAMED
else if (info.compMethodInfo->ILCodeSize > DEFAULT_MAX_INLINE_SIZE)
{
INDEBUG(reason = "IL Code Size");
result = true;
}
else if (fgBBcount > 3)
{
INDEBUG(reason = "BasicBlock Count");
result = true;
}
else if (fgHasLoops)
{
INDEBUG(reason = "Method has Loops");
result = true;
}
else if (optCallCount >= 2)
{
INDEBUG(reason = "Call Count");
result = true;
}
else if (optIndirectCallCount >= 1)
{
INDEBUG(reason = "Indirect Call");
result = true;
}
#endif
else if (optNativeCallCount != 0)
{
// VM wants to identify the containing frame of an InlinedCallFrame always
// via the frame register never the stack register so we need a frame.
INDEBUG(reason = "Uses PInvoke");
result = true;
}
#ifdef TARGET_ARM64
else
{
// TODO-ARM64-NYI: This is temporary: force a frame pointer-based frame
// until genFnProlog can handle non-frame pointer frames.
INDEBUG(reason = "Temporary ARM64 force frame pointer");
result = true;
}
#endif // TARGET_ARM64
#ifdef DEBUG
if (result)
{
JITDUMP("; Decided to create an EBP based frame, reason = '%s'\n", reason);
}
#endif
return result;
}
|
978ea10990fe9a7c6a6d89d07ab56ed15c60f2f9
|
515726672bb4a78919501f549289554820180869
|
/Expression.h
|
4b460c1b361fa4c515a54329056ccb1f97b70b04
|
[] |
no_license
|
TakanoriOnuma/CalcExpression
|
a22bdcec79c363c6e5d52e0a264b8da6daeeb47e
|
b60315d4c3997527361848ae8388540b8a0bf657
|
refs/heads/master
| 2021-01-18T14:28:59.406568
| 2014-03-25T05:42:14
| 2014-03-25T05:42:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 267
|
h
|
Expression.h
|
#pragma once
class Expression {
void skip_space(const char*& ch);
double exp1(const char*& ch);
double exp2(const char*& ch);
double exp3(const char*& ch);
double read_value(const char*& ch);
public:
double calc_exp(const char* exp_str);
};
|
d13bc5a51620b2069fd277b868db206ad9d1bb9a
|
04630c5168ff26a780b2c21793606a42cf9e46fe
|
/Baekjoon_OJ/DP 기초/11066_파일 합치기.cpp
|
c066d97a6e049dd6d81343eafab043683e19a6d9
|
[] |
no_license
|
heeguk/Algorithm
|
4863d653bc0dec84e2cb0e13c1eb5164b575bd86
|
c7b8b347c2b497271037e79d0ed9b8f94d5ee7e9
|
refs/heads/master
| 2020-04-27T01:28:23.163518
| 2019-08-23T06:08:32
| 2019-08-23T06:08:32
| 173,901,714
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 748
|
cpp
|
11066_파일 합치기.cpp
|
#include <iostream>
#include <cstring>
#include <algorithm>
#define INF 100000000
using namespace std;
long long dp[501][501];
int arr[501];
long long sum[501];
int n;
int main() {
cin.tie(NULL);
ios::sync_with_stdio(false);
int tc;
cin >> tc;
for (int t = 0; t < tc; t++) {
memset(dp, -1, sizeof(dp));
cin >> n;
arr[0] = 0;
sum[0] = 0;
for (int i = 1; i <= n; i++){
cin >> arr[i];
dp[i][i] = 0;
sum[i] = arr[i] + sum[i - 1];
}
for (int c = 1; c <= n - 1; c++) {
for (int i = 1; i + c <= n; i++) {
int j = i + c;
dp[i][j] = INF;
for (int k = i; k <= j - 1; k++) {
dp[i][j] = min(dp[i][j], dp[i][k] + dp[k + 1][j] + sum[j] - sum[i - 1]);
}
}
}
cout << dp[1][n] << '\n';
}
}
|
5eead8881da046d667245f5c7d9f5e3876d4995d
|
58e9b31a12d1037b73675ed48656a37626c5d85e
|
/data structures/assignments/lab-exam-2/q2.cpp
|
f9282f543dae8a2eafa9dc9e0cf3c9bb5abbb9ba
|
[] |
no_license
|
YashasSamaga/college-work
|
3dbb278c979baf75a80843c5e3a2a305ece440c7
|
caf7f3dd0bd7113039d9b7aba988e8814fc85705
|
refs/heads/master
| 2022-07-12T14:24:48.787433
| 2022-06-30T06:28:38
| 2022-06-30T06:28:38
| 162,693,749
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,125
|
cpp
|
q2.cpp
|
#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <string>
std::string str;
class fake_string {
public:
fake_string(int i, int j) : first(i), last(j) { }
bool operator<(const fake_string& fs) const {
if((last - first) != (fs.last - fs.first))
return (last - first) < (fs.last - fs.first);
for(int i = 0; i < (last - first); i++) {
if(str[first + i] != str[fs.first + i])
return str[first + i] < str[fs.first + i];
}
return false;
}
int first, last;
};
int main () {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cin >> str;
std::string allowed;
std::cin >> allowed;
bool valid[26];
std::fill_n(valid, 26, false);
for(int i = 0; i < allowed.size(); i++) {
if(allowed[i] == '1') {
valid[i] = true;
}
}
int K;
std::cin >> K;
std::set<fake_string> result;
int bad = 0;
for(int i = 0; i < str.size(); i++) {
int bad = 0;
for(int j = i; j < str.size(); j++) {
if(!valid[str[j] - 'a'])
bad++;
if(bad > K)
break;
result.emplace(i, j + 1);
}
}
std::cout << result.size();
return 0;
}
|
6039b5fc0082c68e4b9714bbff86aebd4b847ca0
|
67b29354900dbdb003fb68301a0d4d257e9d0c0c
|
/EECS_560/Lab09/leftistH-vs-skewH-analysis-lab9/src/simulator/scheduler.cpp
|
2e8af03fbf1fce85e8acc7dc7e1f12b076038dd2
|
[] |
no_license
|
budlinville/EECS_560
|
ed930daa5c85ef0612a6a237b17fb84b8fb71c23
|
0ec7337dc0df183626f009be4ce6d72c2bf39ae5
|
refs/heads/master
| 2021-09-03T01:44:17.136059
| 2018-01-04T16:42:52
| 2018-01-04T16:42:52
| 112,029,590
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,045
|
cpp
|
scheduler.cpp
|
#include "../../include/simulator/scheduler.hpp"
Scheduler::Scheduler(){
this->schedule = new PriorityQueue();
}
void Scheduler::addApplicationToSchedule(Application* app){
schedule->concat(app->getTasks());
/* FOR DEBUGGING
node_t *rootPtr = schedule->getRootPtr();
std::cout << "--------" << std::endl;
std::cout << "IN: ";
schedule->inorderTraversal(rootPtr, 0, &PriorityQueue::printElement);
std::cout << std::endl;
std::cout << "POST: ";
schedule->postorderTraversal(rootPtr, 0, &PriorityQueue::printElement);
std::cout << std::endl;
std::cout << "PRE: ";
schedule->preorderTraversal(rootPtr, 0, &PriorityQueue::printElement);
std::cout << "\n--------" << std::endl;
*/
}
Task* Scheduler::executeNextOnProcessor(){
Task* nextTask = schedule->deleteMinElem();
return nextTask;
}
bool Scheduler::isEmpty(){
return (schedule->getRootPtr() == nullptr);
}
int Scheduler::scheduleSize(){
node_t* myRoot = schedule->getRootPtr();
if (myRoot == nullptr)
return 0;
return schedule->getSize();
}
|
eae5fa60ac313729bacbbaebeaa54c13108a6ec9
|
2914194776c2b0a4eab682e0c69e3f69c17a89b5
|
/Chapter #1/18.cpp
|
91714d45215b1e196a6adf74b440b90e3c33d34b
|
[] |
no_license
|
ruybrito106/Cracking
|
010f842ab6a650f1ea98d6cb3d1ea92e6c0099c1
|
795059d7eb242b14c0c139c051c6ef858d5d03bd
|
refs/heads/master
| 2021-03-27T19:39:16.339946
| 2017-05-23T17:32:40
| 2017-05-23T17:32:40
| 89,779,349
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 731
|
cpp
|
18.cpp
|
#include <bits/stdc++.h>
#define fr(a, b, c) for(int a = b; a < c; ++a)
#define pb push_back
using namespace std;
/*
Author: Ruy Brito
DONE
23/05/17
Statement:
"Write an algorithm such that if an element in an MxN matrix is 0, its entire row and
column are set to O"
*/
// Complexity: time O(N * M), extra space O(1)
int main() {
int n, m;
cin >> n >> m;
int mat[n][m];
int a;
fr(i, 0, n) fr(j, 0, m) {
scanf("%d", &mat[i][j]);
if (!mat[i][j]) mat[0][j] = mat[i][0] = 0;
}
fr(i, 0, n) fr(j, 0, m) mat[i][j] = (!mat[i][0] || !mat[0][j]) ? 0 : mat[i][j];
fr(i, 0, n) {
fr(j, 0, m) cout << mat[i][j] << ' ';
cout << endl;
}
return 0;
}
|
9905a99059eb88753a9f959b6cd9b03cb99e11fc
|
ea60de9bd39daf9e326fd4e0cb5a8b69b77649ab
|
/Ubiquos/UDPServer.cpp
|
5eaba4b5bab3bc0efa5dd17cc75ff430c3b90260
|
[] |
no_license
|
pekayatt/ubiquos
|
5eed3b71ccfa88345f99a8c151fe5b85bf84ade6
|
0f59fc011c77552e23f826cd011007be4b4315ee
|
refs/heads/master
| 2020-07-18T02:42:41.127824
| 2016-08-25T18:54:14
| 2016-08-25T18:54:14
| 66,583,856
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,233
|
cpp
|
UDPServer.cpp
|
#define VERBOSE 1
#define UDP_PORT 50200
#include "UDPServer.h"
#include "Ubiquos.h"
#include "cocos2d.h"
#include <chrono>
#include <thread>
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
#include <sys/ioctl.h>
#endif
ServerUDP::ServerUDP()
{
isRunning = false;
#ifdef _WIN32
WORD wVersionRequested;
WSADATA wsaData;
int err;
wVersionRequested = MAKEWORD(2, 2);
err = WSAStartup(wVersionRequested, &wsaData);
if (err != 0)
{
if (VERBOSE) CCLog("ERROR Client UDP, WSAStartup failed with error");
return;
}
#endif
if ((udp_socket = socket(AF_INET, SOCK_DGRAM, 0)) == -1)
{
if (VERBOSE) CCLog("ERROR Client UDP, socket");
return;
}
}
bool ServerUDP::StartUDPServer(int numPlayers,bool isSpectator)
{
receiveSpectator=false;
hasSpectator=false;
int playerConnected;
if(isSpectator==false){
playerConnected= 1; //The server as it is.
}else{
playerConnected=0;
hasSpectator=true;
CCLog("UDP Server: is spectator");
}
struct sockaddr_in server, si_other, bc_add;
char msg[128];
strcpy(msg, "");
bc_add.sin_family = AF_INET;
bc_add.sin_port = htons(UDP_PORT);
memset(&(bc_add.sin_zero), 0, 8); // Zero the rest of the struct
server.sin_family = AF_INET;
server.sin_port = htons(UDP_PORT);
server.sin_addr.s_addr = INADDR_ANY;
memset(&(server.sin_zero), 0, 8); // Zero the rest of the struct
int broadcastPermission = 1;
int checkCall = setsockopt(udp_socket, SOL_SOCKET, SO_BROADCAST, (const char*)&broadcastPermission, sizeof(broadcastPermission));
if(checkCall == -1){
return false;
}
checkCall = 1;
checkCall = setsockopt(udp_socket, SOL_SOCKET, SO_REUSEADDR, (const char*)&checkCall, sizeof(checkCall));
if(checkCall == -1){
CCLog("UDPServer: SO_REUSEADDR error");
return false;
}
if( bind(udp_socket ,(struct sockaddr *)&server , sizeof(server)) < 0)
{
return false;
}
int recv_len;
socklen_t s_len;
int j,i;
int wordCount = 0;
char parseMsg[3][80] = {0};
s_len = sizeof(si_other);
isRunning = true;
while (true)
{
if ((recv_len = recvfrom(udp_socket, msg, 80, 0, (struct sockaddr *)&si_other ,&s_len)) < 0){
return false;
}
//Verifica se msg de procura de servidor
CCLog("UDP Server: msg recv: %s", msg);
for (i = 0; msg[i]!='.'&& i<recv_len; i++ ){
for (j = 0; msg[i]!=';'; j++)
{
parseMsg[wordCount][j] = msg[i++];
if ( msg[i]=='.'){
i--;
break;
}
}
wordCount++;
}
wordCount = 0;
if(strcmp(parseMsg[0], "lookingServer")==0){
if(atoi(parseMsg[1]) == numPlayers &&
(hasSpectator==false ||(hasSpectator==true && strcmp(parseMsg[2], "isSpectator")!=0 ))){
//Answer client that has found
CCLog("UDP Server: Got client looking for server");
CCLog("UDP Server: Client IP: %s ", inet_ntoa(si_other.sin_addr));
bc_add.sin_addr = si_other.sin_addr;
memset(msg, 0, sizeof(msg));
strcpy(msg,"serverFound.");
sendto(udp_socket,msg, strlen(msg), 0, (struct sockaddr *)&bc_add, sizeof(bc_add));
}
}
//confirms that is connecting to it
if(strcmp(parseMsg[0], "connecting")==0 &&
(hasSpectator==false ||(hasSpectator==true && strcmp(parseMsg[1], "isSpectator")!=0 ))){
CCLog("UDP Server: Got client connecting");
if(strcmp(parseMsg[1], "isSpectator")!=0){
playerConnected++;
}else{
hasSpectator=true;
CCLog("UDP Server: Got spectator");
}
if (playerConnected>numPlayers-1){
CCLog("CLOSING UDP");
break; //Stop receiving new players
}
}
memset(parseMsg, 0, sizeof(parseMsg));
memset(msg, 0, 128);
}
isRunning = false;
#ifdef _WIN32
WSACleanup();
closesocket(udp_socket);
#else
shutdown(udp_socket, 2);
close(udp_socket);
#endif
return true;
}
ServerUDP::~ServerUDP()
{
#ifdef _WIN32
WSACleanup();
#endif
}
//enables the server to receive one more player before closing the connection
void ServerUDP::enableReceiveSpectator(){
receiveSpectator=true;
}
// Shut down the socket.
bool ServerUDP::Close()
{
if (!isRunning){
return true;
}
#ifndef _WIN32
close(udp_socket);
#else
closesocket(udp_socket);
#endif
udp_socket = -1;
return true;
}
|
1728c028bda6834329e35eb2e6f44c81ff7f1946
|
6994e542ce7b0cbbd00ac53b29b57188230c34a3
|
/aws-fpga/Vitis/examples/xilinx_2020.1/cpp_kernels/wide_mem_rw/src/vadd.cpp
|
144c5f1e87af832ebe0dee32768e5e23b1f6ebc7
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
abejgonzalez/firesim-aws-fpga-temp
|
199d3a9900710eb1f9e50607ceabb9fa5dccfd3f
|
fa0acf0932b2ab4028086c31b30774dd18f642a3
|
refs/heads/master
| 2023-09-03T08:12:59.390284
| 2021-10-20T20:19:52
| 2021-10-20T20:19:52
| 419,476,790
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,904
|
cpp
|
vadd.cpp
|
/**********
Copyright (c) 2020, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**********/
/*******************************************************************************
Description:
Wide Memory Access Example using ap_uint<Width> datatype
Description: This is vector addition example to demonstrate Wide Memory
access of 512bit Datawidth using ap_uint<> datatype which is defined inside
'ap_int.h' file.
*******************************************************************************/
// Including to use ap_uint<> datatype
#include <ap_int.h>
#define BUFFER_SIZE 128
#define DATAWIDTH 512
#define DATATYPE_SIZE 32
#define VECTOR_SIZE \
(DATAWIDTH / DATATYPE_SIZE) // vector size is 16 (512/32 = 16)
typedef ap_uint<DATAWIDTH> uint512_dt;
typedef ap_uint<DATATYPE_SIZE> din_type;
typedef ap_uint<DATATYPE_SIZE + 1> dout_type;
// TRIPCOUNT identifier
const unsigned int c_chunk_sz = BUFFER_SIZE;
const unsigned int c_size = VECTOR_SIZE;
/*
Vector Addition Kernel Implementation using uint512_dt datatype
Arguments:
in1 (input) --> Input Vector1
in2 (input) --> Input Vector2
out (output) --> Output Vector
size (input) --> Size of Vector in Integer
*/
extern "C" {
void vadd(const uint512_dt *in1, // Read-Only Vector 1
const uint512_dt *in2, // Read-Only Vector 2
uint512_dt *out, // Output Result
int size // Size in integer
) {
uint512_dt v1_local[BUFFER_SIZE]; // Local memory to store vector1
uint512_dt result_local[BUFFER_SIZE]; // Local Memory to store result
// Input vector size for interger vectors. However kernel is directly
// accessing 512bit data (total 16 elements). So total number of read
// from global memory is calculated here:
int size_in16 = (size - 1) / VECTOR_SIZE + 1;
// Per iteration of this loop perform BUFFER_SIZE vector addition
for (int i = 0; i < size_in16; i += BUFFER_SIZE) {
#pragma HLS LOOP_TRIPCOUNT min = c_chunk_sz/c_size max = c_chunk_sz/c_size
int chunk_size = BUFFER_SIZE;
// boundary checks
if ((i + BUFFER_SIZE) > size_in16)
chunk_size = size_in16 - i;
// burst read first vector from global memory to local memory
// Auto-pipeline is going to apply pipeline to these loops
v1_rd:
for (int j = 0; j < chunk_size; j++) {
#pragma HLS LOOP_TRIPCOUNT min = c_chunk_sz max = c_chunk_sz
v1_local[j] = in1[i + j];
}
// burst read second vector and perform vector addition
v2_rd_add:
for (int j = 0; j < chunk_size; j++) {
#pragma HLS LOOP_TRIPCOUNT min = c_chunk_sz max = c_chunk_sz
uint512_dt tmpV1 = v1_local[j];
uint512_dt tmpV2 = in2[i + j];
uint512_dt tmpOut = 0;
din_type val1, val2;
dout_type res;
v2_parallel_add:
for (int i = 0; i < VECTOR_SIZE; i++) {
#pragma HLS UNROLL
val1 = tmpV1.range(DATATYPE_SIZE * (i + 1) - 1, i * DATATYPE_SIZE);
val2 = tmpV2.range(DATATYPE_SIZE * (i + 1) - 1, i * DATATYPE_SIZE);
res = val1 + val2; // Vector Addition
tmpOut.range(DATATYPE_SIZE * (i + 1) - 1, i * DATATYPE_SIZE) =
res; // Strobe Writing
}
result_local[j] = tmpOut;
}
// burst write the result
out_write:
for (int j = 0; j < chunk_size; j++) {
#pragma HLS LOOP_TRIPCOUNT min = c_chunk_sz max = c_chunk_sz
out[i + j] = result_local[j];
}
}
}
}
|
c533ac5a430cf33821f6b3240e461494c078b4ea
|
f7dc806f341ef5dbb0e11252a4693003a66853d5
|
/thirdparty/embree/common/math/affinespace.h
|
9d4a0f08468decd7175abb92105e1197b312b6b0
|
[
"LicenseRef-scancode-free-unknown",
"MIT",
"CC-BY-4.0",
"OFL-1.1",
"Bison-exception-2.2",
"CC0-1.0",
"LicenseRef-scancode-nvidia-2002",
"LicenseRef-scancode-other-permissive",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unicode",
"BSD-2-Clause",
"FTL",
"GPL-3.0-or-later",
"Bitstream-Vera",
"Zlib",
"MPL-2.0",
"MIT-Modern-Variant",
"JSON",
"Libpng"
] |
permissive
|
godotengine/godot
|
8a2419750f4851d1426a8f3bcb52cac5c86f23c2
|
970be7afdc111ccc7459d7ef3560de70e6d08c80
|
refs/heads/master
| 2023-08-21T14:37:00.262883
| 2023-08-21T06:26:15
| 2023-08-21T06:26:15
| 15,634,981
| 68,852
| 18,388
|
MIT
| 2023-09-14T21:42:16
| 2014-01-04T16:05:36
|
C++
|
UTF-8
|
C++
| false
| false
| 15,600
|
h
|
affinespace.h
|
// Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "linearspace2.h"
#include "linearspace3.h"
#include "quaternion.h"
#include "bbox.h"
#include "vec4.h"
namespace embree
{
#define VectorT typename L::Vector
#define ScalarT typename L::Vector::Scalar
////////////////////////////////////////////////////////////////////////////////
// Affine Space
////////////////////////////////////////////////////////////////////////////////
template<typename L>
struct AffineSpaceT
{
L l; /*< linear part of affine space */
VectorT p; /*< affine part of affine space */
////////////////////////////////////////////////////////////////////////////////
// Constructors, Assignment, Cast, Copy Operations
////////////////////////////////////////////////////////////////////////////////
__forceinline AffineSpaceT ( ) { }
__forceinline AffineSpaceT ( const AffineSpaceT& other ) { l = other.l; p = other.p; }
__forceinline AffineSpaceT ( const L & other ) { l = other ; p = VectorT(zero); }
__forceinline AffineSpaceT& operator=( const AffineSpaceT& other ) { l = other.l; p = other.p; return *this; }
__forceinline AffineSpaceT( const VectorT& vx, const VectorT& vy, const VectorT& vz, const VectorT& p ) : l(vx,vy,vz), p(p) {}
__forceinline AffineSpaceT( const L& l, const VectorT& p ) : l(l), p(p) {}
template<typename L1> __forceinline AffineSpaceT( const AffineSpaceT<L1>& s ) : l(s.l), p(s.p) {}
////////////////////////////////////////////////////////////////////////////////
// Constants
////////////////////////////////////////////////////////////////////////////////
__forceinline AffineSpaceT( ZeroTy ) : l(zero), p(zero) {}
__forceinline AffineSpaceT( OneTy ) : l(one), p(zero) {}
/*! return matrix for scaling */
static __forceinline AffineSpaceT scale(const VectorT& s) { return L::scale(s); }
/*! return matrix for translation */
static __forceinline AffineSpaceT translate(const VectorT& p) { return AffineSpaceT(one,p); }
/*! return matrix for rotation, only in 2D */
static __forceinline AffineSpaceT rotate(const ScalarT& r) { return L::rotate(r); }
/*! return matrix for rotation around arbitrary point (2D) or axis (3D) */
static __forceinline AffineSpaceT rotate(const VectorT& u, const ScalarT& r) { return L::rotate(u,r); }
/*! return matrix for rotation around arbitrary axis and point, only in 3D */
static __forceinline AffineSpaceT rotate(const VectorT& p, const VectorT& u, const ScalarT& r) { return translate(+p) * rotate(u,r) * translate(-p); }
/*! return matrix for looking at given point, only in 3D */
static __forceinline AffineSpaceT lookat(const VectorT& eye, const VectorT& point, const VectorT& up) {
VectorT Z = normalize(point-eye);
VectorT U = normalize(cross(up,Z));
VectorT V = normalize(cross(Z,U));
return AffineSpaceT(L(U,V,Z),eye);
}
};
// template specialization to get correct identity matrix for type AffineSpace3fa
template<>
__forceinline AffineSpaceT<LinearSpace3ff>::AffineSpaceT( OneTy ) : l(one), p(0.f, 0.f, 0.f, 1.f) {}
////////////////////////////////////////////////////////////////////////////////
// Unary Operators
////////////////////////////////////////////////////////////////////////////////
template<typename L> __forceinline AffineSpaceT<L> operator -( const AffineSpaceT<L>& a ) { return AffineSpaceT<L>(-a.l,-a.p); }
template<typename L> __forceinline AffineSpaceT<L> operator +( const AffineSpaceT<L>& a ) { return AffineSpaceT<L>(+a.l,+a.p); }
template<typename L> __forceinline AffineSpaceT<L> rcp( const AffineSpaceT<L>& a ) { L il = rcp(a.l); return AffineSpaceT<L>(il,-(il*a.p)); }
////////////////////////////////////////////////////////////////////////////////
// Binary Operators
////////////////////////////////////////////////////////////////////////////////
template<typename L> __forceinline const AffineSpaceT<L> operator +( const AffineSpaceT<L>& a, const AffineSpaceT<L>& b ) { return AffineSpaceT<L>(a.l+b.l,a.p+b.p); }
template<typename L> __forceinline const AffineSpaceT<L> operator -( const AffineSpaceT<L>& a, const AffineSpaceT<L>& b ) { return AffineSpaceT<L>(a.l-b.l,a.p-b.p); }
template<typename L> __forceinline const AffineSpaceT<L> operator *( const ScalarT & a, const AffineSpaceT<L>& b ) { return AffineSpaceT<L>(a*b.l,a*b.p); }
template<typename L> __forceinline const AffineSpaceT<L> operator *( const AffineSpaceT<L>& a, const AffineSpaceT<L>& b ) { return AffineSpaceT<L>(a.l*b.l,a.l*b.p+a.p); }
template<typename L> __forceinline const AffineSpaceT<L> operator /( const AffineSpaceT<L>& a, const AffineSpaceT<L>& b ) { return a * rcp(b); }
template<typename L> __forceinline const AffineSpaceT<L> operator /( const AffineSpaceT<L>& a, const ScalarT & b ) { return a * rcp(b); }
template<typename L> __forceinline AffineSpaceT<L>& operator *=( AffineSpaceT<L>& a, const AffineSpaceT<L>& b ) { return a = a * b; }
template<typename L> __forceinline AffineSpaceT<L>& operator *=( AffineSpaceT<L>& a, const ScalarT & b ) { return a = a * b; }
template<typename L> __forceinline AffineSpaceT<L>& operator /=( AffineSpaceT<L>& a, const AffineSpaceT<L>& b ) { return a = a / b; }
template<typename L> __forceinline AffineSpaceT<L>& operator /=( AffineSpaceT<L>& a, const ScalarT & b ) { return a = a / b; }
template<typename L> __forceinline VectorT xfmPoint (const AffineSpaceT<L>& m, const VectorT& p) { return madd(VectorT(p.x),m.l.vx,madd(VectorT(p.y),m.l.vy,madd(VectorT(p.z),m.l.vz,m.p))); }
template<typename L> __forceinline VectorT xfmVector(const AffineSpaceT<L>& m, const VectorT& v) { return xfmVector(m.l,v); }
template<typename L> __forceinline VectorT xfmNormal(const AffineSpaceT<L>& m, const VectorT& n) { return xfmNormal(m.l,n); }
__forceinline const BBox<Vec3fa> xfmBounds(const AffineSpaceT<LinearSpace3<Vec3fa> >& m, const BBox<Vec3fa>& b)
{
BBox3fa dst = empty;
const Vec3fa p0(b.lower.x,b.lower.y,b.lower.z); dst.extend(xfmPoint(m,p0));
const Vec3fa p1(b.lower.x,b.lower.y,b.upper.z); dst.extend(xfmPoint(m,p1));
const Vec3fa p2(b.lower.x,b.upper.y,b.lower.z); dst.extend(xfmPoint(m,p2));
const Vec3fa p3(b.lower.x,b.upper.y,b.upper.z); dst.extend(xfmPoint(m,p3));
const Vec3fa p4(b.upper.x,b.lower.y,b.lower.z); dst.extend(xfmPoint(m,p4));
const Vec3fa p5(b.upper.x,b.lower.y,b.upper.z); dst.extend(xfmPoint(m,p5));
const Vec3fa p6(b.upper.x,b.upper.y,b.lower.z); dst.extend(xfmPoint(m,p6));
const Vec3fa p7(b.upper.x,b.upper.y,b.upper.z); dst.extend(xfmPoint(m,p7));
return dst;
}
////////////////////////////////////////////////////////////////////////////////
/// Comparison Operators
////////////////////////////////////////////////////////////////////////////////
template<typename L> __forceinline bool operator ==( const AffineSpaceT<L>& a, const AffineSpaceT<L>& b ) { return a.l == b.l && a.p == b.p; }
template<typename L> __forceinline bool operator !=( const AffineSpaceT<L>& a, const AffineSpaceT<L>& b ) { return a.l != b.l || a.p != b.p; }
////////////////////////////////////////////////////////////////////////////////
/// Select
////////////////////////////////////////////////////////////////////////////////
template<typename L> __forceinline AffineSpaceT<L> select ( const typename L::Vector::Scalar::Bool& s, const AffineSpaceT<L>& t, const AffineSpaceT<L>& f ) {
return AffineSpaceT<L>(select(s,t.l,f.l),select(s,t.p,f.p));
}
////////////////////////////////////////////////////////////////////////////////
// Output Operators
////////////////////////////////////////////////////////////////////////////////
template<typename L> static embree_ostream operator<<(embree_ostream cout, const AffineSpaceT<L>& m) {
return cout << "{ l = " << m.l << ", p = " << m.p << " }";
}
////////////////////////////////////////////////////////////////////////////////
// Template Instantiations
////////////////////////////////////////////////////////////////////////////////
typedef AffineSpaceT<LinearSpace2f> AffineSpace2f;
typedef AffineSpaceT<LinearSpace3f> AffineSpace3f;
typedef AffineSpaceT<LinearSpace3fa> AffineSpace3fa;
typedef AffineSpaceT<LinearSpace3fx> AffineSpace3fx;
typedef AffineSpaceT<LinearSpace3ff> AffineSpace3ff;
typedef AffineSpaceT<Quaternion3f > OrthonormalSpace3f;
template<int N> using AffineSpace3vf = AffineSpaceT<LinearSpace3<Vec3<vfloat<N>>>>;
typedef AffineSpaceT<LinearSpace3<Vec3<vfloat<4>>>> AffineSpace3vf4;
typedef AffineSpaceT<LinearSpace3<Vec3<vfloat<8>>>> AffineSpace3vf8;
typedef AffineSpaceT<LinearSpace3<Vec3<vfloat<16>>>> AffineSpace3vf16;
template<int N> using AffineSpace3vff = AffineSpaceT<LinearSpace3<Vec4<vfloat<N>>>>;
typedef AffineSpaceT<LinearSpace3<Vec4<vfloat<4>>>> AffineSpace3vfa4;
typedef AffineSpaceT<LinearSpace3<Vec4<vfloat<8>>>> AffineSpace3vfa8;
typedef AffineSpaceT<LinearSpace3<Vec4<vfloat<16>>>> AffineSpace3vfa16;
//////////////////////////////////////////////////////////////////////////////
/// Interpolation
//////////////////////////////////////////////////////////////////////////////
template<typename T, typename R>
__forceinline AffineSpaceT<T> lerp(const AffineSpaceT<T>& M0,
const AffineSpaceT<T>& M1,
const R& t)
{
return AffineSpaceT<T>(lerp(M0.l,M1.l,t),lerp(M0.p,M1.p,t));
}
// slerp interprets the 16 floats of the matrix M = D * R * S as components of
// three matrizes (D, R, S) that are interpolated individually.
template<typename T> __forceinline AffineSpaceT<LinearSpace3<Vec3<T>>>
slerp(const AffineSpaceT<LinearSpace3<Vec4<T>>>& M0,
const AffineSpaceT<LinearSpace3<Vec4<T>>>& M1,
const T& t)
{
QuaternionT<T> q0(M0.p.w, M0.l.vx.w, M0.l.vy.w, M0.l.vz.w);
QuaternionT<T> q1(M1.p.w, M1.l.vx.w, M1.l.vy.w, M1.l.vz.w);
QuaternionT<T> q = slerp(q0, q1, t);
AffineSpaceT<LinearSpace3<Vec3<T>>> S = lerp(M0, M1, t);
AffineSpaceT<LinearSpace3<Vec3<T>>> D(one);
D.p.x = S.l.vx.y;
D.p.y = S.l.vx.z;
D.p.z = S.l.vy.z;
S.l.vx.y = 0;
S.l.vx.z = 0;
S.l.vy.z = 0;
AffineSpaceT<LinearSpace3<Vec3<T>>> R = LinearSpace3<Vec3<T>>(q);
return D * R * S;
}
// this is a specialized version for Vec3fa because that does
// not play along nicely with the other templated Vec3/Vec4 types
__forceinline AffineSpace3fa slerp(const AffineSpace3ff& M0,
const AffineSpace3ff& M1,
const float& t)
{
Quaternion3f q0(M0.p.w, M0.l.vx.w, M0.l.vy.w, M0.l.vz.w);
Quaternion3f q1(M1.p.w, M1.l.vx.w, M1.l.vy.w, M1.l.vz.w);
Quaternion3f q = slerp(q0, q1, t);
AffineSpace3fa S = lerp(M0, M1, t);
AffineSpace3fa D(one);
D.p.x = S.l.vx.y;
D.p.y = S.l.vx.z;
D.p.z = S.l.vy.z;
S.l.vx.y = 0;
S.l.vx.z = 0;
S.l.vy.z = 0;
AffineSpace3fa R = LinearSpace3fa(q);
return D * R * S;
}
__forceinline AffineSpace3fa quaternionDecompositionToAffineSpace(const AffineSpace3ff& qd)
{
// compute affine transform from quaternion decomposition
Quaternion3f q(qd.p.w, qd.l.vx.w, qd.l.vy.w, qd.l.vz.w);
AffineSpace3fa M = qd;
AffineSpace3fa D(one);
D.p.x = M.l.vx.y;
D.p.y = M.l.vx.z;
D.p.z = M.l.vy.z;
M.l.vx.y = 0;
M.l.vx.z = 0;
M.l.vy.z = 0;
AffineSpace3fa R = LinearSpace3fa(q);
return D * R * M;
}
__forceinline void quaternionDecomposition(const AffineSpace3ff& qd, Vec3fa& T, Quaternion3f& q, AffineSpace3fa& S)
{
q = Quaternion3f(qd.p.w, qd.l.vx.w, qd.l.vy.w, qd.l.vz.w);
S = qd;
T.x = qd.l.vx.y;
T.y = qd.l.vx.z;
T.z = qd.l.vy.z;
S.l.vx.y = 0;
S.l.vx.z = 0;
S.l.vy.z = 0;
}
__forceinline AffineSpace3fx quaternionDecomposition(Vec3fa const& T, Quaternion3f const& q, AffineSpace3fa const& S)
{
AffineSpace3ff M = S;
M.l.vx.w = q.i;
M.l.vy.w = q.j;
M.l.vz.w = q.k;
M.p.w = q.r;
M.l.vx.y = T.x;
M.l.vx.z = T.y;
M.l.vy.z = T.z;
return M;
}
struct __aligned(16) QuaternionDecomposition
{
float scale_x = 1.f;
float scale_y = 1.f;
float scale_z = 1.f;
float skew_xy = 0.f;
float skew_xz = 0.f;
float skew_yz = 0.f;
float shift_x = 0.f;
float shift_y = 0.f;
float shift_z = 0.f;
float quaternion_r = 1.f;
float quaternion_i = 0.f;
float quaternion_j = 0.f;
float quaternion_k = 0.f;
float translation_x = 0.f;
float translation_y = 0.f;
float translation_z = 0.f;
};
__forceinline QuaternionDecomposition quaternionDecomposition(AffineSpace3ff const& M)
{
QuaternionDecomposition qd;
qd.scale_x = M.l.vx.x;
qd.scale_y = M.l.vy.y;
qd.scale_z = M.l.vz.z;
qd.shift_x = M.p.x;
qd.shift_y = M.p.y;
qd.shift_z = M.p.z;
qd.translation_x = M.l.vx.y;
qd.translation_y = M.l.vx.z;
qd.translation_z = M.l.vy.z;
qd.skew_xy = M.l.vy.x;
qd.skew_xz = M.l.vz.x;
qd.skew_yz = M.l.vz.y;
qd.quaternion_r = M.p.w;
qd.quaternion_i = M.l.vx.w;
qd.quaternion_j = M.l.vy.w;
qd.quaternion_k = M.l.vz.w;
return qd;
}
////////////////////////////////////////////////////////////////////////////////
/*
* ! Template Specialization for 2D: return matrix for rotation around point
* (rotation around arbitrarty vector is not meaningful in 2D)
*/
template<> __forceinline
AffineSpace2f AffineSpace2f::rotate(const Vec2f& p, const float& r) {
return translate(+p)*AffineSpace2f(LinearSpace2f::rotate(r))*translate(-p);
}
////////////////////////////////////////////////////////////////////////////////
// Similarity Transform
//
// checks, if M is a similarity transformation, i.e if there exists a factor D
// such that for all x,y: distance(Mx, My) = D * distance(x, y)
////////////////////////////////////////////////////////////////////////////////
__forceinline bool similarityTransform(const AffineSpace3fa& M, float* D)
{
if (D) *D = 0.f;
if (abs(dot(M.l.vx, M.l.vy)) > 1e-5f) return false;
if (abs(dot(M.l.vx, M.l.vz)) > 1e-5f) return false;
if (abs(dot(M.l.vy, M.l.vz)) > 1e-5f) return false;
const float D_x = dot(M.l.vx, M.l.vx);
const float D_y = dot(M.l.vy, M.l.vy);
const float D_z = dot(M.l.vz, M.l.vz);
if (abs(D_x - D_y) > 1e-5f ||
abs(D_x - D_z) > 1e-5f ||
abs(D_y - D_z) > 1e-5f)
return false;
if (D) *D = sqrtf(D_x);
return true;
}
__forceinline void AffineSpace3fa_store_unaligned(const AffineSpace3fa &source, AffineSpace3fa* ptr)
{
Vec3fa::storeu(&ptr->l.vx, source.l.vx);
Vec3fa::storeu(&ptr->l.vy, source.l.vy);
Vec3fa::storeu(&ptr->l.vz, source.l.vz);
Vec3fa::storeu(&ptr->p, source.p);
}
__forceinline AffineSpace3fa AffineSpace3fa_load_unaligned(AffineSpace3fa* ptr)
{
AffineSpace3fa space;
space.l.vx = Vec3fa::loadu(&ptr->l.vx);
space.l.vy = Vec3fa::loadu(&ptr->l.vy);
space.l.vz = Vec3fa::loadu(&ptr->l.vz);
space.p = Vec3fa::loadu(&ptr->p);
return space;
}
#undef VectorT
#undef ScalarT
}
|
c37846a3e13d96bad92d60b363b4d3abb4e3d540
|
38ac53bd8db9f340cb2104abd6dade38db7f4913
|
/newbase/NFmiDataModifierBoolean.cpp
|
4fbbe37fec38c12ba833c89c9d93d802103e6d64
|
[
"MIT"
] |
permissive
|
fmidev/smartmet-library-newbase
|
ac56d2fb6bad5378c405dbba84f010de7303f148
|
b26e2052bac7c114a1d41068fca48828bad4ad8f
|
refs/heads/master
| 2023-09-06T05:46:05.215973
| 2023-08-30T07:05:41
| 2023-08-30T07:05:41
| 75,052,919
| 0
| 2
|
MIT
| 2021-06-16T12:15:06
| 2016-11-29T07:00:13
|
C++
|
UTF-8
|
C++
| false
| false
| 4,201
|
cpp
|
NFmiDataModifierBoolean.cpp
|
// ======================================================================
/*!
* \file NFmiDataModifierBoolean.cpp
* \brief Implementation of class NFmiDataModifierBoolean
*/
// ======================================================================
/*!
* \class NFmiDataModifierBoolean
*
* Undocumented
*
*/
// ======================================================================
#include "NFmiDataModifierBoolean.h"
#include <iostream>
// ----------------------------------------------------------------------
/*!
* Destructor
*/
// ----------------------------------------------------------------------
NFmiDataModifierBoolean::~NFmiDataModifierBoolean() = default;
// ----------------------------------------------------------------------
/*!
* Constructor
*
* \param theCondition Undocumented
* \param theFirstValue Undocumented
* \param theSecondValue Undocumented
*/
// ----------------------------------------------------------------------
NFmiDataModifierBoolean::NFmiDataModifierBoolean(FmiModifierBoolOperations theCondition,
NFmiDataModifier* theFirstValue,
NFmiDataModifier* theSecondValue)
: itsSecondValue(theSecondValue),
itsFirstValue(theFirstValue),
itsCondition(theCondition),
itsBooleanValue()
{
itsExpressionType = "boolean";
}
// ----------------------------------------------------------------------
/*!
* Automatic conversion to a boolean value.
*
* \bug The operator has no defined return type
*/
// ----------------------------------------------------------------------
NFmiDataModifierBoolean::operator bool()
{
return BooleanValue();
}
// ----------------------------------------------------------------------
/*!
* \return Undocumented
* \todo Remove the C-style casts
*/
// ----------------------------------------------------------------------
bool NFmiDataModifierBoolean::BooleanValue()
{
if (itsFirstValue && itsSecondValue)
{
switch (itsCondition)
{
case kFmiModifierValueLessThan:
return static_cast<double>(*itsFirstValue) < static_cast<double>(*itsSecondValue);
case kFmiModifierValueGreaterThan:
return static_cast<double>(*itsFirstValue) > static_cast<double>(*itsSecondValue);
case kFmiModifierValueLessOrEqualThan:
return static_cast<double>(*itsFirstValue) <= static_cast<double>(*itsSecondValue);
case kFmiModifierValueGreaterOrEqualThan:
return static_cast<double>(*itsFirstValue) >= static_cast<double>(*itsSecondValue);
case kFmiModifierValueIsEqual:
return static_cast<double>(*itsFirstValue) == static_cast<double>(*itsSecondValue);
}
}
return false;
}
// ----------------------------------------------------------------------
/*!
* Write the object to the given output stream
*
* \param file The output stream to write to
* \return The output stream written to
*/
// ----------------------------------------------------------------------
std::ostream& NFmiDataModifierBoolean::WriteOperator(std::ostream& file) const
{
file << std::endl << "<operator type='boolean'>";
switch (itsCondition)
{
case kFmiModifierValueLessThan:
file << "LessThan";
break;
case kFmiModifierValueGreaterThan:
file << "GreaterThan";
break;
case kFmiModifierValueLessOrEqualThan:
file << "LessOrEqualThan";
break;
case kFmiModifierValueGreaterOrEqualThan:
file << "GreaterOrEqualThan";
break;
case kFmiModifierValueIsEqual:
file << "IsEqual";
break;
default:
file << " Boolean ? ";
}
file << "</operator>";
return file;
}
// ----------------------------------------------------------------------
/*!
* \param file The output stream to write to
* \return The output stream written to
*/
// ----------------------------------------------------------------------
std::ostream& NFmiDataModifierBoolean::WriteExpressionBody(std::ostream& file)
{
itsFirstValue->Write(file);
WriteOperator(file);
itsSecondValue->Write(file);
return file;
}
// ======================================================================
|
4f7bbfb8eaaddebaaf62c59413307230553b7b14
|
ff4d4757d9c811510c8c755901ef4d4c361cd731
|
/Tools/ADsdk/ADbase/ADcontrol.cpp
|
d2e956cae9c01ed2421d3def521d13c0b9749e08
|
[
"LicenseRef-scancode-public-domain"
] |
permissive
|
ApocalypseDesign/ad_public
|
4b6a623885808625b54b2888e79b7e2e1f834ac3
|
4c6a2759395a3ad36e072ffed79a7d9b48da219c
|
refs/heads/master
| 2020-06-01T02:12:11.640297
| 2013-05-31T19:53:30
| 2013-05-31T19:53:30
| 9,555,519
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 25,277
|
cpp
|
ADcontrol.cpp
|
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include "ADcontrol.h"
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "ADbasic.h"
#include "ADbase.h"
#include "Resource.h"
#define PI 3.14159265358979f
extern HANDLE hmodulo;
// per uso interno delle editbox:
int CT_keynum,CT_keypos;
void *CT_data;
// keyframer
key::key()
{
pos=0;
data=NULL;
next=NULL;
}
keyList::keyList()
{
key_size=0;
key_count=0;
firstkey=NULL;
}
keyList::keyList(int keysize)
{
key_size=keysize;
key_count=0;
firstkey=NULL;
}
int keyList::keyCount()
{
return key_count;
}
int keyList::keySize()
{
return key_size;
}
void keyList::keyClear()
{
key *tmpkey;
key *tmpnext;
tmpkey=firstkey;
while (tmpkey!=NULL)
{
tmpnext=tmpkey->next;
delete [] tmpkey->data;
delete [] tmpkey;
tmpkey=tmpnext;
}
key_count=0;
}
int keyList::keyPos(int num)
{
int i;
key *tmpkey;
if ((num>=0) && (num<key_count))
{
tmpkey=firstkey;
for (i=0;i<num;i++)
tmpkey=tmpkey->next;
return tmpkey->pos;
}
return 0;
}
int keyList::keyNum(int pos)
{
int i;
key *tmpkey;
if (key_count==0) return -1;
tmpkey=firstkey;
for (i=1;i<key_count;i++)
{
if (tmpkey->pos==pos) return i-1;
tmpkey=tmpkey->next;
}
return -1;
}
int keyList::keyBefore(float pos)
{
int i;
key *tmpkey;
if (key_count==0) return -1;
tmpkey=firstkey;
for (i=0;i<key_count;i++)
{
if (tmpkey->pos>pos) return i-1;
tmpkey=tmpkey->next;
}
return key_count-1;
}
int keyList::keyAfter(float pos)
{
int i;
key *tmpkey;
if (key_count==0) return -1;
tmpkey=firstkey;
for (i=0;i<key_count;i++)
{
if (pos<tmpkey->pos) return i;
tmpkey=tmpkey->next;
}
return -1;
}
void keyList::keyAdd(int pos, void *data)
{
key *tmpkey=new key;
tmpkey->pos=pos;
tmpkey->next=firstkey;
tmpkey->data=data;
firstkey=tmpkey;
key_count++;
keySort();
}
void keyList::keyMove(int num,int newpos)
{
int i;
key *tmpkey;
if ((num<0)||(num>=key_count)) return;
tmpkey=firstkey;
for (i=0;i<num;i++) tmpkey=tmpkey->next;
tmpkey->pos=newpos;
keySort();
}
void keyList::keyDelete(int num)
{
int i;
key *tmpkey;
key *tmp2;
if (num==0)
{
tmp2=firstkey;
firstkey=firstkey->next;
delete [] tmp2->data;
delete [] tmp2;
}
else
{
tmpkey=firstkey;
for (i=0;i<num-1;i++) tmpkey=tmpkey->next;
tmp2=tmpkey->next;
tmpkey->next=tmpkey->next->next;
delete [] tmp2->data;
delete [] tmp2;
}
key_count--;
keySort();
}
void *keyList::keyGetData(int num)
{
int i;
key *tmpkey;
char *tmpdata=new char[key_size];
tmpkey=firstkey;
for (i=1;i<=num;i++) tmpkey=tmpkey->next;
memcpy(tmpdata,tmpkey->data,key_size);
return tmpdata;
}
void keyList::keySetData(int num,void *newdata)
{
int i;
key *tmpkey;
tmpkey=firstkey;
for (i=1;i<=num;i++) tmpkey=tmpkey->next;
memcpy(tmpkey->data,newdata,key_size);
}
void keyList::keySort() // bubblesort molto suxante, ottimizzare!!!
{
key *tmp1;
key *tmp2;
key tmp;
bool scambio=true;
if (key_count<=1) return;
while (scambio)
{
tmp1=firstkey;
tmp2=tmp1->next;
scambio=false;
while (tmp2!=NULL)
{
if (tmp1->pos>tmp2->pos)
{
tmp.pos=tmp1->pos;
tmp.data=tmp1->data;
tmp1->pos=tmp2->pos;
tmp1->data=tmp2->data;
tmp2->pos=tmp.pos;
tmp2->data=tmp.data;
scambio=true;
}
tmp1=tmp2;
tmp2=tmp2->next;
}
}
}
// controller
controller::controller()
{
baseClass="controller";
className="controller";
keys=new keyList(0);
}
void *controller::create()
{ return new controller; }
void controller::editKey(int keynum, HWND mainWin)
{ }
void *controller::createDefaultKey()
{
return NULL;
}
void controller::loadFromMemory(void *data, int size)
{
int keysize=keys->keySize();
int num,i;
char *dataoffs=(char *)data;
if (size%(keysize+4)!=0) debug_warning(0,"Controller can't load data (data size error)");
num=size/(keysize+4);
keys->keyClear();
for (i=0;i<num;i++)
{
char *tmpdata=new char[keysize];
memcpy(tmpdata,dataoffs+4,keysize);
keys->keyAdd(*(int *)(dataoffs),tmpdata);
dataoffs+=keysize+4;
}
}
void controller::saveToMemory(void **data, int *size)
{
int keysize=keys->keySize(); // anche la pos va salvata
int num=keys->keyCount();
saveddata=new char[num*(keysize+4)];
char *dataoffs=saveddata;
char *datasrc;
int i,j;
for (i=0;i<num;i++)
{
*(int *)(dataoffs)=keys->keyPos(i);
dataoffs+=4;
datasrc=(char *)keys->keyGetData(i);
for (j=0;j<keysize;j++) dataoffs[j]=datasrc[j];
dataoffs+=keysize;
}
*data=saveddata;
*size=num*(keysize+4);
}
void controller::freeSavedMemory()
{
delete [] saveddata;
}
// ctFloat
ctFloat::ctFloat()
{ className="ctFloat"; baseClass="ctFloat"; }
void *ctFloat::create()
{ return new ctFloat; }
int FAR PASCAL
DialogFloat(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
char *strbuffer;
switch (message)
{
case WM_INITDIALOG:
strbuffer=new char[20];
strbuffer=gcvt((double)(*(float *)(CT_data)),3,strbuffer);
SetDlgItemText(hWnd,IDC_EDIT1,strbuffer);
SetDlgItemInt(hWnd,IDC_STATICN,CT_keynum,false);
SetDlgItemInt(hWnd,IDC_STATICM,CT_keypos,false);
delete [] strbuffer;
SetFocus(GetDlgItem(hWnd,IDC_EDIT1));
PostMessage(GetDlgItem(hWnd,IDC_EDIT1),EM_SETSEL,0,10);
return FALSE;
case WM_COMMAND:
if (LOWORD(wParam) == IDOK)
{
strbuffer=new char[20];
GetDlgItemText(hWnd,IDC_EDIT1,strbuffer,20);
float *sux=(float *)CT_data;
*sux=(float)atof(strbuffer);
delete [] strbuffer;
EndDialog(hWnd, LOWORD(wParam));
return TRUE;
}
if (LOWORD(wParam) == IDCANCEL)
{
EndDialog(hWnd, LOWORD(wParam));
return TRUE;
}
break;
}
return FALSE;
}
void ctFloat::editKey(int keynum, HWND mainWin)
{
int result;
CT_keynum=keynum;
CT_keypos=keys->keyPos(keynum);
CT_data=keys->keyGetData(keynum);
result=DialogBox((HINSTANCE)hmodulo,MAKEINTRESOURCE(IDD_DIALOGFLOAT),mainWin,&DialogFloat);
if (LOWORD(result) == IDOK)
{
keys->keySetData(keynum,CT_data);
}
delete [] CT_data;
}
float ctFloat::getValue(float pos)
{ return 0.0f; }
// ctInt
ctInt::ctInt()
{ className="ctInt"; baseClass="ctInt"; }
void *ctInt::create()
{ return new ctInt; }
int FAR PASCAL
DialogInt(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG:
SetDlgItemInt(hWnd,IDC_EDIT1,*(int *)(CT_data),false);
SetDlgItemInt(hWnd,IDC_STATICN,CT_keynum,false);
SetDlgItemInt(hWnd,IDC_STATICM,CT_keypos,false);
SetFocus(GetDlgItem(hWnd,IDC_EDIT1));
PostMessage(GetDlgItem(hWnd,IDC_EDIT1),EM_SETSEL,0,10);
return FALSE;
case WM_COMMAND:
if (LOWORD(wParam) == IDOK)
{
int transl;
*(int *)(CT_data)=GetDlgItemInt(hWnd,IDC_EDIT1,&transl,true);
EndDialog(hWnd, LOWORD(wParam));
return TRUE;
}
if (LOWORD(wParam) == IDCANCEL)
{
EndDialog(hWnd, LOWORD(wParam));
return TRUE;
}
break;
}
return FALSE;
}
void ctInt::editKey(int keynum, HWND mainWin)
{
int result;
CT_keynum=keynum;
CT_keypos=keys->keyPos(keynum);
CT_data=keys->keyGetData(keynum);
result=DialogBox((HINSTANCE)hmodulo,MAKEINTRESOURCE(IDD_DIALOGINT),mainWin,&DialogInt);
if (LOWORD(result) == IDOK)
{
keys->keySetData(keynum,CT_data);
}
delete [] CT_data;
}
int ctInt::getValue(float pos)
{ return 0; };
// ctBool
ctBool::ctBool()
{ className="ctBool"; baseClass="ctBool"; }
void *ctBool::create()
{ return new ctBool; }
int FAR PASCAL
DialogBool(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
const char *strTrue="True";
const char *strFalse="False";
switch (message)
{
case WM_INITDIALOG:
SendDlgItemMessage(hWnd,IDC_COMBO1,CB_ADDSTRING,0,(LPARAM)strTrue);
SendDlgItemMessage(hWnd,IDC_COMBO1,CB_ADDSTRING,0,(LPARAM)strFalse);
if (*(bool *)(CT_data)==true)
SendDlgItemMessage(hWnd, IDC_COMBO1, CB_SETCURSEL, 0, (LPARAM)0);
else SendDlgItemMessage(hWnd, IDC_COMBO1, CB_SETCURSEL, 1, (LPARAM)0);
SetDlgItemInt(hWnd,IDC_STATICN,CT_keynum,false);
SetDlgItemInt(hWnd,IDC_STATICM,CT_keypos,false);
SetFocus(GetDlgItem(hWnd,IDC_COMBO1));
return FALSE;
case WM_COMMAND:
if (LOWORD(wParam) == IDOK)
{
if (SendDlgItemMessage(hWnd, IDC_COMBO1, CB_GETCURSEL, 0, (LPARAM)0)==0)
*(bool *)(CT_data)=true;
else *(bool *)(CT_data)=false;
EndDialog(hWnd, LOWORD(wParam));
return TRUE;
}
if (LOWORD(wParam) == IDCANCEL)
{
EndDialog(hWnd, LOWORD(wParam));
return TRUE;
}
break;
}
return FALSE;
}
void ctBool::editKey(int keynum, HWND mainWin)
{
int result;
CT_keynum=keynum;
CT_keypos=keys->keyPos(keynum);
CT_data=keys->keyGetData(keynum);
result=DialogBox((HINSTANCE)hmodulo,MAKEINTRESOURCE(IDD_DIALOGBOOL),mainWin,&DialogBool);
if (LOWORD(result) == IDOK)
{
keys->keySetData(keynum,CT_data);
}
delete [] CT_data;
}
bool ctBool::getValue(float pos)
{ return 0; }
// ctText
/*
ctText::ctText()
{ className="ctText"; baseClass="ctText"; }
void *ctText::create()
{ return new ctText; }
char *ctText::getValue(float pos)
{ return ""; }
*/
// ctVector2D
ctVector2D::ctVector2D()
{ className="ctVector2D"; baseClass="ctVector2D"; }
void *ctVector2D::create()
{ return new ctVector2D; }
int FAR PASCAL
DialogVector2D(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
char *strbuffer;
Vector2D *vtemp;
switch (message)
{
case WM_INITDIALOG:
strbuffer=new char[20];
vtemp=(Vector2D *)(CT_data);
strbuffer=gcvt((double)(vtemp->x),3,strbuffer);
SetDlgItemText(hWnd,IDC_EDIT1,strbuffer);
strbuffer=gcvt((double)(vtemp->y),3,strbuffer);
SetDlgItemText(hWnd,IDC_EDIT2,strbuffer);
SetDlgItemInt(hWnd,IDC_STATICN,CT_keynum,false);
SetDlgItemInt(hWnd,IDC_STATICM,CT_keypos,false);
delete [] strbuffer;
SetFocus(GetDlgItem(hWnd,IDC_EDIT1));
PostMessage(GetDlgItem(hWnd,IDC_EDIT1),EM_SETSEL,0,10);
return FALSE;
case WM_COMMAND:
if (LOWORD(wParam) == IDOK)
{
strbuffer=new char[20];
GetDlgItemText(hWnd,IDC_EDIT1,strbuffer,20);
vtemp=(Vector2D *)CT_data;
vtemp->x=(float)atof(strbuffer);
GetDlgItemText(hWnd,IDC_EDIT2,strbuffer,20);
vtemp->y=(float)atof(strbuffer);
delete [] strbuffer;
EndDialog(hWnd, LOWORD(wParam));
return TRUE;
}
if (LOWORD(wParam) == IDCANCEL)
{
EndDialog(hWnd, LOWORD(wParam));
return TRUE;
}
break;
}
return FALSE;
}
void ctVector2D::editKey(int keynum, HWND mainWin)
{
int result;
CT_keynum=keynum;
CT_keypos=keys->keyPos(keynum);
CT_data=keys->keyGetData(keynum);
result=DialogBox((HINSTANCE)hmodulo,MAKEINTRESOURCE(IDD_DIALOGVECTOR2D),mainWin,&DialogVector2D);
if (LOWORD(result) == IDOK)
{
keys->keySetData(keynum,CT_data);
}
delete [] CT_data;
}
Vector2D ctVector2D::getValue(float pos)
{
Vector2D vtemp;
vtemp.x=0.0f;
vtemp.y=0.0f;
return vtemp;
}
// ctFloatConst
ctFloatConst::ctFloatConst()
{
className="ctFloatConst";
delete [] keys;
keys=new keyList(sizeof(float));
//float *pippo=new float;
//*pippo=1.0f;
//keys->keyAdd(0,pippo);
}
void *ctFloatConst::create()
{ return new ctFloatConst; }
void *ctFloatConst::createDefaultKey()
{
float *temp=new float;
*temp=0.0f;//(float)(rand())/(float)(RAND_MAX);
return temp;
}
float ctFloatConst::getValue(float pos)
{
int num=keys->keyCount();
int after,before;
if (num==0) return 0.0f;
else if (num==1) return *(float *)(keys->keyGetData(0));
before=keys->keyBefore(pos*KEYNUM);
after=keys->keyAfter(pos*KEYNUM);
if (before!=-1) return *(float *)(keys->keyGetData(before));
if (after!=-1) return *(float *)(keys->keyGetData(after));
return 0.0f;
}
// ctIntConst
ctIntConst::ctIntConst()
{
className="ctIntConst";
delete [] keys;
keys=new keyList(sizeof(int));
}
void *ctIntConst::create()
{ return new ctIntConst; }
void *ctIntConst::createDefaultKey()
{
int *temp=new int;
*temp=0;
return temp;
}
int ctIntConst::getValue(float pos)
{
int num=keys->keyCount();
int after,before;
if (num==0) return 0;
if (num==1) return *(int *)(keys->keyGetData(0));
before=keys->keyBefore(pos*KEYNUM);
after=keys->keyAfter(pos*KEYNUM);
if (before!=-1) return *(int *)(keys->keyGetData(before));
if (after!=-1) return *(int *)(keys->keyGetData(after));
return 0;
}
// ctBoolConst
ctBoolConst::ctBoolConst()
{
className="ctBoolConst";
delete [] keys;
keys=new keyList(sizeof(bool));
}
void *ctBoolConst::create()
{ return new ctBoolConst; }
void *ctBoolConst::createDefaultKey()
{
bool *temp=new bool;
*temp=true;
return temp;
}
bool ctBoolConst::getValue(float pos)
{
int num=keys->keyCount();
int after,before;
if (num==0) return true;
if (num==1) return *(bool *)(keys->keyGetData(0));
before=keys->keyBefore(pos*KEYNUM);
after=keys->keyAfter(pos*KEYNUM);
if (before!=-1) return *(bool *)(keys->keyGetData(before));
if (after!=-1) return *(bool *)(keys->keyGetData(after));
return true;
}
// ctTextConst
/*
ctTextConst::ctTextConst()
{
className="ctTextConst";
delete [] keys;
keys=new keyList(sizeof(char *));
}
void *ctTextConst::create()
{ return new ctTextConst; }
void *ctTextConst::createDefaultKey()
{
//todo
return NULL;
}
char *ctTextConst::getValue(float pos)
{
int num=keys->keyCount();
int after,before;
static char deftext[16]="Default text";
if (num==0) return deftext;
if (num==1) return (char *)(keys->keyGetData(0));
before=keys->keyBefore(pos*KEYNUM);
after=keys->keyAfter(pos*KEYNUM);
if (before!=-1) return (char *)(keys->keyGetData(before));
if (after!=-1) return (char *)(keys->keyGetData(after));
return deftext;
}
*/
// ctVector2DConst
ctVector2DConst::ctVector2DConst()
{
className="ctVector2DConst";
delete [] keys;
keys=new keyList(sizeof(Vector2D));
}
void *ctVector2DConst::create()
{ return new ctVector2DConst; }
void *ctVector2DConst::createDefaultKey()
{
Vector2D *temp=new Vector2D;
temp->x=0.0f;
temp->y=0.0f;
return temp;
}
Vector2D ctVector2DConst::getValue(float pos)
{
int num=keys->keyCount();
int after,before;
static Vector2D defvect;
defvect.x=0.0f;
defvect.y=0.0f;
if (num==0) return defvect;
if (num==1) return *(Vector2D *)(keys->keyGetData(0));
before=keys->keyBefore(pos*KEYNUM);
after=keys->keyAfter(pos*KEYNUM);
if (before!=-1) return *(Vector2D *)(keys->keyGetData(before));
if (after!=-1) return *(Vector2D *)(keys->keyGetData(after));
return defvect;
}
//LINEAR
ctFloatLinear::ctFloatLinear()
{
className="ctFloatLinear";
delete [] keys;
keys=new keyList(sizeof(float));
}
void *ctFloatLinear::create()
{ return new ctFloatLinear; }
float ctFloatLinear::getValue(float pos)
{
int num=keys->keyCount();
int after,before;
if (num==0) return 0.0f;
else if (num==1) return *(float *)(keys->keyGetData(0));
before=keys->keyBefore(pos*KEYNUM);
after=keys->keyAfter(pos*KEYNUM);
if ((before!=-1) && (after!=-1))
{
float divid=float(keys->keyPos(after)-keys->keyPos(before));
if (divid==0) divid=0.00001f;
float perc=(pos*1000.0f-keys->keyPos(before)) /divid;
return (*(float *)(keys->keyGetData(before)))*(1.0f-perc)+
(*(float *)(keys->keyGetData(after)))*perc;
}
if (before!=-1) return *(float *)(keys->keyGetData(before));
if (after!=-1) return *(float *)(keys->keyGetData(after));
return 0.0f;
}
ctIntLinear::ctIntLinear()
{
className="ctIntLinear";
delete [] keys;
keys=new keyList(sizeof(int));
}
void *ctIntLinear::create()
{ return new ctIntLinear; }
int ctIntLinear::getValue(float pos)
{
int num=keys->keyCount();
int after,before;
if (num==0) return 0;
else if (num==1) return *(int *)(keys->keyGetData(0));
before=keys->keyBefore(pos*KEYNUM);
after=keys->keyAfter(pos*KEYNUM);
if ((before!=-1) && (after!=-1))
{
float divid=float(keys->keyPos(after)-keys->keyPos(before));
if (divid==0) divid=0.00001f;
float perc=(pos*1000.0f-keys->keyPos(before)) /divid;
return (int)((float)(*(int *)(keys->keyGetData(before)))*(1.0f-perc)+
(float)(*(int *)(keys->keyGetData(after)))*perc+0.5f);
}
if (before!=-1) return *(int *)(keys->keyGetData(before));
if (after!=-1) return *(int *)(keys->keyGetData(after));
return 0;
}
ctVector2DLinear::ctVector2DLinear()
{
className="ctVector2DLinear";
delete [] keys;
keys=new keyList(sizeof(Vector2D));
}
void *ctVector2DLinear::create()
{ return new ctVector2DLinear; }
Vector2D ctVector2DLinear::getValue(float pos)
{
int num=keys->keyCount();
int after,before;
Vector2D vtemp,*v1,*v2;
vtemp.x=0.0f;
vtemp.y=0.0f;
if (num==0) return vtemp;
else if (num==1) return *(Vector2D *)(keys->keyGetData(0));
before=keys->keyBefore(pos*KEYNUM);
after=keys->keyAfter(pos*KEYNUM);
if ((before!=-1) && (after!=-1))
{
float divid=float(keys->keyPos(after)-keys->keyPos(before));
if (divid==0) divid=0.00001f;
float perc=(pos*1000.0f-keys->keyPos(before)) /divid;
v1=(Vector2D *)(keys->keyGetData(before));
v2=(Vector2D *)(keys->keyGetData(after));
vtemp.x= v1->x*(1.0f-perc) + v2->x*perc;
vtemp.y= v1->y*(1.0f-perc) + v2->y*perc;
return vtemp;
}
if (before!=-1) return *(Vector2D *)(keys->keyGetData(before));
if (after!=-1) return *(Vector2D *)(keys->keyGetData(after));
return vtemp;
}
/*
//**** Controller complessi ****
//ctFloatTCB
ctFloatTCB::ctFloatTCB()
{
className="ctFloatTCB";
baseClass="ctFloat";
numkeys=0;
mykeys=new FloatTCB_Key_ptr[MAXKEY];
for (int h=0; h<MAXKEY; h++) mykeys[h]=(FloatTCB_Key_ptr)NULL;
add_key( 0,0.0f ,1.0f,1.0f,0.0f);
add_key(100,0.2f ,1.0f,1.0f,0.0f);
add_key(200,0.0f ,1.0f,1.0f,0.0f);
add_key(300,0.4f ,1.0f,1.0f,0.0f);
add_key(400,0.0f ,1.0f,1.0f,0.0f);
add_key(500,0.6f ,1.0f,1.0f,0.0f);
add_key(600,0.0f ,1.0f,1.0f,0.0f);
add_key(700,0.8f ,1.0f,1.0f,0.0f);
add_key(800,0.0f ,1.0f,1.0f,0.0f);
add_key(1000,1.0f ,1.0f,1.0f,0.0f);
}
void *ctFloatTCB::create()
{ return new ctFloatTCB; }
float ctFloatTCB::spline_ease (float t, float easefrom, float easeto)
{
float k, s;
s=easeto+easefrom;
if (s==0) return(t);
if (s>1.0)
{
easeto=easeto/s;
easefrom=easefrom/s;
}
k=1.0f/(2.0f-easeto-easefrom);
if (t<easefrom) return((k/easefrom)*t*t);
else
{
if (t<(1.0-easeto)) return(k*(2.0f*t-easefrom));
else
{
t=1.0f-t;
return(1.0f-(k/easeto)*t*t);
}
}
}
void ctFloatTCB::sort_keys(void)
{
FloatTCB_Key_ptr p;
int i, j;
for (i=0; i<numkeys-1; i++)
{
for (j=i+1; j<numkeys; j++)
{
if (mykeys[i]->posintrack > mykeys[j]->posintrack)
{
p=mykeys[i];
mykeys[i]=mykeys[j];
mykeys[j]=p;
}
}
}
}
void ctFloatTCB::precalc_derivates(void)
{
int j, i2, i1, i0;
float c1, c2, csi, cso, k, o;
if (numkeys<=1) return;
if (numkeys==2)
{
c1=1.0f-mykeys[0]->tension;
mykeys[0]->outcomtg=c1*(mykeys[1]->data-mykeys[0]->data);
c2=1.0f-mykeys[1]->tension;
mykeys[1]->incomtg=c1*(mykeys[1]->data-mykeys[0]->data);
}
else
// caso di 3 o piu' key
for (j=0; j<numkeys; j++)
{
// caso della prima key
if (j==0)
{
i2=j+2;
i1=j+1;
i0=j;
csi=(float)mykeys[i2]->posintrack-mykeys[i0]->posintrack;
cso=(float)mykeys[i1]->posintrack-mykeys[i0]->posintrack;
k=mykeys[i2]->data - mykeys[i0]->data;
o=mykeys[i1]->data - mykeys[i0]->data;
k*=-cso/(2.0f*csi);
o*=3.0f/2.0f;
mykeys[i0]->outcomtg=o+k;
mykeys[i0]->outcomtg*=(1.0f-mykeys[i0]->tension);
}
else
{
// caso dell'ultima key
if (j==numkeys-1)
{
i2=j-2;
i1=j-1;
i0=j;
csi=(float)mykeys[i0]->posintrack-mykeys[i2]->posintrack;
cso=(float)mykeys[i0]->posintrack-mykeys[i1]->posintrack;
k=mykeys[i0]->data - mykeys[i2]->data;
o=mykeys[i0]->data - mykeys[i1]->data;
k*=-cso/(2.0f*csi);
o*=3.0f/2.0f;
mykeys[i0]->incomtg=o+k;
mykeys[i0]->incomtg*=(1.0f-mykeys[i0]->tension);
}
else
// caso di una key intermezza
{
i2=j+1;
i1=j;
i0=j-1;
csi=2.0f*(mykeys[j+1]->posintrack-mykeys[j]->posintrack)/(mykeys[j+1]->posintrack-mykeys[j-1]->posintrack);
cso=2.0f*(mykeys[j]->posintrack-mykeys[j-1]->posintrack)/(mykeys[j+1]->posintrack-mykeys[j-1]->posintrack);
// CALCOLO TANGENTE OUTCOMING
c1=cso*(1.0f-mykeys[j]->tension)*
(1.0f-mykeys[j]->continuity)*
(1.0f-mykeys[j]->bias)/2.0f;
c2=cso*(1.0f-mykeys[j]->tension)*
(1.0f+mykeys[j]->continuity)*
(1.0f+mykeys[j]->bias)/2.0f;
mykeys[j]->outcomtg=c1*(mykeys[i2]->data-mykeys[i1]->data) +
c2*(mykeys[i1]->data-mykeys[i0]->data);
// CALCOLO TANGENTE INCOMING
c1=csi*(1.0f-mykeys[j]->tension)*
(1.0f+mykeys[j]->continuity)*
(1.0f-mykeys[j]->bias)/2.0f;
c2=csi*(1.0f-mykeys[j]->tension)*
(1.0f-mykeys[j]->continuity)*
(1.0f+mykeys[j]->bias)/2.0f;
mykeys[j]->incomtg=c1*(mykeys[i2]->data-mykeys[i1]->data) +
c2*(mykeys[i1]->data-mykeys[i0]->data);
}
}
}
}
void ctFloatTCB::loadFromMemory(void *data, int size)
{
int i;
FloatTCB_Key_ptr import=(FloatTCB_Key_ptr)data;
for (i=0;i<numkeys;i++) delete mykeys[i];
numkeys=size/sizeof(FloatTCB_Key);
for (i=0;i<numkeys;i++)
{
mykeys[i]=(FloatTCB_Key_ptr)new FloatTCB_Key;
*mykeys[i]=import[i];
}
sort_keys();
precalc_derivates();
}
void ctFloatTCB::saveToMemory(void **data, int *size)
{
int i;
export=new FloatTCB_Key[numkeys];
for (i=0;i<numkeys;i++) export[i]=*mykeys[i];
*data=export;
*size=sizeof(FloatTCB_Key)*numkeys;
}
void ctFloatTCB::add_key (int pos, float v, float t, float c, float b, float et, float ef)
{
if (numkeys>=MAXKEY) return;
mykeys[numkeys] = (FloatTCB_Key_ptr)new FloatTCB_Key;
mykeys[numkeys]->posintrack=pos;
mykeys[numkeys]->data=v;
mykeys[numkeys]->tension=t;
mykeys[numkeys]->continuity=c;
mykeys[numkeys]->bias=b;
mykeys[numkeys]->easefrom=ef;
mykeys[numkeys]->easeto=et;
numkeys++;
sort_keys();
precalc_derivates();
}
void ctFloatTCB::add_key (int pos, float v, float t, float c, float b)
{
if (numkeys>=MAXKEY) return;
mykeys[numkeys] = (FloatTCB_Key_ptr)new FloatTCB_Key;
mykeys[numkeys]->posintrack=pos;
mykeys[numkeys]->data=v;
mykeys[numkeys]->tension=t;
mykeys[numkeys]->continuity=c;
mykeys[numkeys]->bias=b;
mykeys[numkeys]->easefrom=0;
mykeys[numkeys]->easeto=0;
numkeys++;
sort_keys();
precalc_derivates();
}
void ctFloatTCB::add_key (int pos, float v)
{
if (numkeys>=MAXKEY) return;
mykeys[numkeys] = (FloatTCB_Key_ptr)new FloatTCB_Key;
mykeys[numkeys]->posintrack=pos;
mykeys[numkeys]->data=v;
mykeys[numkeys]->tension=0;
mykeys[numkeys]->continuity=0;
mykeys[numkeys]->bias=0;
mykeys[numkeys]->easefrom=0;
mykeys[numkeys]->easeto=0;
numkeys++;
sort_keys();
precalc_derivates();
}
void ctFloatTCB::update_key (int witch, int newpos, float newv, float newt, float newc,
float newb, float newet, float newef)
{
if (witch>=MAXKEY) return;
if (witch>=numkeys) return;
if (witch<0) return;
mykeys[witch]->posintrack=newpos;
mykeys[witch]->data=newv;
mykeys[witch]->tension=newt;
mykeys[witch]->continuity=newc;
mykeys[witch]->bias=newb;
mykeys[witch]->easefrom=newef;
mykeys[witch]->easeto=newet;
precalc_derivates();
}
void ctFloatTCB::update_key (int witch, int newpos, float newv, float newt, float newc, float newb)
{
if (witch>=MAXKEY) return;
if (witch>=numkeys) return;
if (witch<0) return;
mykeys[witch]->posintrack=newpos;
mykeys[witch]->data=newv;
mykeys[witch]->tension=newt;
mykeys[witch]->continuity=newc;
mykeys[witch]->bias=newb;
precalc_derivates();
}
void ctFloatTCB::update_key (int witch, int newpos, float newv)
{
if (witch>=MAXKEY) return;
if (witch>=numkeys) return;
if (witch<0) return;
mykeys[witch]->posintrack=newpos;
mykeys[witch]->data=newv;
precalc_derivates();
}
void ctFloatTCB::delete_key (int witch)
{
int k;
if (witch>=MAXKEY) return;
if (witch>=numkeys) return;
if (witch<0) return;
delete mykeys[witch];
for (k=witch; k<numkeys-1; k++)
{
mykeys[k]=mykeys[k+1];
}
mykeys[numkeys]=(FloatTCB_Key_ptr)NULL;
numkeys--;
precalc_derivates();
}
float ctFloatTCB::getValue(float pos)
{
float h1, h2, h3, h4, t, t2, t3;
float trackpos=pos*1000.0f;
int intpos, i;
if (trackpos<0.0) return(0);
if (mykeys==(FloatTCB_Key_ptr *)NULL) return(0);
if (numkeys==1) return(mykeys[0]->data);
if (numkeys<2) return(0);
intpos=(int)(ceil(trackpos));
if (trackpos<=mykeys[0]->posintrack) return mykeys[0]->data;
i=0;
while ((i<numkeys) && (mykeys[i]->posintrack<intpos))
{
i++;
}
if (i>=numkeys) return(mykeys[numkeys-1]->data);
if (i==0) i=1; // caso della key in posizione zero
t=(trackpos-mykeys[i-1]->posintrack)/(1.0f*mykeys[i]->posintrack-mykeys[i-1]->posintrack);
t=spline_ease(t, mykeys[i-1]->easefrom, mykeys[i]->easeto);
t2=t*t;
t3=t2*t;
// caloclo delle funzioni base
h1=2.0f*t3 - 3.0f*t2 + 1.0f;
h2=-2.0f*t3 + 3.0f*t2;
h3=t3 - 2.0f*t2 + t;
h4=t3 - t2;
return(h1*mykeys[i-1]->data + h2*mykeys[i]->data +
h3*mykeys[i-1]->outcomtg + h4*mykeys[i]->data);
}
*/
|
4ffee0ce0c1d5d79354ff9da6360878c61d2f5cb
|
d1d77b5f546e86dc3e7e641170d2de7f8b332750
|
/sketch/attiny45_vibrate_test/attiny45_vibrate_test.ino
|
89e928a640fe722573515d30ba52401566250acf
|
[
"MIT"
] |
permissive
|
yoggy/motor_driver_module_memo
|
b4f7c251de48eab086dffa7ceb8611994001b609
|
787c454678b98485aebaa6fd3f0d8d889fa4f82c
|
refs/heads/master
| 2021-01-13T01:41:40.125343
| 2015-04-15T13:13:47
| 2015-04-15T13:13:47
| 33,994,260
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 811
|
ino
|
attiny45_vibrate_test.ino
|
#define V_ON 40
#define V_OFF 300
#define V_INTERVAL 1500
#define V_COUNT 7
#define V_SLEEP 180
void setup( ) {
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
}
void vibrate_on(int n) {
for (int i = 0; i < n; i ++) {
digitalWrite(3, HIGH);
digitalWrite(4, LOW);
delay(3);
digitalWrite(3, LOW);
digitalWrite(4, HIGH);
delay(3);
}
}
void vibrate_off(int s) {
digitalWrite(3, LOW);
digitalWrite(4, LOW);
delay(s);
}
void vibrate(int n) {
for (int i = 0; i < n; i ++) {
vibrate_on(V_ON);
vibrate_off(V_OFF);
vibrate_on(V_ON);
vibrate_off(V_OFF);
vibrate_on(V_ON);
vibrate_off(V_OFF);
delay(V_INTERVAL);
}
}
void sleep(int n) {
for (int i = 0; i < n; i ++) {
delay(1000);
}
}
void loop() {
vibrate(V_COUNT);
sleep(V_SLEEP);
}
|
1da7f944f1e7cb7bc0b8d3c69584f2c86a8616fc
|
c90a56e7d7752b041fc5eb38257c5573cef346c6
|
/src-linux/PLib_pre.cpp
|
fdbf9959ec7118ab9e82a9230367e0c2bdaa9aa7
|
[] |
no_license
|
random-builder/design_cadquery_ocp
|
a4c572a72699bad52ca5f43f30bb7c15d89072ff
|
2af799a9f1b2d81fd39e519b2f73e12b34a14c0a
|
refs/heads/master
| 2021-05-21T23:10:23.833461
| 2020-03-29T15:34:46
| 2020-03-29T15:34:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 7,119
|
cpp
|
PLib_pre.cpp
|
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// user-defined inclusion per module before includes
// includes to resolve forward declarations
#include <PLib_JacobiPolynomial.hxx>
#include <Standard_ConstructionError.hxx>
#include <math_Matrix.hxx>
#include <PLib_Base.hxx>
#include <PLib_JacobiPolynomial.hxx>
#include <PLib_HermitJacobi.hxx>
#include <PLib_DoubleJacobiPolynomial.hxx>
// module includes
#include <PLib.hxx>
#include <PLib_Base.hxx>
#include <PLib_DoubleJacobiPolynomial.hxx>
#include <PLib_HermitJacobi.hxx>
#include <PLib_JacobiPolynomial.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_PLib_enums(py::module &main_module) {
py::module m = main_module.def_submodule("PLib", R"#()#");
// user-defined inclusion per module in the body
// enums
//Python trampoline classes
class Py_PLib_Base : public PLib_Base{
public:
using PLib_Base::PLib_Base;
// public pure virtual
void ToCoefficients(const Standard_Integer Dimension,const Standard_Integer Degree, const NCollection_Array1<Standard_Real> & CoeffinBase,NCollection_Array1<Standard_Real> & Coefficients) const override { PYBIND11_OVERLOAD_PURE(void,PLib_Base,ToCoefficients,Dimension,Degree,CoeffinBase,Coefficients) };
void D0(const Standard_Real U,NCollection_Array1<Standard_Real> & BasisValue) override { PYBIND11_OVERLOAD_PURE(void,PLib_Base,D0,U,BasisValue) };
void D1(const Standard_Real U,NCollection_Array1<Standard_Real> & BasisValue,NCollection_Array1<Standard_Real> & BasisD1) override { PYBIND11_OVERLOAD_PURE(void,PLib_Base,D1,U,BasisValue,BasisD1) };
void D2(const Standard_Real U,NCollection_Array1<Standard_Real> & BasisValue,NCollection_Array1<Standard_Real> & BasisD1,NCollection_Array1<Standard_Real> & BasisD2) override { PYBIND11_OVERLOAD_PURE(void,PLib_Base,D2,U,BasisValue,BasisD1,BasisD2) };
void D3(const Standard_Real U,NCollection_Array1<Standard_Real> & BasisValue,NCollection_Array1<Standard_Real> & BasisD1,NCollection_Array1<Standard_Real> & BasisD2,NCollection_Array1<Standard_Real> & BasisD3) override { PYBIND11_OVERLOAD_PURE(void,PLib_Base,D3,U,BasisValue,BasisD1,BasisD2,BasisD3) };
Standard_Integer WorkDegree() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,PLib_Base,WorkDegree,) };
void ReduceDegree(const Standard_Integer Dimension,const Standard_Integer MaxDegree,const Standard_Real Tol,Standard_Real & BaseCoeff,Standard_Integer & NewDegree,Standard_Real & MaxError) const override { PYBIND11_OVERLOAD_PURE(void,PLib_Base,ReduceDegree,Dimension,MaxDegree,Tol,BaseCoeff,NewDegree,MaxError) };
// protected pure virtual
// private pure virtual
};
// pre-register typdefs
// classes forward declarations only
py::class_<PLib , shared_ptr<PLib> >(m,"PLib",R"#(PLib means Polynomial functions library. This pk provides basic computation functions for polynomial functions. Note: weight arrays can be passed by pointer for some functions so that NULL pointer is valid. That means no weights passed.)#");
py::class_<PLib_Base ,opencascade::handle<PLib_Base>,Py_PLib_Base , Standard_Transient>(m,"PLib_Base",R"#(To work with different polynomial's BasesTo work with different polynomial's BasesTo work with different polynomial's Bases)#");
py::class_<PLib_DoubleJacobiPolynomial , shared_ptr<PLib_DoubleJacobiPolynomial> >(m,"PLib_DoubleJacobiPolynomial",R"#(None)#");
py::class_<PLib_HermitJacobi ,opencascade::handle<PLib_HermitJacobi> , PLib_Base>(m,"PLib_HermitJacobi",R"#(This class provides method to work with Jacobi Polynomials relativly to an order of constraint q = myWorkDegree-2*(myNivConstr+1) Jk(t) for k=0,q compose the Jacobi Polynomial base relativly to the weigth W(t) iorder is the integer value for the constraints: iorder = 0 <=> ConstraintOrder = GeomAbs_C0 iorder = 1 <=> ConstraintOrder = GeomAbs_C1 iorder = 2 <=> ConstraintOrder = GeomAbs_C2 P(t) = H(t) + W(t) * Q(t) Where W(t) = (1-t**2)**(2*iordre+2) the coefficients JacCoeff represents P(t) JacCoeff are stored as follow:This class provides method to work with Jacobi Polynomials relativly to an order of constraint q = myWorkDegree-2*(myNivConstr+1) Jk(t) for k=0,q compose the Jacobi Polynomial base relativly to the weigth W(t) iorder is the integer value for the constraints: iorder = 0 <=> ConstraintOrder = GeomAbs_C0 iorder = 1 <=> ConstraintOrder = GeomAbs_C1 iorder = 2 <=> ConstraintOrder = GeomAbs_C2 P(t) = H(t) + W(t) * Q(t) Where W(t) = (1-t**2)**(2*iordre+2) the coefficients JacCoeff represents P(t) JacCoeff are stored as follow:This class provides method to work with Jacobi Polynomials relativly to an order of constraint q = myWorkDegree-2*(myNivConstr+1) Jk(t) for k=0,q compose the Jacobi Polynomial base relativly to the weigth W(t) iorder is the integer value for the constraints: iorder = 0 <=> ConstraintOrder = GeomAbs_C0 iorder = 1 <=> ConstraintOrder = GeomAbs_C1 iorder = 2 <=> ConstraintOrder = GeomAbs_C2 P(t) = H(t) + W(t) * Q(t) Where W(t) = (1-t**2)**(2*iordre+2) the coefficients JacCoeff represents P(t) JacCoeff are stored as follow:)#");
py::class_<PLib_JacobiPolynomial ,opencascade::handle<PLib_JacobiPolynomial> , PLib_Base>(m,"PLib_JacobiPolynomial",R"#(This class provides method to work with Jacobi Polynomials relativly to an order of constraint q = myWorkDegree-2*(myNivConstr+1) Jk(t) for k=0,q compose the Jacobi Polynomial base relativly to the weigth W(t) iorder is the integer value for the constraints: iorder = 0 <=> ConstraintOrder = GeomAbs_C0 iorder = 1 <=> ConstraintOrder = GeomAbs_C1 iorder = 2 <=> ConstraintOrder = GeomAbs_C2 P(t) = R(t) + W(t) * Q(t) Where W(t) = (1-t**2)**(2*iordre+2) the coefficients JacCoeff represents P(t) JacCoeff are stored as follow:This class provides method to work with Jacobi Polynomials relativly to an order of constraint q = myWorkDegree-2*(myNivConstr+1) Jk(t) for k=0,q compose the Jacobi Polynomial base relativly to the weigth W(t) iorder is the integer value for the constraints: iorder = 0 <=> ConstraintOrder = GeomAbs_C0 iorder = 1 <=> ConstraintOrder = GeomAbs_C1 iorder = 2 <=> ConstraintOrder = GeomAbs_C2 P(t) = R(t) + W(t) * Q(t) Where W(t) = (1-t**2)**(2*iordre+2) the coefficients JacCoeff represents P(t) JacCoeff are stored as follow:This class provides method to work with Jacobi Polynomials relativly to an order of constraint q = myWorkDegree-2*(myNivConstr+1) Jk(t) for k=0,q compose the Jacobi Polynomial base relativly to the weigth W(t) iorder is the integer value for the constraints: iorder = 0 <=> ConstraintOrder = GeomAbs_C0 iorder = 1 <=> ConstraintOrder = GeomAbs_C1 iorder = 2 <=> ConstraintOrder = GeomAbs_C2 P(t) = R(t) + W(t) * Q(t) Where W(t) = (1-t**2)**(2*iordre+2) the coefficients JacCoeff represents P(t) JacCoeff are stored as follow:)#");
};
// user-defined post-inclusion per module
// user-defined post
|
69c3fa79a7fe57d0e7ccbf06e01ba0032bfcbfcb
|
e7f1a89bab00d19c79a12a87ec0ecfdf7fe3dee1
|
/heap/gcfinalize.cc
|
eab8de22ef626a60f52f9881e5e4c66730c25b92
|
[] |
no_license
|
dvorka/logr-jvm-gc
|
1a67de462b867e3e1e22e23d757c64b72c43dc1c
|
2d20bc10a4086a291674b1e8ea8eabf6c2f0584b
|
refs/heads/master
| 2021-01-02T09:14:40.947350
| 2014-01-01T09:53:25
| 2014-01-01T09:53:25
| 15,562,641
| 1
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 21,580
|
cc
|
gcfinalize.cc
|
/*
* gcfinalize.cc
*
* Author: Dvorka
*
*/
#include "gcfinalize.h"
#include "exception.h"
#ifdef GC_FINALIZER_CALL
#include "lni.h"
#include "fictive.h"
#endif
#include "gclist.h"
#include "gcollector.h"
#include "gcreference.h"
#include "referencetypes.h"
#ifdef GC_RELEASE
#include "utils.h"
#endif
//- Externs -------------------------------------------------------------------
extern ReferenceVectors *logrHeapRefs;
extern GarbageCollector *logrHeapGC;
extern int bitField[];
//-----------------------------------------------------------------------------
/* void internalFinalize( InstRef *iR ) */ /*fold00*/
#define internalFinalize( IR ) \
/* - remove reference from internal JVM structures using finalizerFlags */ \
do \
{ \
\
if( (IR)->finalizerFlags & FINALIZER_STRING_INTERN ) \
{ \
DBGprintf(DBG_GCTRACE,"Calling string intern finalizer..."); \
\
char *excInfo=NULL; \
\
removeInternStringRepresentation( &excInfo, (IR) ); \
\
if( excInfo ) \
free(excInfo); \
\
(IR)->finalizerFlags &= ~FINALIZER_STRING_INTERN; \
} \
\
} while(0)
/*FOLD00*/
//-----------------------------------------------------------------------------
/* void javaFinalize( InstRef iR, RtExceptionInfo *excInfo ) */ /*FOLD00*/
#define javaFinalize( IR, EXCINFO ) \
do \
{ \
\
/* +----------------------------------------+ */ \
/* | Java finalizer can be called only ONCE | */ \
/* +----------------------------------------+ */ \
\
if( (IR)->finalizerFlags & FINALIZER_JAVA ) \
{ \
DBGprintf(DBG_GCTRACE," Invoking Java finalizer %p...",(IR)); \
\
/* call finalizer */ \
lniInvokeVirtual(&beginEnv,M_JAVA_LANG_OBJECT_FINALIZE,(IR)); \
\
/* exception is ignored */ \
deleteSynchException((EXCINFO)); \
\
/* finalizer done */ \
(IR)->finalizerFlags &= ~FINALIZER_JAVA; \
} \
\
} while(0)
/*FOLD00*/
//-----------------------------------------------------------------------------
void universalInstanceTracer( InstRef *iR, int action, RtExceptionInfo *excInfo ) /*FOLD00*/
// - this function traces:
// i) instance itself
// (static data of coresponding class *NOT* traced)
{
switch( action )
{
case GC_TRACER_FINALIZER_CANDIDATE:
DBGprintf(DBG_GCTRACE,"-Begin-> unset FINALIZE_CANDIDATE flag \n Unset FINALIZER_CANDIDATE in:"); DBGsection(DBG_GCTRACE,(printInstRef(iR)));
break;
case GC_TRACER_HEAP_REF_COUNT:
DBGprintf(DBG_GCTRACE,"-Begin-> heapRefCount trace \n Counting heapRefCount:"); DBGsection(DBG_GCTRACE,(printInstRef(iR)));
break;
case GC_TRACER_FINALIZE_RECURSIVELY:
DBGprintf(DBG_GCTRACE,"-Begin-> recursive finalization \n Finalizing instance:"); DBGsection(DBG_GCTRACE,(printInstRef(iR)));
break;
default:
WORD_OF_DEATH("universalInstanceTracer: unknown option")
}
int i;
int bitmapWords;
void *iPtr; // iPtr = iR->ptr
dword *instance; // instance itself inside iPtr
StatRef *sR; // reference to RuntimeData from iR->ptr
void *sPtr; // sPtr = sR->ptr
dword *bitmap; // bitmap in sPtr
InstRef *instanceField;// reference field from instance
#ifdef GC_CHECK_INSTANCE_VALIDATION
checkInstanceValidation(iR);
#endif
lockInstRef(iR);
iPtr=iR->ptr;
if( iPtr==NULL // check if it's empty reference (size==0,ptr==NULL)
|| // or
iR==nullInstRef // it is nullInstRef
)
{
DBGprintf(DBG_GCTRACE,"Bottom finalizer reference (ptr==NULL)");
// case GC_TRACER_FINALIZE_RECURSIVELY:
// - trace not possible: iPtr==NULL
// - finalization not possible iPtr==NULL (-> RD not accessible)
if( action == GC_TRACER_FINALIZER_CANDIDATE
||
action == GC_TRACER_FINALIZE_RECURSIVELY
)
{
// unset candidate flag
iR->finalizerFlags &= ~FINALIZER_CANDIDATE;
iR->finalizerFlags &= ~FINALIZER_JAVA;
iR->finalizerFlags &= ~FINALIZER_STRING_INTERN;
}
unlockInstRef(iR);
return;
}
// +----------------+
// | trace instance |
// +----------------+
instance = (dword*)((byte*)iPtr+sizeof(InstanceHeader));
// ireference is locked -> pointer to RuntimeData can be taken (dwords)
sR = ((InstanceHeader*)iPtr)->runtimeData;
lockStatRef(sR); // runtime data locked
sPtr = sR->ptr;
// get the address of bitmap from RuntimeData
bitmap = (dword*)
(
(byte*)sPtr // RD
+
((RuntimeDataHeader*)sPtr)->instanceDataBitmap // offset
);
// get number of words in instance
bitmapWords = ((RuntimeDataHeader*)sPtr)->instanceDataCount;
DBGprintf(DBG_GCTRACE,"+- Recursive universal action --------------------");
DBGprintf(DBG_GCTRACE,"| InstRef %p",iR);
DBGprintf(DBG_GCTRACE,"| ->ptr %p",iPtr);
DBGprintf(DBG_GCTRACE,"| instance %p",instance);
DBGprintf(DBG_GCTRACE,"| RDRef %p",sR);
DBGprintf(DBG_GCTRACE,"| RD %p",sPtr);
DBGprintf(DBG_GCTRACE,"| bmpOff %d",((RuntimeDataHeader*)sPtr)->instanceDataBitmap);
DBGprintf(DBG_GCTRACE,"| bmp %p",bitmap);
DBGprintf(DBG_GCTRACE,"| bmpWords %d",bitmapWords);
DBGprintf(DBG_GCTRACE,"+---------------------");
switch( action )
{
case GC_TRACER_FINALIZER_CANDIDATE:
DBGprintf(DBG_GCTRACE," Tracing instance bitmap for FINALIZE_CANDIDATE unset ...");
break;
case GC_TRACER_HEAP_REF_COUNT:
DBGprintf(DBG_GCTRACE," Tracing instance bitmap for heapRefCount...");
break;
case GC_TRACER_FINALIZE_RECURSIVELY:
// first finalize itself then check color:
// i) if color changed
// -> resurrection of instance occured
// -> unset own FINALIZER_CANDIDATE
// -> unset FINALIZER_CANDIDATE recursively
// === for each field dive deeper
// ii) else
// -> unset own FINALIZER_CANDIDATE
// -> set own FINALIZER_READY_TO_DIE
// -> finalize recursively
// === on each field call this function
// self finalization
// I know that:
// - reference is valid
// - FINALIZER_CANDIDATE is set
// - color is GREEN
if( iR->finalizerFlags & FINALIZER_JAVA ) // not finalized yet
{
DBGprintf(DBG_GCTRACE," *SELF invoke Java finalizer*");
#ifdef GC_FINALIZER_CALL
javaFinalize( iR, excInfo );
#endif
}
else
{ DBGprintf(DBG_GCTRACE," Reference %p already Java finalized...",iR); }
// finalization done
iR->finalizerFlags &= ~FINALIZER_CANDIDATE;
// if color NOT changed during self finalization then call finalizers
// recursively for each GREEN reference in instance. If reference
// is BLUE -> becomes valid, then only unset FINALIZER_CANDIDATE but
// do not call finalizer (instance stays as usable as before
// finalizing process)
if( iR->color != GC_GREEN )
{
// unset CANDIDATE flag recursively
DBGprintf(DBG_GCTRACE," ->> unset");
universalInstanceTracer(iR,GC_TRACER_FINALIZER_CANDIDATE);
DBGprintf(DBG_GCTRACE," <<- unset");
unlockStatRef(sR);
unlockInstRef(iR);
return;
}
// else color not changed -> finalize instance -> then die
iR->finalizerFlags |= FINALIZER_READY_TO_DIE;
DBGprintf(DBG_GCTRACE," Tracing instance bitmap recursive finalization...");
break;
default:
WORD_OF_DEATH("universalInstanceTracer: unknown option")
}
for( i=0; i<bitmapWords; i++ )
{
// Bitmap structure:
//
// 31 <- 0 bitmap is array of integers
// ---------
// | | | | | 0
// ---------
// | | | | | ||
// --------- \/
// | | | | |
// ...
// i/32 i%32
if( bitmap[i>>5] & bitField[i&0x0000001F] )
{
// !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!
// load copy of field in instance (it can be locked using -1)
instanceField = readRefField(((InstRef**)(&(instance[i]))));
// !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!
switch( action )
{
case GC_TRACER_FINALIZER_CANDIDATE:
// field is reference -> if reference has FINALIZER_CANDIDATE flag set
// then unset it and dive deeper, else up
if( instanceField->finalizerFlags & FINALIZER_CANDIDATE )
{
instanceField->finalizerFlags &= ~FINALIZER_CANDIDATE;
// unset CANDIDATE flag recursively
DBGprintf(DBG_GCTRACE," ->> unset");
universalInstanceTracer(instanceField,GC_TRACER_FINALIZER_CANDIDATE);
DBGprintf(DBG_GCTRACE," <<- unset");
}
break;
case GC_TRACER_HEAP_REF_COUNT:
// field is reference -> mark it's immediate succesor
DBGprintf(DBG_GCTRACE," r -> %p->heapRefCount++ ... %d -> %d",
instanceField,
instanceField->heapRefCount,
instanceField->heapRefCount+1
);
instanceField->heapRefCount++;
break;
case GC_TRACER_FINALIZE_RECURSIVELY:
// check reference field properties, if OK call recursivery
if( instanceField->state != REF_NOT_VALID
&&
instanceField->finalizerFlags & FINALIZER_CANDIDATE
)
{
if( instanceField->color == GC_GREEN ) // finalize it recursively
{
DBGprintf(DBG_GCTRACE," ->>");
universalInstanceTracer(instanceField,GC_TRACER_FINALIZE_RECURSIVELY);
DBGprintf(DBG_GCTRACE," <<-");
}
else // it's BLUE reference -> unset FINALIZER_CANDIDATE
{
// unset CANDIDATE flag recursively
DBGprintf(DBG_GCTRACE," ->> unset");
universalInstanceTracer(instanceField,GC_TRACER_FINALIZER_CANDIDATE);
DBGprintf(DBG_GCTRACE," <<- unset");
}
}
break;
default:
WORD_OF_DEATH("universalInstanceTracer: unknown option")
}
}
else // it is primitive type
{ DBGprintf(DBG_GCTRACE," ."); }
} // for
unlockStatRef(sR);
unlockInstRef(iR);
switch( action )
{
case GC_TRACER_FINALIZER_CANDIDATE:
DBGprintf(DBG_GCTRACE," ... tracing instance bitmap for FINALIZE_CANDIDATE");
DBGprintf(DBG_GCTRACE,"-End-> unset FINALIZE_CANDIDATE flag");
break;
case GC_TRACER_HEAP_REF_COUNT:
DBGprintf(DBG_GCTRACE," ... tracing instance bitmap for heapRefCount");
DBGprintf(DBG_GCTRACE,"-End-> heapRefCount trace");
break;
case GC_TRACER_FINALIZE_RECURSIVELY:
DBGprintf(DBG_GCTRACE," ... tracing instance bitmap for heapRefCount");
DBGprintf(DBG_GCTRACE,"-End-> recursive finalization");
break;
default:
WORD_OF_DEATH("universalInstanceTracer: unknown option")
}
}
/*FOLD00*/
//-----------------------------------------------------------------------------
void finalize( RtExceptionInfo *excInfo ) /*FOLD00*/
// - attr unused
// - in RUNLEVEL 3
// new ... RED
// get ... X
// - in RUNLEVEL IV
// new ... RED
// get ... GREEN -> BLUE
{
ListItem *item;
int size,
i;
InstRef *iR; // cached reference I am working on for speed up
// +------------------------+
// | already in RUNLEVEL IV |
// +------------------------+
// + - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
// : make references with heapRefCount==0 (finalizer roots) :
// + - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
DBGprintf(DBG_GCTRACE,"Finalizing ROOT heapRefCount references...");
item= logrHeapRefs->instRefVecs->GetHead();
while( item )
{
size = ((InstRefVecsItem*)item)->lng;
for( i=0; i<size; i++ )
{
iR= &(((InstRefVecsItem*)item)->vector[i]); // speed up
if( iR->state != REF_NOT_VALID
&&
iR->heapRefCount == 0
&&
iR->finalizerFlags & FINALIZER_CANDIDATE
)
{
// it's root reference
if( iR->color == GC_GREEN ) // finalize it recursively
{
DBGprintf(DBG_GCTRACE," ->> ROOT finalize");
universalInstanceTracer(iR,GC_TRACER_FINALIZE_RECURSIVELY);
DBGprintf(DBG_GCTRACE," <<- ROOT finalize");
}
else // it's BLUE reference -> unset FINALIZER_CANDIDATE
{
// unset CANDIDATE flag recursively
DBGprintf(DBG_GCTRACE," ->> unset finalize");
universalInstanceTracer(iR,GC_TRACER_FINALIZER_CANDIDATE);
DBGprintf(DBG_GCTRACE," <<- unset finalize");
}
}
}
item=logrHeapRefs->instRefVecs->Next(item);
}
// + - - - - - - - - - - - - - - - - - - +
// : make references with heapRefCount>0 :
// + - - - - - - - - - - - - - - - - - - +
DBGprintf(DBG_GCTRACE,"Finalizing CYCLIC heapRefCount references...");
// here is done nonrecursive finalization (heapRefCount!=0 which were not
// finalized are found and made)
item= logrHeapRefs->instRefVecs->GetHead();
while( item )
{
// one vector
size = ((InstRefVecsItem*)item)->lng;
// Test of flag FINALIZER_CANDIDATE is enought because in BLUE and
// deep GREEN references was this flag unset during ROOT make
for( i=0; i<size; i++ )
{
iR= &(((InstRefVecsItem*)item)->vector[i]); // speed up
if( iR->state != REF_NOT_VALID
&&
iR->finalizerFlags & FINALIZER_CANDIDATE
)
{
DBGprintf(DBG_GCTRACE,"Java finalizer...");
#ifdef GC_FINALIZER_CALL
javaFinalize( iR, excInfo );
#else
// mark instance as it was done
iR->finalizerFlags &= ~FINALIZER_JAVA;
#endif
// unset candidate flag
iR->finalizerFlags &= ~FINALIZER_CANDIDATE;
// set die flag
iR->finalizerFlags |= FINALIZER_READY_TO_DIE;
}
}
item=logrHeapRefs->instRefVecs->Next(item);
}
// + - - - - - - - - - - - - - - +
// : search for BLUE references :
// + - - - - - - - - - - - - - - +
DBGprintf(DBG_GCTRACE,"Finalizer is now searching for BLUE references...");
// if BLUE reference is found, collection becomes invalid
// ->
// anything will be discarted
item= logrHeapRefs->instRefVecs->GetHead();
while( item )
{
// one vector
size = ((InstRefVecsItem*)item)->lng;
for( i=0; i<size; i++ )
{
if( ((InstRefVecsItem*)item)->vector[i].state != REF_NOT_VALID
&&
((InstRefVecsItem*)item)->vector[i].color == GC_BLUE
)
{
DBGprintf(DBG_GCTRACE," Touched reference %p found -> anything will be discarted",&(((InstRefVecsItem*)item)->vector[i]));
// reference was touched during finalizer execution
// ->
// collection becomes invalid
// ->
// return
return;
}
}
item=logrHeapRefs->instRefVecs->Next(item);
}
// +---------------------+
// | InstRef DESTRUCTION |
// +---------------------+
DBGprintf(DBG_GCTRACE,"Finalizer does InstRef DESTRUCTION...");
item= logrHeapRefs->instRefVecs->GetHead();
while( item )
{
// one vector
size = ((InstRefVecsItem*)item)->lng;
for( i=0; i<size; i++ )
{
if( ((InstRefVecsItem*)item)->vector[i].state != REF_NOT_VALID )
{
if( ((InstRefVecsItem*)item)->vector[i].finalizerFlags & FINALIZER_READY_TO_DIE )
{
// Remove reference from internal JVM structures using finalizerFlags
if(
((InstRefVecsItem*)item)->vector[i].refCount
||
((InstRefVecsItem*)item)->vector[i].lockCount
)
{
fprintf(stderr,"\n\n\n Buggy Frydlatko reference:");
printInstRef((&(((InstRefVecsItem*)item)->vector[i])));
WORD_OF_DEATH("travelling to Italy...")
}
DBGprintf(DBG_GCTRACE,"Intern finalizer of:");
DBGsection(DBG_GCTRACE,(printInstRef(&(((InstRefVecsItem*)item)->vector[i]))));
#ifdef GC_INTERN_RELEASE
internalFinalize( &(((InstRefVecsItem*)item)->vector[i]) );
#else
// mark instance as it was done
(((InstRefVecsItem*)item)->vector[i]).finalizerFlags &= ~FINALIZER_STRING_INTERN;
#endif
#ifndef GC_FAKE_COLLECTION
// update GC stat
logrHeapGC->huntedInstances++;
logrHeapGC->huntedBytes+= ((InstRefVecsItem*)item)->vector[i].size;
deleteInstRef(&(((InstRefVecsItem*)item)->vector[i]));
#endif
DBGprintf(DBG_GCTRACE,"\n GC: object ptr %p, size %iB destroyed...",&(((InstRefVecsItem*)item)->vector[i]),((InstRefVecsItem*)item)->vector[i].size);
}
}
}
item=logrHeapRefs->instRefVecs->Next(item);
}
// increase number of finished collections
logrHeapGC->iterations++;
// verbose GC message
if( logrHeapGC->verbose )
logrHeapGC->printInfo();
}
/*FOLD00*/
//-----------------------------------------------------------------------------
void runSyncFinalize() /*fold00*/
{
DBGprintf(DBG_GC,"<----------------------------------------------------------------------->");
DBGprintf(DBG_GC," Starting *sync* finalizer");
DBGprintf(DBG_GC,"<----------------------------------------------------------------------->");
RtExceptionInfo *excInfo;
#ifdef GC_FINALIZER_CALL
excInfo=(RtExceptionInfo *)GETSPECIFIC(keyRtExceptionInfo);
#endif
// +-----------------------------------------------+
// | Java thread initialized -> finalize instances |
// +-----------------------------------------------+
finalize(excInfo);
DBGprintf(DBG_GC,"<----------------------------------------------------------------------->");
DBGprintf(DBG_GC," *sync* finalizer finished...");
DBGprintf(DBG_GC,"<----------------------------------------------------------------------->");
}
/*FOLD00*/
//-----------------------------------------------------------------------------
void *finalizerBody( void *attr ) /*fold00*/
{
DBGprintf(DBG_GC,"<----------------------------------------------------------------------->");
DBGprintf(DBG_GC," Starting finalizer thread: pid %i, ppid %i", getpid(),getppid());
DBGprintf(DBG_GC,"<----------------------------------------------------------------------->");
RtExceptionInfo excInfo;
excInfo.flags = NO_EXCEPTION;
excInfo.asynchCount = 0;
excInfo.synchExc = nullInstRef;
COND_INIT(&excInfo.suspendCondVar);
COND_INIT(&excInfo.sleepCondVar);
excInfo.waitOn = nullInstRef;
excInfo.interrupted = INTERRUPT_NO;
excInfo.threadId = pthread_self();
excInfo.prev = &excInfo;
excInfo.next = &excInfo;
#if defined(GC_FINALIZER_CALL) || defined(GC_INTERN_RELEASE)
SETSPECIFIC(keyRtExceptionInfo, &excInfo);
#endif
// +-----------------------------------------------+
// | Java thread initialized -> finalize instances |
// +-----------------------------------------------+
finalize(&excInfo);
COND_DESTROY(&excInfo.suspendCondVar);
COND_DESTROY(&excInfo.sleepCondVar);
#if defined(GC_FINALIZER_CALL) || defined(GC_INTERN_RELEASE)
SETSPECIFIC(keyRtExceptionInfo, NULL);
#endif
DBGprintf(DBG_GC,"<----------------------------------------->");
DBGprintf(DBG_GC," Finalizer thread pid %i finished...",getpid());
DBGprintf(DBG_GC,"<----------------------------------------->");
pthread_exit(NULL);
}
/*FOLD00*/
//- EOF -----------------------------------------------------------------------
|
a55c8fbc17c6ce8b584fa95953e36ea359bb1f13
|
c1ef38a0a273b46833aeb52b472da2f8a094e37b
|
/UVA/10945 - Mother bear.cpp
|
84376196f39a5a21b83c13850fa706dd4d4bc777
|
[] |
no_license
|
red1austcse34/Programming-Problem-Solution
|
85647e7b77a2a07a2208d0731c6f11acb1e76d6b
|
472952a964dcce23f79d39e2907972efaab5ad28
|
refs/heads/master
| 2021-06-17T20:40:46.935829
| 2017-06-03T21:36:10
| 2017-06-03T21:36:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,134
|
cpp
|
10945 - Mother bear.cpp
|
#include <cstdio>
#include <sstream>
#include <cstdlib>
#include <cctype>
#include <cmath>
#include <algorithm>
#include <set>
#include <queue>
#include <stack>
#include <list>
#include <iostream>
#include <fstream>
#include <numeric>
#include <string>
#include <vector>
#include <cstring>
#include <map>
#include <iterator>
#include <climits>
#include <iomanip>
using namespace std;
int main()
{
int l, l1, l2, i, j, bin;
char s[1000], s1[1000], s2[1000];
while(gets(s))
{
bin=0;
l1=-1;
l=strlen(s);
if(l==4 && s[0]=='D' && s[1]=='O' && s[2]=='N' && s[3]=='E')break;
for(i=0; i<l; i++)
{
if(s[i]!='.' && s[i]!=',' && s[i]!='?' && s[i]!='!' && s[i]!=' ')
{
l1++;
s1[l1]=s[i];
}
}
for(j=0;j<=l1;j++)
{
if(s1[j]!=s1[l1-j] && s1[j]!=(s1[l1-j]+32) && s1[j]!=(s1[l1-j]-32))
{
printf("Uh oh..\n");
bin=1;
break;
}
}
if(bin==0)printf("You won't be eaten!\n");
}
return 0;
}
|
389bcfdeb4aab022314596cf642a2c7ffdff9356
|
c968e1c71b9cbd339c9aa61a6dd7ccacb9b64b66
|
/Queue.h
|
ed4ec78fe3fdf5848119d2402ce9e35056ae8179
|
[] |
no_license
|
albertopineda84/CPP-Data-Structs
|
a1b15415b83edfa9c53841259aeaedafb4085346
|
0870986559d97cc0bc7a8c68dbac8b9a559132f6
|
refs/heads/master
| 2023-02-21T00:13:03.129470
| 2021-01-23T11:20:55
| 2021-01-23T11:20:55
| 283,111,940
| 0
| 0
| null | 2020-07-28T06:12:06
| 2020-07-28T05:41:52
|
C++
|
UTF-8
|
C++
| false
| false
| 571
|
h
|
Queue.h
|
/*
Alberto Pineda
CS 189
Assignment 5: Queue Implementation
*/
#pragma once
#include <list>
template<typename T>
class Queue
{
public:
Queue() {}; //create an empty queue
Queue( const Queue& other )
{
mQueue = other.mQueue;
}
~Queue()
{
while ( mQueue.size() != 0 )
Pop();
}
T Front() const
{
return mQueue.front();
}
void Pop()
{
mQueue.pop_front();
}
void Push( const T& tData )
{
mQueue.push_back( tData );
}
int Size() const
{
return mQueue.size();
}
private:
std::list<T> mQueue;
};
|
8b43f1843bd01dd66ad9c215815504dd089b5805
|
c6ef5b0975a52abe081ae48dd034043b71079771
|
/Prog-Trackingsystem/src/ImageProcessingMngmt.h
|
c2ff162df1a85a2e6dbe857ed8a1de6d865a1f07
|
[] |
no_license
|
BProj-LMN/Studienarbeit
|
27a801b58b1339fa3b699f0896296f8464a6983d
|
94cb93654e58f155aa6b56b93230a49f63846e01
|
refs/heads/master
| 2021-01-17T14:09:43.736381
| 2016-07-18T16:24:17
| 2016-07-18T16:24:17
| 54,642,392
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 775
|
h
|
ImageProcessingMngmt.h
|
/*
* ImageProcessingMngmt.h
*
* function: manage all ImageProcessing entities
* loads sysConfig file and sets everything up
*
* author: Jannik Beyerstedt
*/
#ifndef SRC_IMAGEPROCESSINGMNGMT_H_
#define SRC_IMAGEPROCESSINGMNGMT_H_
#include "ImageProcessing.h"
#include "CameraProperties.h"
#include <opencv2/core.hpp>
#include <string>
#include <vector>
class CameraProperties;
class ImageProcessingMngmt {
public:
ImageProcessingMngmt(std::string configFile, IntraSystemMessaging* intMsg);
~ImageProcessingMngmt();
void evaluate();
private:
void factoryCamera(CameraProperties camProps, std::string objDetUsed);
private:
std::vector<ImageProcessing*> cameras;
IntraSystemMessaging* messaging;
};
#endif /* SRC_IMAGEPROCESSINGMNGMT_H_ */
|
017c1aa9b8da3aea00ffc57ee20bb325a4ce91ef
|
6d83ca13b82fa72cf368eea51287f65846474c9a
|
/CPP_TEST/hash_join.cpp
|
7983e485b2d3a1d9395ce330af3427aebb45eb73
|
[] |
no_license
|
songminkyu/CPP_TEST
|
cc8debf02ca94d2ccbdf3f3f7f141155c9349c10
|
f7eaf2b6a321575a26466a9ec7ce951f8ed36c95
|
refs/heads/master
| 2022-12-15T19:39:10.614174
| 2020-09-03T10:12:17
| 2020-09-03T10:12:17
| 291,944,541
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,312
|
cpp
|
hash_join.cpp
|
#include <iostream>
#include <map>
#include <tuple>
#include <utility>
#include <vector>
#include <range/v3/all.hpp>
using namespace ranges;
using intint = std::tuple<int, int>;
int key(const intint& xy) { return std::get<0>(xy); }
template <typename L, typename R>
std::ostream& operator<<(std::ostream& out, const std::tuple<L, R>& xy) {
const L& x = std::get<0>(xy);
const R& y = std::get<1>(xy);
out << "(" << x << ", " << y << ")";
return out;
}
template <typename T>
void type(const T&) {
#ifdef __linux__
std::cout << __PRETTY_FUNCTION__ << std::endl;
#elif _WIN32
std::cout << __FUNCSIG__ << std::endl;
#else
#endif
}
class Join {
public:
auto operator()(const common_pair<intint, intint>& xy) {
return yield_from(views::all(newly_joined(xy)));
}
private:
const std::vector<std::tuple<intint, intint>>& newly_joined(
const common_pair<intint, intint>& xy) {
const intint& x = std::get<0>(xy);
const intint& y = std::get<1>(xy);
newly_joined_.clear();
if (key(x) != -1) {
left_[key(x)].push_back(x);
for (const intint& y : right_[key(x)]) {
newly_joined_.push_back({ x, y });
}
}
if (key(y) != -1) {
right_[key(y)].push_back(y);
for (const intint& x : left_[key(y)]) {
newly_joined_.push_back({ x, y });
}
}
return newly_joined_;
}
std::map<int, std::vector<intint>> left_;
std::map<int, std::vector<intint>> right_;
std::vector<std::tuple<intint, intint>> newly_joined_;
};
template <typename Rng1, typename Rng2>
auto join(const Rng1& xs, const Rng2& ys) {
auto negative_ones = views::generate([]() { return intint{ -1, -1 }; });
return views::zip(views::concat(xs, negative_ones),
views::concat(ys, negative_ones)) //
| views::take_while([](const auto& xy) {
auto x = std::get<0>(xy);
auto y = std::get<1>(xy);
return key(x) != -1 && key(y) != -1;
}) //
| views::for_each(Join());
}
int main() {
#if false
std::vector<intint> xs = { {0, 1}, {1, 2}, {2, 3}, {2, 4}, {3, 5} };
std::vector<intint> ys = { {1, 10}, {2, 20}, {3, 30},
{3, 40}, {5, 50}, {6, 60} };
#else
std::vector<intint> xs = { { 100,200 }, { 200,400 }, { 300, 600 } };
std::vector<intint> ys = { { 100,300 }, { 200,500 }, { 300, 700 } };
#endif
for_each(join(xs, ys), [](const auto& t) { std::cout << t << std::endl; });
}
|
859e8c0b8c6a9f514f67f70ad5f17655abb512bb
|
28923aae2e58cefd4aba60a71647d1203a31ee5d
|
/Spades Game/Game/Dialog/LeaderboardDialog.hpp
|
55b639c6fc44c68ec6ed5e9fa2c4ae5e5226e51d
|
[
"Unlicense"
] |
permissive
|
Qazwar/StemwaterSpades
|
a1fee0eeeb4f9e4e4c2023d9b661d09692ac6d6a
|
05e5d7c6d380d2f5986bd91269887f16c3e71962
|
refs/heads/master
| 2020-05-16T00:29:38.625484
| 2015-11-21T01:41:38
| 2015-11-21T01:41:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,045
|
hpp
|
LeaderboardDialog.hpp
|
#ifndef CGE_LEADERBOARD_DIALOG_HPP
#define CGE_LEADERBOARD_DIALOG_HPP
#include "Game/UI/GeneralDialogBox.hpp"
#include "Game/Handler/LobbyEventProvider.hpp"
#include <Agui/SelectionListener.hpp>
#include <vector>
namespace cge
{
struct LeaderboardCell
{
Label* rank;
Label* name;
Label* rating;
agui::EmptyWidget* container;
LeaderboardCell()
: rank(NULL),
name(NULL),
rating(NULL),
container(NULL)
{
}
};
struct LeaderboardCellData
{
std::string rank;
std::string name;
std::string rating;
};
class LeaderboardDialog : public GeneralDialogBox, public LobbyEventProvider,
public agui::SelectionListener
{
FlowLayout* m_container;
DropDown* m_drop;
std::vector<agui::Widget*> m_parentWidgets;
std::vector<LeaderboardCell> m_cells;
std::vector<LeaderboardCellData> m_cellData;
std::vector<std::string> m_columnList;
std::string m_selColumn;
Label* createLeaderboardLabel(const std::string& text, agui::Widget* parent, bool header, bool odd);
void clearCells();
void addHeaderCell();
void addCell(const std::string& rank, const std::string& name, const std::string& rating, bool header, bool odd);
void repositionCells();
virtual void dialogWillAppear();
public:
LeaderboardDialog(GuiFactory* factory);
void setData(const std::vector<std::string>& rank,
const std::vector<std::string>& name,
const std::vector<std::string>& rating,
int numPerPage,
int pageNo,
int count,
const std::string& dataColumn,
bool alreadyShowing
);
virtual bool wantCloseButton() const;
virtual void frameActionReceived(GeneralFrame* frame,const std::string& action);
const std::string& getSelectedDataColumn() const;
virtual const std::vector<agui::Widget*>& parentBottomWidgets();
virtual void actionPerformed(const agui::ActionEvent &evt);
virtual void selectionChanged(agui::Widget *source, const std::string &item, int index, bool selected);
float getHeightScalar() const;
float getWidthScalar() const;
virtual ~LeaderboardDialog(void);
};
}
#endif
|
6014a1996a47f4ed3e4bf8dd7a6c881c717e4fae
|
7ea618b70e81a9478e896949ab99995b089fe8de
|
/libsrc/blitz/src/buffer.cc
|
71697993344a33ab6ceb05aee4e070c98be174d8
|
[] |
no_license
|
rickyu/mlsimgsearch
|
bab0cc11901ac3adf652a7f4daeaa01721b6b9e5
|
7fa89f058333af65c27e58d952a7ebbcbd94b46f
|
refs/heads/master
| 2020-03-22T21:01:41.687118
| 2018-07-12T02:48:09
| 2018-07-12T02:48:09
| 140,650,471
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,713
|
cc
|
buffer.cc
|
#include "blitz/buffer.h"
namespace blitz {
int BufferWriter::Init(int hint_length) {
if (cur_buffer_) {
return kAlreadyInited;
}
buffer_capacity_ = 2;
buffers_ = reinterpret_cast<DataBuffer*>(malloc(sizeof(DataBuffer)*buffer_capacity_));
if (!buffers_) {
buffer_capacity_ = 0;
return kOutOfMemory;
}
memset(buffers_, 0 , sizeof(DataBuffer)*buffer_capacity_);
int ret = Alloc(buffers_, hint_length);
if (ret != 0) { return ret; }
cur_buffer_ = buffers_;
buffer_count_ = 1;
return 0;
}
int BufferWriter::Extend(int len) {
assert(cur_buffer_ != NULL);
if (cur_buffer_->length - cur_buffer_->data_length >= len) {
return 0;
}
if (buffer_count_ == buffer_capacity_) {
int new_capacity = buffer_capacity_ + 2;
DataBuffer* new_buffers = reinterpret_cast<DataBuffer*>(
malloc(sizeof(DataBuffer)*new_capacity));
if (!new_buffers) {
return kOutOfMemory;
}
memcpy(new_buffers, buffers_, sizeof(DataBuffer)*buffer_capacity_);
memset(new_buffers + buffer_capacity_, 0,
sizeof(DataBuffer)*(new_capacity-buffer_capacity_));
buffer_capacity_ = new_capacity;
free(buffers_);
buffers_ = new_buffers;
}
if (cur_buffer_->data_length < 128) {
// 重新分配内存并拷贝.
}
int ret = Alloc(buffers_+buffer_count_, len);
if (ret != 0) {
return ret;
}
cur_buffer_ = buffers_ + buffer_count_;
++buffer_count_;
return 0;
}
// implementation of BufferReader.
int BufferReader::ScanfDigit(int64_t* integer) {
*integer = 0;
int length = 0;
while (1) {
if (current_buffer_->read_pos >= current_buffer_->data_length) {
++current_buffer_;
if (current_buffer_ == buffers_ + buffer_count_) {
break;
}
current_buffer_->read_pos = 0;
}
uint8_t* ptr = current_buffer_->ptr+current_buffer_->read_pos;
uint8_t* ptr_end = current_buffer_->ptr+current_buffer_->data_length;
while (ptr < ptr_end) {
if (*ptr >= '0' && *ptr <= '9') {
*integer = (*integer)*10+(*ptr)-'0';
++ptr;
++length;
} else {
break;
}
}
current_buffer_->read_pos += ptr_end - ptr;
if (ptr < ptr_end) {
break;
}
}
return length;
}
int BufferReader::ReadString(std::string* str) {
int32_t length = 0;
int ret = ReadI32(&length);
if (ret <= 0) { return ret; }
if (data_left_length_ < length) {
Back(ret);
return kNotEnoughData;
}
str->reserve(length);
StringReader string_reader;
string_reader.set_str(str);
return IterateRead(static_cast<int>(length), string_reader) + 4;
}
int BufferReader::UseNakedPtr(DataBuffer* data, int length) {
DataBufferUtil::Zero(data);
if (current_buffer_->data_length-current_buffer_->read_pos >= length) {
data->ptr = current_buffer_->ptr+current_buffer_->read_pos;
data->length = data->data_length = length;
data->fn_free = NULL;
current_buffer_->read_pos += length;
return length;
} else {
data->ptr = reinterpret_cast<uint8_t*>(Alloc::Malloc(length));
if (!data->ptr) {
return -100;
}
int read_length = IterateCopy(data->ptr, length);
data->fn_free = Alloc::Free;
data->free_context = NULL;
data->length = data->data_length = read_length;
return read_length;
}
}
void BufferReader::Back(int length) {
while (length > 0) {
if (current_buffer_->read_pos >= length) {
current_buffer_->read_pos -= length;
data_left_length_ += length;
length = 0;
break;
} else {
length -= current_buffer_->read_pos;
data_left_length_ += current_buffer_->read_pos;
current_buffer_->read_pos = 0;
--current_buffer_;
}
}
}
} // namespace blitz
|
dde72baf3d48196635ca3227dd9c7101bc116122
|
96976a2c205d679261aa6ff6cd0db286c43ee350
|
/src/core/functions/Function.cpp
|
9563d63e6838e0876d4fccace8b829035be2015b
|
[] |
no_license
|
sundsx/RevBayes
|
f99305df6b72bd70039b046d5131c76557e53366
|
13e59c59512377783673d3b98c196e8eda6fedee
|
refs/heads/master
| 2020-04-06T06:29:46.557485
| 2014-07-26T14:26:57
| 2014-07-26T14:26:57
| 36,248,250
| 0
| 1
| null | 2015-05-25T18:44:13
| 2015-05-25T18:44:13
| null |
UTF-8
|
C++
| false
| false
| 1,749
|
cpp
|
Function.cpp
|
#include "DagNode.h"
#include "Function.h"
#include "RbException.h"
using namespace RevBayesCore;
Function::Function(void) : parameters(),
dirty( true )
{
}
void Function::addParameter(const DagNode *p) {
parameters.insert( p );
}
void Function::getAffected(std::set<DagNode *> &affected, DagNode* affecter) {
// do nothing
}
const std::set<const DagNode*>& Function::getParameters( void ) const {
return parameters;
}
/* Method stumb that can be overwritten for specialized treatment. */
void Function::keep( DagNode* affecter ) {
// restore flags
// dirty = false;
}
void Function::removeParameter(const RevBayesCore::DagNode *p)
{
std::set<const DagNode *>::iterator it = parameters.find( p );
if ( it != parameters.end() )
{
parameters.erase( it );
}
}
void Function::reInitialized( void )
{
// do nothing
}
/* Method stub that can be overwritten for specialized treatment. */
void Function::restore( DagNode *restorer ) {
// restore flags
// dirty = false;
}
void Function::swapParameter(const DagNode *oldP, const DagNode *newP) {
std::set<const DagNode *>::iterator position = parameters.find(oldP);
if ( position != parameters.end() )
{
parameters.erase( position );
parameters.insert( newP );
swapParameterInternal( oldP, newP );
}
else
{
throw RbException("Could not find the parameter to be swapped.");
}
}
/* Method stub that can be overwritten for specialized treatment. */
void Function::touch( DagNode *toucher ) {
// do nothing
}
std::ostream& RevBayesCore::operator<<(std::ostream& o, const Function& f) {
o << "f(x)";
return o;
}
|
1e216240da9a12a4be5b4a65907aa58e3fa65155
|
09c3d3d2359cd468ea5509c557d4d2183871efd9
|
/mobileChartsQML2/heart.h
|
37848ba9f50be27fb36a8474a9ff977289aec603
|
[] |
no_license
|
PatrykGrzegorek/QtExamples
|
7230c2581113c2c6f8bb8d50046dd7541b79962c
|
20407fc489030d4749a9e068d8ba1aad78944f91
|
refs/heads/main
| 2023-09-04T09:07:47.308651
| 2021-10-26T07:59:06
| 2021-10-26T07:59:06
| 408,770,024
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 514
|
h
|
heart.h
|
#ifndef HEART_H
#define HEART_H
#include <QObject>
#include <QTimer>
class heart : public QObject
{
Q_OBJECT
Q_PROPERTY( QString stringHeart READ stringHeart NOTIFY statsChanged)
public:
explicit heart(QObject *parent = nullptr);
void setStats(int heart);
QString stringHeart();
signals:
void statsChanged();
public slots:
void changeStats();
void clickStop();
void clickStart();
void clickReset();
private:
int m_heart;
QTimer *m_timer;
};
#endif // HEART_H
|
577c868b7f2b69ffaba1063ed99b30b65cd2cf47
|
f4afb68928a5e4f697704ea33ca7cbbcc01a2a8d
|
/phonedirectory.cpp
|
6be216261eea7554e630df5fea09e86f45f4dc73
|
[] |
no_license
|
chandreshsharma/PhoneDirectory
|
6dc0d830f537d7e5169ef834b743e962e9d892c8
|
92012db6dcf53100f2c8999491dd661c0e05ca11
|
refs/heads/master
| 2021-07-05T00:04:42.019275
| 2017-09-25T09:33:05
| 2017-09-25T09:33:05
| 104,330,768
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 6,082
|
cpp
|
phonedirectory.cpp
|
/*
Let's say you needed to store (in code/memory instead of a database) a group of people and their phone numbers.
Further extend the example with the idea that a person can have multiple phone numbers and that each phone number has a type (cell, home, etc.).
What data structure(s) or classes might you design to store this information?
Write code that shows creation of, insertion into, and lookup from this dataset.
Loookup should be able to be done by name or by phone number (i.e. reverse lookup).
Be sure to handle the case where the two people with the same name are in the phone book.
Comment on your choice of container and demonstrate that it is a good fit. Keep in mind that this is likely the only written code sample you will provide for us.
*/
/*************************************
Assumptions:
1. A person can have more than one phone.
2. Include the possibility that there may exist more than one person with the same name,
i.e. same name but different numbers.
3. More than 1 person can have the same number (People staying together), same phone number,
with different names.
**************************************/
/************************************************************************************************************************************
Author: Chandresh Sharma
email: chandresh.sharma@gmail.com
Created: 14/04/2016
Platform: Linux 3.16.0-30-generic
Compiler: gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
*************************************************************************************************************************************/
#include <algorithm>
#include "phonedirectory.h"
// Member functions
void PhoneDirectory::insert(std::string name, std::string phoneNumber, PhoneType phoneType)
{
if( !phoneTypeOK(phoneType) )
{
std::cerr << "Error specifying phone type, ignoring input !!" << std::endl;
return;
}
else
{
#if defined(DEBUG)
std::cout << " Adding" << name << ", " << phoneNumber << ", " << phoneType << " to directory " << std::endl;
#endif
// Store the names in lower case.
//
// We use the name as the key for the database for the search operations.
// For the search, the std::string treats the same string in different case as different strings.
// Since we wish to print all the records with the same name, this would aid in the same.
//
// Also it helps since the multimap automatically sorts records, the same strings would
// be together in the database.
std::transform(name.begin(), name.end(), name.begin(), tolower);
_store.insert(StrToPairMM::value_type( name, std::pair<std::string, PhoneType> (phoneNumber, phoneType ) ) );
}
}
// @@@EXPLORE
// For the PhoneDirectory::insert() function in case space was not a constraint, and the primary objective was a quick search
// we would have maintained another map of type std::multimap < std::string phoneNumber, std::string Name> StrToStrMM.
//
// Each insertion in the StrToPairMM _store, would also store a value in the StrToStrMM with the phoneNumber as the Key.
// This would help in the reverse lookup, where the person name needs to be searched based on the phone number.
// This would result in extra code, but the results would be that much faster.
// Although the maintenance of the code would have to be taken care of.
void PhoneDirectory::getInfoFromName(std::string name)
{
std::cout << "\nPrinting records with name: \"" << name << "\"" << std::endl;
std::cout << "-----------------------------------------------------\n" << std::endl;
std::transform(name.begin(), name.end(), name.begin(), tolower);
MMIter iter = _store.find(name);
while(iter != _store.end())
{
printRecord(iter);
std::string key = iter->first;
std::string nextKey = (++iter)->first;
if( key.compare(nextKey) ) // This is a multimap, which is an ordered set.
iter = _store.end(); // In case the next key is not the same, we can stop the iteration.
}
}
// The method to find the records based on the phonenumber has a complexity of O(n),
// since all the records would need to be searched.
// Another option would have been(as mentioned above) to save the Maps contents in another map
// OR ordered multiset so that the elements are sorted and retrieval is faster.
// However using the same too; the sort would have taken some time, and would really be effective
// if the sort and the lookup is less than O(n).
void PhoneDirectory::getInfoFromNumber(std::string phoneNumber)
{
std::cout << "\nPrinting records with phone number: [" << phoneNumber << "]" << std::endl;
std::cout << "-----------------------------------------------------\n" << std::endl;
for (MMIter iter = _store.begin(); iter != _store.end(); ++iter) // O(n) complexity, see if this can be improved
{
if(iter->second.first == phoneNumber)
printRecord(iter);
}
}
// Method to create a list of dummy records.
void PhoneDirectory::populate()
{
// Store a list of dummy records
insert( "CCCCC", "333333333", CELL);
insert( "AAAAA", "111111111", HOME);
insert( "FFFFF", "666666666", OTHER);
insert( "BBBBB", "222222222", OFFICE);
insert( "EEEEE", "555555555", HOME);
insert( "HHHHH", "888888888", CELL);
insert( "BBBBB", "121212121", OFFICE);
insert( "GGGGG", "777777777", HOME);
insert( "FfFff", "343434343", OTHER);
insert( "DDDDD", "444444444", OFFICE);
insert( "IIIII", "999999999", HOME);
insert( "A1A1A", "111111111", HOME);
insert( "fffff", "232323232", OTHER);
insert( "ABABA", "222222222", OFFICE);
insert( "HELLO", "111111111", HOME);
insert( "EMEME", "555555555", HOME);
}
// Print contents of data store.
void PhoneDirectory::dump()
{
// unsigned int index = 0;
std::cout << "\n Printing directory contents ... \n" << std::endl;
for(MMIter iter = _store.begin(); iter != _store.end(); ++iter)
{
printRecord(iter);
}
}
|
3ef7e2918b4ef81bdaadee97c68c9c10d1083e89
|
07c3e4c4f82056e76285c81f14ea0fbb263ed906
|
/Re-Abyss/app/utils/AudioSetting/AudioSettingReader.hpp
|
abe75450495ae7a8ed8a1200ea8dbcd740be8b31
|
[] |
no_license
|
tyanmahou/Re-Abyss
|
f030841ca395c6b7ca6f9debe4d0de8a8c0036b5
|
bd36687ddabad0627941dbe9b299b3c715114240
|
refs/heads/master
| 2023-08-02T22:23:43.867123
| 2023-08-02T14:20:26
| 2023-08-02T14:20:26
| 199,132,051
| 9
| 1
| null | 2021-11-22T20:46:39
| 2019-07-27T07:28:34
|
C++
|
UTF-8
|
C++
| false
| false
| 383
|
hpp
|
AudioSettingReader.hpp
|
#pragma once
#include <Siv3D/Audio.hpp>
#include <abyss/utils/AudioSetting/AudioSetting.hpp>
namespace abyss
{
class AudioSettingReader
{
public:
AudioSetting load(const s3d::TOMLValue& toml) const;
AudioSetting load(const s3d::FilePath& basePath, const s3d::TOMLValue& toml) const;
AudioSetting load(const s3d::FilePath& path) const;
};
}
|
97419c12f5b8063ad583646142f82afc52da03dc
|
b7a5ad33275fc0132fd6e6c8611734c7d757ec7c
|
/ExpressionEvaluation/token.cpp
|
6977dd1da7adba2558b7a04ace63cee437747e2a
|
[] |
no_license
|
JosephPKC/CplusSquared-Projects
|
8d83f91145bacbfbfd1a8269e8c5df33792c843f
|
055fb351783c62b5e3f6a0c7ae2d4b37e281d4d3
|
refs/heads/master
| 2021-01-24T17:36:21.985086
| 2017-01-28T07:21:44
| 2017-01-28T07:21:44
| 29,170,003
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 843
|
cpp
|
token.cpp
|
#include "token.h"
#include <iostream>
/**
* @brief operator << insertion operator
* @param out ostream
* @param T the token
* @return ostream
*/
std::ostream& operator <<(std::ostream& out, const Token& T){
out << T.getToken();
return out;
}
/**
* @brief Token::getType gets the type
* @return type
*/
Type Token::getType(){
return type;
}
/**
* @brief Token::getToken gets the token
* @return token
*/
std::string Token::getToken() const{
return token;
}
//Comparison operators. They compare the token name not type
bool operator <(const Token& ls, const Token& rs){
return ls.getToken() < rs.getToken();
}
bool operator >(const Token& ls, const Token& rs){
return ls.getToken() > rs.getToken();
}
bool operator ==(const Token& ls, const Token& rs){
return ls.getToken() == rs.getToken();
}
|
1e51ac79a5e00dc9d0f35cae9e26dbdb1f87e53d
|
bc4e22bf0389d8da65a5c9dd00e9aeea7c03ba13
|
/geomc/shape/shapedetail/IndexHelpers.h
|
de1fca9247d9871ea2d302dcaf84d1ffe92c85ca
|
[
"BSD-3-Clause"
] |
permissive
|
trbabb/geomc
|
07efefb8c7660852aab8bf0afbcc6f21a1425db3
|
439cdffbb3466721b3571f6ddc296e46996308c4
|
refs/heads/master
| 2023-04-08T09:01:41.422267
| 2022-09-01T07:20:51
| 2022-09-01T07:20:51
| 11,573,824
| 36
| 2
|
BSD-3-Clause
| 2022-09-01T07:20:52
| 2013-07-22T05:47:28
|
C++
|
UTF-8
|
C++
| false
| false
| 4,018
|
h
|
IndexHelpers.h
|
#include <utility>
#include <geomc/shape/Rect.h>
namespace geom {
namespace detail {
/*****************************************
* KDTree helpers *
*****************************************/
// basic shape
// (works on rects)
template <typename T, index_t N, typename D>
struct ShapeIndexHelper {
// can be anything unionable with a Rect
// (i.e. either a rect or a vec)
typedef Rect<T,N> bound_t;
static inline Vec<T,N> getPoint(const D& obj) {
return obj.center();
}
static inline T dist2(const D& obj, const Vec<T,N>& p) {
return obj.dist2(p);
}
static inline bound_t bounds(const D& obj) {
return obj.bounds();
}
};
// pointers to indexable shapes
template <typename T, index_t N, typename D>
struct ShapeIndexHelper< T, N, D* > {
typedef typename ShapeIndexHelper<T,N,D>::bound_t bound_t;
static inline Vec<T,N> getPoint(const D* obj) {
return ShapeIndexHelper<T,N,D>::getPoint(*obj);
}
static inline T dist2(const D* obj, const Vec<T,N>& p) {
return ShapeIndexHelper<T,N,D>::getDist2(*obj, p);
}
static inline bound_t bounds(const D* obj) {
return ShapeIndexHelper<T,N,D>::bounds(*obj);
}
};
// key / value pairs
// (delegate to the shape helper of the key)
template <typename T, index_t N, typename K, typename V>
struct ShapeIndexHelper< T, N, std::pair<K, V> > {
typedef typename ShapeIndexHelper<T,N,K>::bound_t bound_t;
static inline Vec<T,N> getPoint(const std::pair<K,V>& obj) {
return ShapeIndexHelper<T,N,K>::getPoint(obj.first);
}
static inline T dist2(const std::pair<K,V>& obj, const Vec<T,N>& p) {
return ShapeIndexHelper<T,N,K>::getDist2(obj.first);
}
static inline bound_t bounds(const std::pair<K,V>& obj) {
return ShapeIndexHelper<T,N,K>::bounds(obj.first);
}
};
// bare vector
template <typename T, index_t N>
struct ShapeIndexHelper< T, N, Vec<T,N> > {
typedef Vec<T,N> bound_t;
static inline Vec<T,N> getPoint(const Vec<T,N>& v) {
return v;
}
static inline T dist2(const Vec<T,N>& v, const Vec<T,N>& p) {
return v.dist2(p);
}
static inline Vec<T,N> bounds(const Vec<T,N>& v) {
return v;
}
};
// bounded shapes
template <typename T, index_t N>
struct ShapeIndexHelper< T, N, Bounded<T,N> > {
typedef Rect<T,N> bound_t;
inline Vec<T,N> getPoint(const Bounded<T,N>& r) {
return r.bounds().center();
}
static inline T dist2(const Bounded<T,N>& r, const Vec<T,N>& p) {
return r.bounds().clip(p).dist2(p);
}
static inline bound_t bounds(const Bounded<T,N>& r) {
return r.bounds();
}
};
// returns an upper bound on the squared distance to the nearest object
// to `p` in mimimum bounding box `r`.
template <typename T, index_t N>
T worst_case_nearest2(const Vec<T,N>& p, const Rect<T,N>& r) {
T result = std::numeric_limits<T>::max();
// each face of the box must have an object touching it, if it is a minimal box.
// each face has a farthest corner where such an object could be hiding,
// and we want the nearest of these.
Vec<T,N> far_extremes;
Vec<T,N> near_extremes;
for (index_t axis = 0; axis < N; axis++) {
T lodist = std::abs(p[axis] - r.lo[axis]);
T hidist = std::abs(p[axis] - r.hi[axis]);
far_extremes[axis] = lodist > hidist ? r.lo[axis] : r.hi[axis];
near_extremes[axis] = lodist > hidist ? r.hi[axis] : r.lo[axis];
}
for (index_t axis = 0; axis < N; axis++) {
Vec<T,N> face_extreme = far_extremes;
// along this axis, we only need the nearer face:
face_extreme[axis] = near_extremes[axis];
result = std::min(result, (face_extreme - p).mag2());
}
return result;
}
} // namespace detail
} // namespace geom
|
8fd7fdc7752187a36add8bc68854f96c01a22dea
|
3eee65c4f88b89c7647fa5452da9067dbe3cf67f
|
/source/private/user_info.hh
|
f83de91d54b37f75fd86db5823c3ccfdfe53f2d9
|
[
"BSL-1.0"
] |
permissive
|
vinzenz/ircpp
|
3ca52842d478d6cb45d457e71177a9889e352f76
|
61e3023506a775f4adf64b57743f84a7ade2d1f8
|
refs/heads/master
| 2021-01-22T12:12:21.071727
| 2015-03-19T20:04:19
| 2015-03-19T20:04:19
| 5,329,515
| 4
| 1
| null | 2015-03-19T20:04:20
| 2012-08-07T15:13:16
|
C++
|
UTF-8
|
C++
| false
| false
| 619
|
hh
|
user_info.hh
|
// (C) 2012 Vinzenz Feenstra
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef GUARD_IRCPP_PRIVATE_USER_INFO_HH_INCLUDED
#define GUARD_IRCPP_PRIVATE_USER_INFO_HH_INCLUDED
#include <string>
namespace ircpp {
namespace detail {
struct user_info {
user_info()
: nick()
, user()
, host()
, real()
, pass()
{
}
std::string nick;
std::string user;
std::string host;
std::string real;
std::string pass;
};
}}
#endif //GUARD_IRCPP_PRIVATE_USER_INFO_HH_INCLUDED
|
c5a7fbfa2af7e7941636241578e26aeb555b0aa4
|
e0832bdb45cb06a4803652f2fe807acf0cb01fba
|
/RTREE.cpp
|
ee085d1052f15bb68679ee72f05e6071f4e31bd2
|
[] |
no_license
|
shyam49/Spoj-sulutions
|
a7e3950411317806bb3e0f257c6a007005cbab12
|
7918abab163e6f2d4a172f857708a0150143c1b0
|
refs/heads/master
| 2021-07-21T00:34:01.402539
| 2017-10-27T14:27:36
| 2017-10-27T14:27:36
| 108,554,356
| 0
| 0
| null | 2017-10-27T14:27:37
| 2017-10-27T14:11:52
|
C++
|
UTF-8
|
C++
| false
| false
| 1,360
|
cpp
|
RTREE.cpp
|
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define MOD 1000000007ll
ll ans[100010][3];
vector<vector<ll> > v(100010);
vector<vector<ll> > :: iterator it;
vector<ll> :: iterator it1;
bool flag = false;
void dfs(ll s) {
vector<ll> :: iterator it11;
flag = false;
it11 = v[s].begin();
while (it11 != v[s].end()) {
cout<<s<<" -----> "<<(*it11)<<endl;
dfs((*it11));
if (ans[s][0] < ans[(*it11)][0]+1) {
ans[s][0] = ans[(*it11)][0]+1;
ans[s][1] = ans[s][0];
}else if (ans[s][1] < ans[(*it11)][0] + 1) {
ans[s][1] = ans[(*it11)][0]+1;
}
ans[s][2] = max(ans[s][2], max (ans[(*it11)][2] , ans[(*it11)][0]+ans[(*it11)][1]));
flag = true;
it11++;
}
if(!flag) {
ans[s][0] = 0;
ans[s][1] = 0;
ans[s][2] = 0;
}
}
int main (void) {
ll n;
cin>>n;
ll i;
ll x, y;
for (i = 0; i < n-1; i++) {
cin>>x>>y;
v[x].push_back(y);
}
// it = v.begin();
// ll ctr = 0;
// it++;
// while (it != v.end()) {
// it1 = (*it).begin();
// while (it1 != (*it).end()) {
// cout<<(*it1)<<" ";
// it1++;
// }
// ctr++;
// if(ctr == n) {
// break;
// }
// cout<<endl;
// it++;
// }
ll r;
cin>>r;
ll q;
cin>>q;
ll s;
dfs(r);
for (i = 1; i <= n; i++) {
cout<<i<<" -----> "<<ans[i][0]<<" "<<ans[i][1]<<" "<<ans[i][2]<<endl;
}
while (q--) {
cin>>s;
}
return 0;
}
|
99e8055d5e3c76f21763bbf30ca25debd4316d3d
|
3de3a129238f2c9fcb5cabc714f2b727a2f389ba
|
/pongGame/gameFunc.cpp
|
7cfa0aa315de7ee46328e34df84e368617776063
|
[] |
no_license
|
YassirBouigherdaine/pongGame-cpp
|
7183ee996c55394eb85452da21d29a01e9b7f69a
|
6b6fca709f78c47195d51fd344d30ca3cb11df2b
|
refs/heads/main
| 2023-01-21T10:59:08.194772
| 2020-12-01T09:35:36
| 2020-12-01T09:35:36
| 315,706,029
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 5,090
|
cpp
|
gameFunc.cpp
|
#include"game.h"
COORD cursor_origin;
HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);
void gotoxy(int x, int y)
{
cursor_origin.X = 0;
cursor_origin.Y = 0;
SetConsoleCursorPosition(console, cursor_origin);
}
const int width = 50, height = 25;
bool game_over = false;
int max_score = 10, score1 = 0, score2 = 0;
Ball* ball = new Ball(width / 2, height / 2);
Player* paddle1 = new Player(width - 4, (height / 2) - 1);
Player* paddle2 = new Player(1, (height / 2) - 1);
// game functions
void drawscreen()
{
int ball_X = ball->get_currX_pos();
int ball_Y = ball->get_currY_pos();
int paddle1_X = paddle1->get_playerX_pos();
int paddle1_Y = paddle1->get_playerY_pos();
int paddle2_X = paddle2->get_playerX_pos();
int paddle2_Y = paddle2->get_playerY_pos();
std::cout << "\t\t PING PONG GAME\n\n";
std::cout << " Player 2 : "<<score2<<"\t\t Player 1 : "<<score1<<"\n\n";
for (int i = 0; i < height; i++)
{
std::cout << "\xB1";
for (int j = 0; j < width - 2; j++)
{
if (i == 0 || i == height - 1)
{
std::cout << "\xB1";
}
else if (i == ball_Y && j == ball_X)
{
std::cout << 'O';
}
// drawing paddle1
else if (i == paddle1_Y && j == paddle1_X)
{
std::cout << "\xDB";
}
else if (i == paddle1_Y + 1 && j == paddle1_X)
{
std::cout << "\xDB";
}
else if (i == paddle1_Y + 2 && j == paddle1_X)
{
std::cout << "\xDB";
}
// drawing paddle2
else if (i == paddle2_Y && j == paddle2_X)
{
std::cout << "\xDB";
}
else if (i == paddle2_Y + 1 && j == paddle2_X)
{
std::cout << "\xDB";
}
else if (i == paddle2_Y + 2 && j == paddle2_X)
{
std::cout << "\xDB";
}
else
{
std::cout << " ";
}
}
std::cout << "\xB1" << std::endl;
}
std::cout << "\n Player 1 : [A] to move up - [Z] to move down\n";
std::cout << " Player 2 : [W] to move up - [X] to move down\n";
std::cout << "\n Press [Q] to quit the game";
}
void input()
{
int ball_X = ball->get_currX_pos();
int ball_Y = ball->get_currY_pos();
int paddle1_X = paddle1->get_playerX_pos();
int paddle1_Y = paddle1->get_playerY_pos();
int paddle2_X = paddle2->get_playerX_pos();
int paddle2_Y = paddle2->get_playerY_pos();
ball->move_ball();
if (_kbhit())
{
// moving the ball when a button is pressed
if (ball->get_direction() == 0)
{
ball->generate_dir();
}
switch (_getch())
{
// moving paddle1
case 'a':
if (paddle1_Y > 0)
{
paddle1->moveUp_paddle();
}
break;
case 'z':
if (paddle1_Y + 2 < height)
{
paddle1->moveDown_paddle();
}
break;
// moving paddle2
case 'w':
if (paddle2_Y > 0)
{
paddle2->moveUp_paddle();
}
break;
case 'x':
if (paddle2_Y + 2 < height)
{
paddle2->moveDown_paddle();
}
break;
case 'q': game_over = true; // guit the game
}
}
drawscreen();
}
void ball_collis()
{
int ball_X = ball->get_currX_pos();
int ball_Y = ball->get_currY_pos();
int paddle1_X = paddle1->get_playerX_pos();
int paddle1_Y = paddle1->get_playerY_pos();
int paddle2_X = paddle2->get_playerX_pos();
int paddle2_Y = paddle2->get_playerY_pos();
// player can control ball direction by the part of paddle
// collision with player1
if (ball_X == paddle1_X - 1 && ball_Y == paddle1_Y ) // right part of paddle1
{
ball->turn_upLeft();
}
if (ball_X == paddle1_X - 1 && ball_Y == paddle1_Y+1) // middle part of paddle1
{
ball->turn_left();
}
if (ball_X == paddle1_X - 1 && ball_Y == paddle1_Y+2) // left part of paddle1
{
ball->turn_downLeft();
}
// collision with player2
if (ball_X == paddle2_X + 1 && ball_Y == paddle2_Y) // left part of paddle1
{
ball->turn_upRight();
}
if (ball_X == paddle2_X + 1 && ball_Y == paddle2_Y + 1) // middle part of paddle1
{
ball->turn_right();
}
if (ball_X == paddle2_X + 1 && ball_Y == paddle2_Y + 2) // right part of paddle1
{
ball->turn_downRight();
}
// collision with walls
// top wall
if (ball_Y == 1 && ball->get_direction() == 5)
{
ball->turn_downRight();
}
if (ball_Y == 1 && ball->get_direction() == 4)
{
ball->turn_downLeft();
}
// bottom wall
if (ball_Y == height - 2 && ball->get_direction() == 3)
{
ball->turn_upRight();
}
if (ball_Y == height - 2 && ball->get_direction() == 2)
{
ball->turn_upLeft();
}
// right wall
if (ball_X == width - 3)
{
score2++;
ball->update_pos();
ball->turn_left();
}
// left wall
if (ball_X == 0)
{
score1++;
ball->update_pos();
ball->turn_right();
}
}
void check_win()
{
if (score1 == max_score)
{
std::cout << "\n Player 1 wins \n";
game_over = true;
}
if (score2 == max_score)
{
std::cout << "\n Player 2 wins \n";
game_over = true;
}
}
void destroy()
{
delete ball;
delete paddle1;
delete paddle2;
}
void run_game()
{
srand((unsigned)time(NULL));
drawscreen();
while (!game_over)
{
SetConsoleCursorPosition(console, cursor_origin);
input();
ball_collis();
check_win();
}
destroy();
}
|
26a6c7567f567f936602640c93cf8f89d06a13dd
|
5b98b0244ec6c53164ea60a0fcf4d2d6e83d1cb3
|
/Factory/Abstract_Factory/pizza_store.h
|
600c21b12ab7b9c619894b21bdd35e1ef7440740
|
[] |
no_license
|
martinnobis/Head-First-Design-Patterns-Cpp
|
bd137cde4f94228991224b685dfa5dcfbc417531
|
4c05e2cfdce1ead6b24d5bca2466133293386855
|
refs/heads/master
| 2021-09-15T05:47:11.300397
| 2018-05-27T07:53:59
| 2018-05-27T07:53:59
| 127,617,469
| 5
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 327
|
h
|
pizza_store.h
|
#ifndef _PIZZA_STORE_H_
#define _PIZZA_STORE_H_
#include <string>
#include <memory>
#include "pizze/pizza.h"
class PizzaStore {
public:
std::shared_ptr<Pizza> OrderPizza(std::string type) const;
protected:
virtual std::shared_ptr<Pizza> CreatePizza(std::string type) const = 0;
};
#endif // _PIZZA_STORE_H_
|
3fd8cbb2d5280957e0e24f88c33ade3e10871c5a
|
52a3c434e69f1e1c421f873df725e8145b48c82e
|
/Entity.h
|
5cdfc1834b9c016c4b566e60ad6460c400a99edd
|
[] |
no_license
|
drakerutherford/CSCI_4448Final
|
c09b4483f774fa159d1561b92dd622bcfad6544d
|
9b50610537224ef0f007297dfa369eb5499e2043
|
refs/heads/master
| 2020-11-25T16:08:50.470694
| 2019-12-18T20:46:21
| 2019-12-18T20:46:21
| 228,749,563
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 446
|
h
|
Entity.h
|
#ifndef ENTITY_H
#define ENTITY_H
#include <curses.h>
class Entity
{
public:
Entity(char s);
virtual ~Entity();
int getX();
int getY();
int getSprite();
void setX(int x);
void setY(int y);
void setSprite(char s);
void draw(WINDOW * playarea);
protected:
int xcoord = 0;
int ycoord = 0;
char sprite;
private:
};
#endif // ENTITY_H
|
20f953e24bff626b4f58bcb1242d920ba08fafb4
|
09ea6ee1dada2accbe567c17fae31295496242a7
|
/lib/include/pool/details/buffer/stack.hpp
|
b35488001dd8e85c40a2f68843fe24d496be1027
|
[] |
no_license
|
matovitch/dmit
|
f40b1d2fde7d8e63aaa1fc4b831d28260d405729
|
8017690ffc354aa68b5b7b6188f867450457917a
|
refs/heads/master
| 2023-01-13T14:30:52.303532
| 2023-01-03T12:52:39
| 2023-01-03T12:52:39
| 180,006,049
| 3
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,592
|
hpp
|
stack.hpp
|
#pragma once
#include "pool/details/buffer/abstract.hpp"
#include <type_traits>
#include <cstdint>
namespace pool_details
{
namespace buffer
{
template <class Traits>
class TStack : public Traits::Abstract
{
using Memory = typename Traits::Memory;
using Type = typename Traits::Type;
static constexpr auto head = Traits::head;
static constexpr auto tail = Traits::tail;
public:
TStack()
{
_head = head(&_memory);
_tail = tail(&_memory);
}
Type* allocate() override
{
if (_head == _tail)
{
return nullptr;
}
return _head++;
}
void clean()
{
auto temp = head(&_memory);
while (temp != _head)
{
temp->~Type();
temp++;
}
_head = head(&_memory);
}
~TStack()
{
clean();
}
private:
Type* _head = nullptr;
const Type* _tail = nullptr;
Memory _memory;
};
namespace stack
{
template <class StackType, std::size_t SIZE>
struct TTraits
{
using Type = StackType;
using Abstract = TAbstract<Type>;
using Memory = std::aligned_storage_t<sizeof(Type) * SIZE, alignof(Type)>;
static constexpr auto head = [](Memory* memoryPtr) { return reinterpret_cast<Type*>(memoryPtr) ; };
static constexpr auto tail = [](Memory* memoryPtr) { return reinterpret_cast<Type*>(memoryPtr) + SIZE ; };
};
template <class Type, std::size_t SIZE>
using TMake = TStack<TTraits<Type, SIZE>>;
} // namespace stack
} // namespace buffer
} // namespace pool_details
|
ee67b8049f1cf9c0e753ab0ad157f9be471fbdcf
|
a292fc5826e96ec2f954873c8014c288e7c29cc6
|
/src/local_panel.h
|
e7a4d34c1cd92f0f9a73a69217ce5ceaa9214f53
|
[] |
no_license
|
sammy-SC/ftp-client
|
2b42d43be7e3648391db447ce4cbc3d832620379
|
7451e5d0989194f58a4f8ecc3526bb24e61a5237
|
refs/heads/master
| 2020-04-05T23:04:54.489562
| 2015-08-21T08:00:43
| 2015-08-21T08:00:43
| 10,667,378
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,115
|
h
|
local_panel.h
|
#ifndef LOCAL_PANEL_H_oeauhroq3298039oiorishorsihtoi3h4
#define LOCAL_PANEL_H_oeauhroq3298039oiorishorsihtoi3h4
#include <deque>
#include <string>
#include "ui_window.h"
/*! Represent local file system
*
*/
class Local_panel: public UI_window
{
protected:
const char * m_title;
//! Contains files and folders in current directory.
std::deque <std::string> m_files;
//! Index of currently highlighted item.
short unsigned m_choice;
public:
Local_panel( int, int , int , int , const char * );
void set_content( void );
/*! lists current directory and displays it.
*
*/
void list_directory( void );
/*! propagates key down event further.
* \param key code pressed.
* \return if something has changed returns true, otherwise false.
*/
bool key_down( int );
/*! when user chooses to upload a file this method returns filepath
* \return filepath
*/
const char * upload ( void ) const;
/*! creates new folder on local file system
* \return filepath
*/
void new_folder( const char * );
void m_delete ( const char * );
};
#endif //LOCAL_PANEL_H_oeauhroq3298039oiorishorsihtoi3h4
|
f3a250c38cb73238bab9a8e5af4da4c4a91543e1
|
4d948347f8eea87c1c41fe7475bb8e46a7855b98
|
/cses_dp/counting_tilings.cpp
|
31272b804f1a1d7ac78206a5f6bba4ad86e3ea85
|
[] |
no_license
|
nalini21/CSES
|
54e545cab01bb30a73302c002c2d2281d8654866
|
5da43fb1d9c786b3ea16968d7b21fec34255d1d0
|
refs/heads/main
| 2023-08-25T13:47:51.279825
| 2021-09-09T08:08:50
| 2021-09-09T08:08:50
| 398,581,399
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,445
|
cpp
|
counting_tilings.cpp
|
#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int MOD = (int) 1e9+7;
void generate_next_masks(int current_mask, int i, int next_mask, int n, vector<int>& next_masks){
if(i == n + 1){
next_masks.push_back(next_mask);
return;
}
if((current_mask & (1 << i)) != 0)
generate_next_masks(current_mask, i + 1, next_mask, n, next_masks);
if(i != n)
if((current_mask & (1 << i)) == 0 && (current_mask & (1 << (i+1))) == 0)
generate_next_masks(current_mask, i + 2, next_mask, n, next_masks);
if((current_mask & (1 << i)) == 0)
generate_next_masks(current_mask, i + 1, next_mask + (1 << i), n, next_masks);
}
int dp[1001][1<<11];
int solve(int col, int mask, const int m, const int n){
// BASE CASE
if(col == m + 1){
if(mask == 0)
return 1;
return 0;
}
if(dp[col][mask] != -1) return dp[col][mask];
int answer = 0;
vector<int> next_masks;
generate_next_masks(mask, 1, 0, n, next_masks);
for(int next_mask: next_masks){
answer = (answer + solve(col + 1, next_mask, m, n)) % mod;
}
return dp[col][mask] = answer;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
init_code();
int t = 1; //cin >> t;
while(t--){
read(n); read(m);
memset(dp, -1, sizeof dp);
cout << solve(1, 0, m, n);
}
return 0;
}
|
7710e68a13f0f0f3f85430f0d0bf60bc978ced9d
|
e95701b2d57006f0660d6d1382774d738b727229
|
/Others/Arduino_Code/dht11_rpi/dht11_rpi.ino
|
59c14c92b08d80202e995c6aef56eb6481e90526
|
[
"MIT"
] |
permissive
|
DuanWeiye/rpiBot
|
1cd78ad4dc64d93b1ecb4fbf83c6216231360212
|
188a7ec4099463dc5554d862f1a6da26f26ddd28
|
refs/heads/master
| 2020-05-29T13:28:14.781705
| 2014-10-07T13:20:14
| 2014-10-07T13:20:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 760
|
ino
|
dht11_rpi.ino
|
#include <dht11.h>
dht11 DHT11;
#define DHT11PIN 2
char buffer;
int connectStatus = 0;
void setup(){
Serial.begin(9600);
connectStatus = 0;
}
void loop()
{
if (Serial)
{
if (connectStatus == 0)
{
Serial.print("A");
connectStatus = 1;
return;
}
if (Serial.available())
{
buffer = Serial.read();
if (buffer == 'T')
{
char buf[17] = { 0 };
DHT11.read(DHT11PIN);
sprintf(buf, "H%.2dT%.2d|", (int)DHT11.humidity, (int)DHT11.temperature);
Serial.print(buf);
}
else
{
Serial.print("E");
}
//Serial.print("O");
}
}
else
{
connectStatus = 0;
}
delay(10);
}
|
7354ad332f754e3aeb8810fc9d7a0bb19a28e80f
|
308f5596f1c7d382520cfce13ceaa5dff6f4f783
|
/hphp/runtime/base/data-walker.h
|
74b191f2cc3fbeaf5b3f7f6d1e072d6c04f72513
|
[
"PHP-3.01",
"Zend-2.0",
"MIT"
] |
permissive
|
facebook/hhvm
|
7e200a309a1cad5304621b0516f781c689d07a13
|
d8203129dc7e7bf8639a2b99db596baad3d56b46
|
refs/heads/master
| 2023-09-04T04:44:12.892628
| 2023-09-04T00:43:05
| 2023-09-04T00:43:05
| 455,600
| 10,335
| 2,326
|
NOASSERTION
| 2023-09-14T21:24:04
| 2010-01-02T01:17:06
|
C++
|
UTF-8
|
C++
| false
| false
| 4,367
|
h
|
data-walker.h
|
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
*/
#pragma once
#include "hphp/runtime/base/req-hash-map.h"
#include "hphp/runtime/base/req-hash-set.h"
#include "hphp/util/functional.h" // for pointer_hash
namespace HPHP {
//////////////////////////////////////////////////////////////////////
struct HeapObject;
struct ArrayData;
struct ObjectData;
struct TypedValue;
//////////////////////////////////////////////////////////////////////
/*
* Walk an object or array and find characteristics of the data graph.
* Clients set up the walker to look for certain characteristics and call
* traverseData().
*
* Used by APC to make proper decisions about the format of the data to save.
*/
struct DataWalker {
/*
* Directive for the DataWalker. Define what to look for. In any case, we
* also detect cycles in the data.
*/
enum class LookupFeature {
DetectSerializable,
DetectNonPersistable,
};
/*
* The set of features found by the DataWalker according to what specified
* via LookupFeature.
*/
struct DataFeature {
DataFeature()
: isCircular(false)
, hasSerializable(false)
, hasNonPersistable(false) {
}
// whether the data graph is not a tree in a user-visible way (either
// circular or DAG of types with reference semantics like objects).
unsigned isCircular : 1;
// whether the data graph contains objects implementing Serializable
unsigned hasSerializable : 1;
// whether the data graph contains anything that can't be made persistent
unsigned hasNonPersistable : 1;
};
using PointerSet = req::fast_set<const HeapObject*,
pointer_hash<const HeapObject>>;
using PointerMap = req::fast_map<HeapObject*, HeapObject*,
pointer_hash<HeapObject>>;
public:
/*
* Sets up a DataWalker to analyze an object or array.
*/
explicit DataWalker(LookupFeature feature)
: m_feature(feature)
{}
DataFeature traverseData(ObjectData* data) const {
// keep track of visited nodes in an array or object graph
PointerSet visited;
DataFeature features;
traverseData(data, features, visited);
return features;
}
DataFeature traverseData(ArrayData* data,
PointerMap* seenArrs = nullptr) const {
// keep track of visited nodes in an array or object graph
PointerSet visited;
DataFeature features;
traverseData(data, features, visited, seenArrs);
return features;
}
private:
void traverseData(ArrayData* data,
DataFeature& features,
PointerSet& visited,
PointerMap* seenArrs = nullptr) const;
void traverseData(ObjectData* data,
DataFeature& features,
PointerSet& visited) const;
bool visitTypedValue(TypedValue rval,
DataFeature& features,
PointerSet& visited,
PointerMap* seenArrs = nullptr) const;
bool markVisited(HeapObject* ptr,
DataFeature& features,
PointerSet& visited) const;
void objectFeature(ObjectData* pobj, DataFeature&) const;
bool canStopWalk(DataFeature& features) const;
private:
// the feature to analyze for this walker
LookupFeature m_feature;
};
//////////////////////////////////////////////////////////////////////
}
|
1a3483c8d94709af36883d9295d3a4f138e004c9
|
ec53463522a8e5c49b4e052ef565797391427f92
|
/8 fibanocci.cpp
|
080808b0038f166c584fb86ba4038f1928dff263
|
[] |
no_license
|
daffafzn/latihan
|
af548d4c612269fabed5e68ae6c3c6b46bcf27ba
|
a2f365c35f070d71c3fc92020bd107247b5c8f48
|
refs/heads/master
| 2023-04-13T22:08:27.901349
| 2021-04-12T07:06:15
| 2021-04-12T07:06:15
| 263,915,234
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 514
|
cpp
|
8 fibanocci.cpp
|
#include <iostream>
using namespace std;
int main()
{
char opsi;
do
{
system("cls");
int a, b, c, suku;
cout<<"Membuat Deret Fibonacci\n";
cout<<"Masukkan nilai suku ke-: ";cin>>suku;
cout<<"Bilangannya adalah: \n";
a=0;b=1;
cout<<a<<endl<<b<<endl;
for(int i=3; i<=suku; i++)
{
c = a + b;
a = b;
b = c;
cout<<c<<endl;
}
cout << "\n\nApakah Anda Ingin Keluar ? " << endl;
cout << "Ketik y atau n ";
cin >> opsi;
}while(opsi == 'n' || opsi == 'N');
}
|
47f3ae8e78beaa0f95ac86b50775d2026794871f
|
0b6b66812ce84ae3aa4fe61205a08107557d3fbc
|
/Point.cpp
|
d2b0723a02460adf809c98777150176a5b590ca5
|
[] |
no_license
|
davorzdralo/math_wars
|
ca530e75201ac4405cffdccfd15c4562da58ee4a
|
c1c8915eb31ed8d7e02c1dc090944e095a956592
|
refs/heads/master
| 2021-01-21T23:08:44.345381
| 2011-12-12T10:03:05
| 2011-12-12T10:03:05
| 2,963,279
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 853
|
cpp
|
Point.cpp
|
#include "Point.h"
#include "Vector.h"
#include <cmath>
Point::Point(double x, double y, double z)
{
this->x = x;
this->y = y;
this->z = z;
}
bool Point::operator == (const Point& other) const
{
if(x == other.x && y == other.y && z == other.z)
return true;
else
return false;
}
bool Point::operator != (const Point& other) const
{
return !(*this == other);
}
double Point::distance(const Point& other) const
{
return sqrt(pow(x - other.x, 2) + pow(y - other.y, 2) + pow(z - other.z, 2));
}
Point Point::translate(double x, double y) const
{
return Point(this->x + x, this->y + y);
}
Point Point::translate(const Vector& v) const
{
return Point(x + v.getX(), y + v.getY());
}
std::ostream& operator << (std::ostream& stream, const Point& point)
{
return stream << '<' << point.x << ", " << point.y << ", " << point.z << '>';
}
|
a515a5b4244a56c6d30f792d76def483010f4e71
|
4a23e507f1f1a92fd773594da06e5d21ae90419d
|
/plugin/src/BindTexture.cpp
|
5e12a5b7d3334d9488046fd18f743b487b27ea48
|
[] |
no_license
|
M-Mueller/collage
|
10d053e2bcf7bedbb9fe76dc77462f14231a1783
|
5933191a946d44a9540ff7b56786b489c7cb1389
|
refs/heads/master
| 2021-01-20T20:53:49.547398
| 2016-12-26T16:37:58
| 2016-12-26T16:37:58
| 65,573,256
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,055
|
cpp
|
BindTexture.cpp
|
#include "BindTexture.h"
#include "Texture.h"
namespace collage
{
BindTexture::BindTexture(QObject* parent):
Entity(parent),
_texture(nullptr),
_unit(0)
{
}
void BindTexture::synchronize()
{
Entity::synchronize();
_unit.synchronize();
}
void BindTexture::render(GlProgram& /*program*/)
{
if(_texture)
_texture->bind(_unit.gl());
}
void BindTexture::resetStates(GlProgram& /*program*/)
{
if(_texture)
_texture->unbind(_unit.gl());
}
Texture* BindTexture::texture() const
{
return _texture;
}
int BindTexture::unit() const
{
return _unit;
}
void BindTexture::setTexture(Texture* texture)
{
if (_texture == texture)
return;
_texture = texture;
emit textureChanged(texture);
}
void BindTexture::setUnit(int unit)
{
if (_unit == unit)
return;
_unit = unit;
emit unitChanged(unit);
}
}
|
1afe9c155823fa7ba4aa11de8b5cf744638a62a1
|
871e8640d03a7bfe67eee803f9ef7ba3940662d3
|
/Boss.h
|
b86a3855ea74fa5509ffa97259a1cd27ab8a4fc3
|
[] |
no_license
|
Qiaorui/Legendary-of-Zelda
|
537c3998c4e977b6fecbef54d49026e496e761d3
|
0d5a658fd31f7993b2cc77b5686b7bc0bff1a7d9
|
refs/heads/master
| 2021-01-10T16:08:31.718072
| 2015-11-13T18:43:24
| 2015-11-13T18:43:24
| 44,050,950
| 2
| 0
| null | 2015-11-10T10:33:24
| 2015-10-11T12:18:01
|
C++
|
UTF-8
|
C++
| false
| false
| 474
|
h
|
Boss.h
|
#pragma once
#include "Enemy.h"
#include "Fireball.h"
class Boss :
public Enemy
{
public:
Boss();
~Boss();
void Draw();
void DrawRect(int tex_id, float xo, float yo, float xf, float yf, int s, int frame);
void Logic(vector<int> map, int width, cBicho* player);
void FireAttack();
void hurt(int point);
private:
int up, down, right, left; //direcciones de fuego
int mode;
int delayattack;
Fireball fireball;
int maxdistance = 200;
int CD = 60;
bool ulti;
};
|
7048d319b5a5f529abf25e16435c2183f9c86730
|
fa03f162c506e95d28e379286987451f6d255cbe
|
/Stack/stacktest.cpp
|
c03afefb4c3ef97661ca021fe2e484e55d2ea548
|
[] |
no_license
|
pajamapants3000/Challenges_Cpp
|
aece592b6df8b6f14f6223ec16d95fecdb0730eb
|
a620e868bb1695df1a2bc71617e7565e3972bbb9
|
refs/heads/master
| 2020-06-12T21:16:05.931929
| 2019-10-07T12:37:57
| 2019-10-07T12:37:57
| 194,425,676
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 582
|
cpp
|
stacktest.cpp
|
#define BOOST_TEST_MODULE Stack
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
/*
* Tests:
* Setup - for each test, build a stack of many values
* Test - push, pop, peek
* Teardown - none needed I think, other than perhaps destruction of stack object
* ...
* Apply to every stack implementation
* Additional tests per stack specialty, e.g. finding minimum value or
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdisabled-macro-expansion"
BOOST_AUTO_TEST_SUITE( stack_test_suite )
BOOST_AUTO_TEST_SUITE_END()
#pragma GCC diagnostic pop
|
31e7a3ec86deae3995e376618fcc9f141af3e62c
|
30f9474dd1afbfde3466a4eb2f20455dc37dad37
|
/plots/consumption-by-month.h
|
572e1853d83b7f7088f452e28a53be86f7133f68
|
[] |
no_license
|
eagerber/accounting
|
a37788f561a55d63a63d33a3f0b906a60478360a
|
12251daa54f39645472c5c8a4d3fa54bac3038e6
|
refs/heads/master
| 2021-01-21T14:02:22.600178
| 2016-05-26T04:41:34
| 2016-05-26T04:41:34
| 51,752,764
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 419
|
h
|
consumption-by-month.h
|
#ifndef CONSUMPTIONBYMONTH_H
#define CONSUMPTIONBYMONTH_H
#include "acc-plot.h"
#include <QVector>
class ConsumptionByMonth : public AccPlot
{
public:
explicit ConsumptionByMonth(QCustomPlot *customPlot);
~ConsumptionByMonth() = default;
virtual void replot() override;
private:
ConsumptionByMonth() = default;
void setupXAxis(double minTime, double maxTime);
};
#endif // CONSUMPTIONBYMONTH_H
|
6d9d6de76f72a76f47a33a64c96bbb4f8db431ec
|
d9dbec0d04ff93869bb8ed3fc353b67c505cd6ba
|
/Neolithic/Neolithic/DebugElement.cpp
|
61bfbbf79e994ab787d50defb23e61031db73d59
|
[] |
no_license
|
DaleChetney/Capstone_DaleChetney
|
9ee09717831ccddff834aba70faca929993176b8
|
93a018567766879aaabb5a7101e009ab1feb5722
|
refs/heads/master
| 2021-01-25T05:15:26.410410
| 2014-11-10T20:30:29
| 2014-11-10T20:30:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,363
|
cpp
|
DebugElement.cpp
|
#include "DebugElement.h"
DebugElement::DebugElement(char* label, float* ref)
{
floatRef=ref;
boolRef=NULL;
vecRef=NULL;
addWidget(control);
connect(control, SIGNAL(valueChanged(float)),this,SLOT(changeReference()));
}
DebugElement::DebugElement(char* label, float* ref,float min,float max,float init)
{
floatRef=ref;
boolRef=NULL;
vecRef=NULL;
control = new DebugSlider(label,min,max,true,100);
reinterpret_cast<DebugSlider*>(control)->setValue(init);
*floatRef=init;
addWidget(control);
connect(control, SIGNAL(valueChanged(float)),this,SLOT(changeReference()));
}
DebugElement::DebugElement(char* label, vec3* ref,vec3 init)
{
floatRef=NULL;
boolRef=NULL;
vecRef=ref;
}
DebugElement::DebugElement(char* label, bool* ref,bool init)
{
floatRef=NULL;
boolRef=ref;
vecRef=NULL;
control=new QCheckBox(label);
reinterpret_cast<QCheckBox*>(control)->setChecked(init);
*boolRef=init;
addWidget(control);
connect(control, SIGNAL(stateChanged(int)),this,SLOT(changeReference()));
}
void DebugElement::setHidden(bool currentState)
{
control->setHidden(currentState);
}
void DebugElement::changeReference()
{
if(floatRef!=NULL)
*floatRef=reinterpret_cast<DebugSlider*>(control)->value();
else if(boolRef!=NULL)
*boolRef=((QCheckBox*)control)->isChecked();
else if(vecRef!=NULL)
{
}
}
|
ba82cee3be65b79d2b6b086dc9197211d9b749e4
|
ca84490c8fe9c5ee77f3abf5ffad9379b95a0abb
|
/2019.3/2019.3.29/厦门双十林弘扬/random.cpp
|
2d2e2278eb3c7600d1d5269a63951ff23f8f620e
|
[
"ICU",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
LoganJoe/training-data
|
1df9dc6ef730f6c6a0130f50caed19556f5e1f87
|
b77b8e7271dcb73ce96c5236c433ce557e0e16f0
|
refs/heads/master
| 2021-10-26T03:17:44.883996
| 2019-04-10T06:39:01
| 2019-04-10T06:39:01
| 178,348,836
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,384
|
cpp
|
random.cpp
|
#include<bits/stdc++.h>
#define N 300005
#define mod 998244353
#define ll long long
int n, Q, head[N], ecnt, deep[N], fa[N][20], ans[N], len;
int mul (int x) { return x >= mod ? x - mod : x; }
ll Pow (ll x, ll k)
{
ll t = 1;
for (; k; k >>= 1, x = x * x%mod) if (k & 1) t = t * x%mod;
return t;
}
struct edge
{
int v, next;
}e[N << 1];
void add (int u, int v)
{
e[++ecnt] = { v,head[u] }; head[u] = ecnt;
}
void dfs (int u, int fath)
{
fa[u][0] = fath, deep[u] = deep[fath] + 1;
for (int i = head[u]; i; i = e[i].next)
if (e[i].v != fath) dfs (e[i].v, u);
}
void process ()
{
for (int j = 1; j < 20; j++)
for (int i = 1; i <= n; i++) fa[i][j] = fa[fa[i][j - 1]][j - 1];
}
int getlca (int u, int v)
{
if (deep[u] < deep[v]) std::swap (u, v);
for (int i = 19; ~i; i--) if (deep[fa[u][i]] >= deep[v]) u = fa[u][i];
if (u == v) return u;
for (int i = 19; ~i; i--) if (fa[u][i] != fa[v][i]) u = fa[u][i], v = fa[v][i];
return fa[u][0];
}
char s[1000005];
class Trie
{
struct node
{
int son[10], cnt, v, sum, deg, k, b, tag, fa, size;
}t[3000005];
public:
int root[N], cnt;
void insert (int &x, int fa, int dep, int v)
{
if (!x) x = ++cnt;
t[x].fa = fa, t[x].cnt += v;
if (dep > len) return (void)(t[x].tag += v, pushup (x));
insert (t[x].son[s[dep] - '0'], x, dep + 1, v);
pushup (x);
}
void debug (int x)
{
if (!x) return;
printf ("%d %d %d\n", x, t[x].cnt, t[x].tag);
for (int i = 0; i < 10; i++) if (t[x].son[i]) printf ("%d,%d->%d\n", x, i, t[x].son[i]);
for (int i = 0; i < 10; i++) debug (t[x].son[i]);
}
void pushup (int x)
{
t[x].k = t[x].b = t[x].sum = t[x].v = 0; t[x].deg = t[x].fa ? 1 : 0, t[x].size = 1;
for (int k = 0; k < 10; k++) if (t[t[x].son[k]].cnt > 0)
{
int v = t[x].son[k];
t[x].k = mul (t[x].k + t[v].k);
t[x].b = mul (t[x].b + t[v].b);
t[x].sum = mul (t[x].sum + t[v].sum);
t[x].v = mul (t[x].v + t[v].v);
t[x].deg++, t[x].size += t[v].size;
}
if (t[x].tag > 0) t[x].k = t[x].b = 0;
else
{
t[x].k = Pow (mul (t[x].deg + mod - t[x].k), mod - 2);
t[x].b = 1ll * (t[x].b + t[x].deg) * t [x].k%mod;
}
t[x].v = mul (t[x].v + 1ll * t[x].b * t[x].sum % mod);
t[x].v = mul (t[x].v + t[x].b);
t[x].sum = mul (t[x].k + 1ll * t[x].k * t[x].sum % mod);
}
void merge (int &x, int y)
{
if (!t[x].cnt || !t[y].cnt)
{
x = t[y].cnt ? y : x;
return;
}
t[x].cnt += t[y].cnt; t[x].tag += t[y].tag;
for (int k = 0; k < 10; k++)
merge (t[x].son[k], t[y].son[k]);
pushup (x);
}
int get (int x)
{
return 1ll * t[x].v * Pow (t[x].size, mod - 2) % mod;
}
}T;
void dfs2 (int u, int fath)
{
for (int i = head[u]; i; i = e[i].next)
if (e[i].v != fath) dfs2 (e[i].v, u), T.merge (T.root[u], T.root[e[i].v]);
ans[u] = T.get (T.root[u]);
}
int main ()
{
freopen ("random.in", "r", stdin);
freopen ("random.out", "w", stdout);
scanf ("%d", &n);
for (int i = 1, u, v; i < n; i++)
scanf ("%d%d", &u, &v), add (u, v), add (v, u);
dfs (1, 0); process ();
for (scanf ("%d", &Q); Q--;)
{
int u, v; scanf ("%d%d", &u, &v);
int lca = getlca (u, v);
scanf ("%s", s + 1); len = strlen (s + 1);
T.insert (T.root[u],0, 1, 1), T.insert (T.root[v], 0, 1, 1);
T.insert (T.root[lca], 0, 1, -1);
if (fa[lca][0]) T.insert (T.root[fa[lca][0]], 0, 1, - 1);
}
dfs2 (1, 0);
for (int i = 1; i <= n; i++) printf ("%d\n", ans[i]);
}
/*
3
1 2
1 3
2
1 2
012
1 3
0
*/
|
59ae21d9242da8688d870b53829dd8a27157812a
|
17953c4ff376936161fc89eb41d605b66699a38c
|
/src/ServerEngine/OssServer/FrontServer/FrontServerApp.h
|
e6b4c6ca55affb84043f6279778d78449d3dbeb6
|
[] |
no_license
|
equalizer-bourne/otherserver
|
8353fc495e71bb549b23759c58d1595e590be902
|
e6865f90ef8c008601a7e2c6657d102ae4820c40
|
refs/heads/master
| 2020-05-15T16:20:38.684392
| 2018-09-18T18:49:56
| 2018-09-18T18:49:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 306
|
h
|
FrontServerApp.h
|
#ifndef __FONTSERVER_APP_H__
#define __FONTSERVER_APP_H__
#include "MiniApr.h"
using namespace MINIAPR;
#include "servant/Application.h"
class FontServerApp:public Application
{
public:
virtual void initialize();
/**
*
**/
virtual void destroyApp();
};
extern FontServerApp g_app;
#endif
|
701fe792d882896942b8f2334cf5e802ba0066b8
|
d9d118f4f1d626a750897babce33b3ce34f11575
|
/x451/resource/ICCastResource/implementations/CICCastEventProvider.cpp
|
cb093420dc939aab99c1766e97ce2d5e1cac4049
|
[] |
no_license
|
HNarayana-youCanDoIt/Testproject
|
39af23d3ee4c2a413670c3dcd68dbd41424bbe91
|
226795327f50102989dfc8e12174823dddc2aa68
|
refs/heads/master
| 2023-03-26T05:57:57.044706
| 2021-03-31T11:14:53
| 2021-03-31T11:14:53
| 353,326,120
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,584
|
cpp
|
CICCastEventProvider.cpp
|
/*****************************************************************
* Project Harman Car Multimedia System
* (c) copyright 2018
* Company Harman/Becker Automotive Systems GmbH
* All rights reserved
* Secrecy Level STRICTLY CONFIDENTIAL
****************************************************************/
/**
* @file CICCastEventProvider.h
* @ingroup HMIComponent
* @author Rahul Balyan
* CICastEventProvider, class to propogate events for resource layer to the ICCast Application layer
*/
#include "CICCastEventProvider.h"
#include "logging.h"
CICCastEventProvider::CICCastEventProvider(QObject *pParent):
QObject(pParent)
{
LOG_INFO(Log::e_LOG_CONTEXT_ICCAST, "%s", __FUNCTION__);
}
CICCastEventProvider::~CICCastEventProvider()
{
LOG_INFO(Log::e_LOG_CONTEXT_ICCAST, "%s", __FUNCTION__);
}
void CICCastEventProvider::updateIcRenderCastAsyncReqCb(int iICCastResponseCbValue)
{
LOG_INFO(Log::e_LOG_CONTEXT_ICCAST, "%s: iICCastResponseCbValue: %d", __FUNCTION__, iICCastResponseCbValue);
emit sigUpdateIcRenderCastAsyncReqCb(iICCastResponseCbValue);
}
void CICCastEventProvider::updateIcProxyAvailability(bool bIcProxyAvailability)
{
LOG_INFO(Log::e_LOG_CONTEXT_ICCAST, "%s: bIcProxyAvailability: %d", __FUNCTION__, bIcProxyAvailability);
emit sigUpdateIcProxyAvailability(bIcProxyAvailability);
}
void CICCastEventProvider::updateIcCastValue(bool bIcCastValue)
{
LOG_INFO(Log::e_LOG_CONTEXT_ICCAST, "%s: bIcCastValue: %d", __FUNCTION__, bIcCastValue);
emit sigUpdateIcCastValue(bIcCastValue);
}
|
5a15ad3f8e9537a29b5826f3591a520559035004
|
59dfb7e40f22a7f6b361b7ad9bec2788f4f4e881
|
/src/include/player.h
|
7612c8b135220d834e57b2f16e770e0f8f324714
|
[
"MIT"
] |
permissive
|
tomconder/rivals
|
81f48b5b5c4e25b0e351aa824bb0485ae92f643a
|
489d92e5416bc74683e7eef7411637e67b303c02
|
refs/heads/main
| 2023-04-15T21:28:56.057703
| 2021-04-27T03:54:35
| 2021-04-27T03:54:35
| 356,113,083
| 0
| 0
|
MIT
| 2021-04-27T03:46:17
| 2021-04-09T02:45:11
|
C++
|
UTF-8
|
C++
| false
| false
| 813
|
h
|
player.h
|
#ifndef INCLUDE_PLAYER_H
#define INCLUDE_PLAYER_H
#include <SDL.h>
#include "globals.h"
#include "level.h"
class Player {
public:
explicit Player(Level *level);
void setNextMove(move::Move move);
void moveBackward(Level *level);
void moveForward(Level *level);
void moveLeft(Level *level);
void moveRight(Level *level);
void rotateLeft();
void rotateRight();
void stopMoving();
void update(Uint32 elapsedTime, Level *level);
direction::Direction getDirection() const;
int getX() const;
int getY() const;
private:
Uint32 timeElapsed = 0;
Uint32 timeToUpdate;
move::Move nextMove = move::Move::NONE;
int x, y;
direction::Direction direction;
bool checkDestination(int destx, int desty, Level *level);
};
#endif //INCLUDE_PLAYER_H
|
b36da67db8006de1bd217881da76483239458cc9
|
a3acce5bb43ab3959e4df6b69337bb6824549c64
|
/src/stonewall/messages/send_rsa_key/SendRSAKeyMessage.h
|
bb3dfbc2b21089f3d15079761a0c187984ce137c
|
[] |
no_license
|
OmerWexler/Atlas
|
80e7b84b183040e129e45bdef4df951241e2f595
|
2db75f387ed76270c12f2393ecab4bcde1f5dffb
|
refs/heads/main
| 2023-06-20T03:06:59.270652
| 2021-06-17T02:22:55
| 2021-06-17T02:22:55
| 312,613,290
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 307
|
h
|
SendRSAKeyMessage.h
|
#pragma once
#include "IMessage.h"
#include "RSAKey.h"
using namespace std;
class SendRSAKeyMessage: IMessage
{
private:
RSAKey Key;
bool m_IsPrivate;
public:
const static string TYPE;
SendRSAKeyMessage(RSAKey Key);
string GetType() const override;
RSAKey GetKey() const;
};
|
4809e4876ccec9f3434dab1bd04b24b91615218c
|
c6e8cc92c857f10004be4f4f585dce297213da05
|
/kobuki_fleet_state_machine/src/model/controller_task_list.h
|
6819c68d8834b90cf6487b6fdc2922148757d056
|
[] |
no_license
|
Jonmg/kobuki_fleet
|
cb69085bdd9b741eb649a3397d9a927fd75706f6
|
c4506e79ed882f84825ab6bc9f4473c0e640c78f
|
refs/heads/master
| 2020-12-02T08:13:41.117581
| 2017-09-08T15:07:08
| 2017-09-08T15:07:08
| 96,789,336
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 5,239
|
h
|
controller_task_list.h
|
/*
* controller_task_list.h
*
* Created on: Aug 2, 2016
* Author: phil
*/
#ifndef SRC_STATE_MACHINE_MODEL_CONTROLLER_TASK_LIST_H_
#define SRC_STATE_MACHINE_MODEL_CONTROLLER_TASK_LIST_H_
#include <ros/ros.h>
#include <std_msgs/UInt16.h>
#include <std_msgs/UInt8.h>
#include "kobuki_fleet_msgs/TaskList.h"
#include "kobuki_fleet_msgs/NewTask.h"
#include "kobuki_fleet_msgs/NewTaskList.h"
#include "kobuki_fleet_msgs/BiddingOffer.h"
#include <kobuki_fleet_msgs/AssignTask.h>
#include <nav_msgs/GetPlan.h>
#include "nav_msgs/Path.h"
#include <tf/transform_listener.h>
#include <tf/tf.h>
#include "model.h"
/**
* @file controller_task_list.h
* @brief contains declaration of class ControllerTaskList
*/
/**
* @enum TaskOrder
* @brief Enumeration type for order of tasks
*/
enum TaskOrder
{
PRIMARY = 1,//!< PRIMARY
SECONDARY = 2 //!< SECONDARY
};
/**
* @class ControllerTaskList
* @brief Class for managing the tasklist
* Class for altering, reading and re publishing the task list. States
* can access the controller and receive tasks
*/
class ControllerTaskList
{
public:
/**
* Constructor
* @param nh ros::NodeHandle reference to the shared node handle of the state machine
*/
ControllerTaskList(ros::NodeHandle& nh);
/**
* Destructor
*/
virtual ~ControllerTaskList();
/**
* Getter. Get task from the task list for a specific robot
* @brief Get robot specific task (use robot ID)
* @param id unsigned int
* @return ohm_kobuki_fleet::Task task or NULL in case no task with the id exists
*/
const kobuki_fleet_msgs::Task* const task(const TaskOrder& order)const;
/**
* Set state of a spcific task to a new status. Method checks, if tid and rid match (to determine
* wether the robot is allowed to perform actions on that tid).
* @brief Set state of a specific task
* @param tid std_msgs::UInt16 task id
* @param rid std_msgs::UInt16 robot id
* @param newState new state
* @return true in case of success, false in case rid and tid do not match or tid does not exist
*/
bool setTaskState(const std_msgs::UInt16& tid, std_msgs::UInt8& newState);
std_msgs::UInt8 getTaskState(const std_msgs::UInt16 tid);
private:
/**
* ROS callBack method for initial task list. Stores the received list in a member buffer
* @brief ROS callback method for task list
* @param msg kobuki_fleet_msgs::TaskList
*/
void callBackInitialTaskList(const kobuki_fleet_msgs::TaskList& msg);
/**
* ROS callBack method for a new task list. Stores the received task in a member buffer
* @brief ROS callback method for new tasks
* @param msg kobuki_fleet_msgs::NewTask
*/
void callBackNewTask(const kobuki_fleet_msgs::NewTask& msg);
bool receiveAssignationServer(kobuki_fleet_msgs::AssignTask::Request &req,
kobuki_fleet_msgs::AssignTask::Response &res);
/**
* ROS callBack method for task list. Stores the received list in a member buffer
* @brief ROS callback method for task list
* @param msg kobuki_fleet_msgs::TaskList
*/
void callBackTaskList(const kobuki_fleet_msgs::TaskList& msg);
/**
* @brief Method reading a specific task from a const tasklist message
* @param tid std_msgs::UInt16 TaskId of the searched task
* @param taskList kobuki_fleet_msgs::TaskList tasklist to read from
* @return pointer to task or NULL in case of non existend task ID
*/
const kobuki_fleet_msgs::Task* const task(const std_msgs::UInt16& tid, const kobuki_fleet_msgs::TaskList& taskList);
/**
* @brief Method reading a specific task from a const tasklist message
* @param tid std_msgs::UInt16 TaskId of the searched task
* @param taskList kobuki_fleet_msgs::TaskList tasklist to read from
* @return point to task or NULL in case of non existend task ID
*/
kobuki_fleet_msgs::Task* const task(const std_msgs::UInt16& tid, kobuki_fleet_msgs::TaskList& taskList);
ros::NodeHandle& nh_; ///< reference to the main node handle
ros::Subscriber subsInitialTaskList_; ///< ROS subscriber object
ros::Subscriber subsTaskList_; ///< ROS subscriber object
ros::Subscriber subsNewTask_; ///< ROS subscriber to a newTask
ros::Publisher pubTaskList_; ///< ROS publisher object for republishing task lists
ros::ServiceClient planSrvClient_;
ros::ServiceClient biddingClient_; //<bidd for a new task
ros::ServiceServer assignmentServer_; //<receive the assignation for a new task
tf::TransformListener _listener;
std::string _tfBaseFrame;
std::string _tfRobotFrame;
std::string biddOfferTopic_;
std::string assignTopic_;
int robot_id_;
kobuki_fleet_msgs::Task primary_task_;
kobuki_fleet_msgs::Task secondary_task_;
kobuki_fleet_msgs::TaskList* taskList_; ///< storage for current task list
kobuki_fleet_msgs::NewTaskList* newTaskList_;///< storage for current newTaskList
std_msgs::UInt16* lastTid_; ///< buffer for storing the id of the last changed task
std_msgs::UInt8* lastTstate_; ///< buffer for storing the state of the last changed task
Model* model_;
};
#endif /* SRC_STATE_MACHINE_MODEL_CONTROLLER_TASK_LIST_H_ */
|
4880d58b4b0b00c23190dfed55ef24a7294334e6
|
d6277591f92c4d021bee86f4532d87556922783c
|
/codes/codeforces/489D.cpp
|
dad12740d2079031c6c4f1d35a6292c417565737
|
[] |
no_license
|
masterchef2209/coding-solutions
|
83a1e8083f7db7f99ca16c9a8a584684f2ad8726
|
48c7aa127e2f2353cc18cf064fbd5b57875c1efa
|
refs/heads/master
| 2021-05-26T06:02:53.579607
| 2020-04-25T21:23:56
| 2020-04-25T21:23:56
| 127,779,581
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,111
|
cpp
|
489D.cpp
|
#include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
//using namespace boost::multiprecision;
using namespace std;
#define pb push_back
#define eb emplace_back
#define mp(x,y) make_pair(x,y)
#define mod 1000000007
double PI=3.1415926535897932384626;
typedef long long ll;
typedef long double ld;
typedef complex<ld> cd;
typedef pair<int, int> ii;
typedef tuple<int, int, int> iii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<ld> vd;
typedef vector<ll> vl;
#define f first
#define s second
vector< vi >succ(3005);
int arr[3005][3005];
signed main(){
ios_base::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL);
int n,m;
cin>>n>>m;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=n;j++)
{
arr[i][j]=0;
}
}
for(int i=0;i<m;i++)
{
int a,b;
cin>>a>>b;
succ[a].eb(b);
arr[a][b]=1;
}
int ans=0;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=n;j++)
{
if(i!=j)
{
int count=0;
for(auto &x:succ[i])
{
if(x!=i && x!=j && arr[x][j]==1)
count++;
}
ans+=( ((count)*(count-1))/2 );
}
}
}
cout<<ans<<endl;
return 0;
}
|
2f366b336574729c1d87184ac2869d0c52399263
|
eb52e59691b5c935823df166c9db2a11008f359c
|
/query_impl/select.hpp
|
c6341b08e83e45ca187fa2603a2b6a77eced6ecc
|
[] |
no_license
|
sprw121/sql_engine
|
040b2d1fa0949334e0ac8f9ba652276efb969730
|
669b959bd02abea0cf548b8a033972ff54bfe79c
|
refs/heads/master
| 2020-07-05T20:15:35.735719
| 2016-11-24T05:49:45
| 2016-11-24T05:49:45
| 73,982,488
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,720
|
hpp
|
select.hpp
|
#ifndef _SELECT_H
#define _SELECT_H
#include <iomanip>
#include <memory>
#include <string>
#include "../output_format.hpp"
#include "../parser.hpp"
#include "../table.hpp"
#include "../table_views.hpp"
#include "from.hpp"
#include "limit.hpp"
#include "offset.hpp"
#include "query_object.hpp"
#include "where.hpp"
// Iterator with the same interface as other table_view.
// Contains all the logic for manipulating the iterating
// over the underlying view based on where, limit, and offset
// clauses
struct from_iterator
{
from_t from;
where_t where;
limit_t limit;
offset_t offset;
from_iterator(from_t& from_,
parse_tree_node& where_node,
limit_t& limit_,
offset_t& offset_) : from(from_), where(where_node, from),
limit(limit_), offset(offset_)
{
if(!where.filter())
{
while(!from.view->empty() && !where.filter())
{
from.view->advance_row();
}
}
while(!from.view->empty() && offset.offset--)
{
from.view->advance_row();
while(!from.view->empty() && !where.filter())
{
from.view->advance_row();
}
}
}
cell access_column(unsigned int i)
{
return from.view->access_column(i);
}
void advance_row()
{
limit.limit--;
from.view->advance_row();
while(!from.view->empty() && !where.filter())
from.view->advance_row();
}
bool empty()
{
return (limit.limit == 0) || (from.view->empty());
}
unsigned int width()
{
return from.view->width();
}
unsigned int height()
{
if(from.view->height() - offset.offset < 0)
return 0;
else
return from.view->height() - offset.offset < limit.limit ?
from.view->height() : limit.limit;
}
};
// Base class for different types of selects (aggregate or column selection)
// Implements the run command, which iterate over the table view
// formed by the select and prints it to the screen.
// Constructor constructs the appropriate underlying interface.
struct select_t : query_object, table_view
{
from_iterator it;
select_t() = default;
select_t(from_t& from, parse_tree_node where, limit_t& limit, offset_t& offset) :
it(from, where, limit, offset) {};
std::shared_ptr<table_iterator> load() override
{
return std::make_shared<table_iterator>(*this);
}
void run() override
{
if(out_format == format_t::FORMATTED)
{
auto num_columns = width();
for(unsigned int i = 0 ; i < num_columns; i++)
{
std::cout << std::setw(10) << column_names[i];
if(i != num_columns - 1) std::cout << " | ";
}
std::cout << std::endl;
for(unsigned int i = 0 ; i < num_columns; i++)
{
std::cout << "----------";
if(i != num_columns - 1) std::cout << "-+-";
}
std::cout << std::endl;
while(!empty())
{
for(unsigned int i = 0; i < num_columns; i++)
{
cell value = access_column(i);
if(column_types[i] == cell_type::INT)
std::cout << std::setw(10) << value.i;
else
std::cout << std::setw(10) << value.d;
if(i != num_columns - 1) std::cout << " | ";
}
std::cout << std::endl;
advance_row();
}
}
else if (out_format == format_t::CSV)
{
auto num_columns = width();
for(unsigned int i = 0 ; i < num_columns; i++)
{
std::cout << column_names[i];
if(i != num_columns - 1) std::cout << ",";
}
std::cout << std::endl;
while(!empty())
{
for(unsigned int i = 0; i < num_columns; i++)
{
cell value = access_column(i);
if(column_types[i] == cell_type::INT)
std::cout << value.i;
else
std::cout << value.d;
if(i != num_columns - 1) std::cout << ",";
}
std::cout << std::endl;
advance_row();
}
}
}
};
std::unique_ptr<select_t> select_factory(parse_tree_node&, table_map_t&);
#endif
|
bf0ec2153485b18f5fba1bccb36065796afdbe36
|
7386a0ec949f3e113c3b9b5daadacdc5438c8988
|
/AndroidUtil/android/text/Editable.cpp
|
6c38664d14d0e3b518891f79baa62a3d98b12356
|
[] |
no_license
|
fnc12/Mitsoko
|
63d3e0ab370dc1483d65c246e085c21e88d075a1
|
9d0eac8eaba16055dc0d14259b26dda7772769c6
|
refs/heads/master
| 2021-09-07T08:04:37.277956
| 2018-02-19T19:55:30
| 2018-02-19T19:55:30
| 61,115,290
| 9
| 4
| null | 2017-07-18T19:16:41
| 2016-06-14T10:52:59
|
C++
|
UTF-8
|
C++
| false
| false
| 287
|
cpp
|
Editable.cpp
|
//
// Editable.cpp
// Groozim
//
// Created by John Zakharov on 17.08.16.
// Copyright © 2016 Outlaw Studio. All rights reserved.
//
#include "Editable.hpp"
#ifdef __ANDROID__
const std::string android::text::Editable::signature = "android/text/Editable";
#endif //__ANDROID__
|
176a9cc5f0c24a37b2a807c8dfc37eb2f6da3079
|
92c97452919e2ccb3a14aef8639f9c238338433d
|
/server/main.cpp
|
223d41d7428cbfa678ac15e4713c20fb3445f86e
|
[] |
no_license
|
pwestrich/game_engine
|
970eefaa0a01c5c913450d1c7541f5f63250fed4
|
9f7a3cc2c257ca75e0c906a303fe8c5115ad01dd
|
refs/heads/master
| 2021-03-13T00:07:44.089551
| 2015-05-04T04:19:14
| 2015-05-04T04:19:14
| 30,482,572
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 234
|
cpp
|
main.cpp
|
#include <cstdlib>
#include <iostream>
#include "TCPServer.h"
using namespace std;
int main(const int argc, const char **argv){
TCPServer *server = new TCPServer("localhost", 8);
server->start();
delete server;
return 0;
}
|
77b3da5e99cdfcc46e0b83507ae321741d97b6f5
|
9fada0cddd06bdba92a0103f2773fd00ba56cd11
|
/leetcode_c++/0145. Binary Tree Postorder Traversal.cpp
|
79a958d1b215f6f2d81b2f15927817b03c79ca3c
|
[] |
no_license
|
luhao2013/Algorithms
|
419d0b926e2308a79a8b66a45b49e83f6e0b968a
|
a32c096e192a89a88457ccc1899be10352bf1edd
|
refs/heads/master
| 2020-06-02T20:50:38.020766
| 2020-04-19T09:14:43
| 2020-04-19T09:14:43
| 191,305,885
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,795
|
cpp
|
0145. Binary Tree Postorder Traversal.cpp
|
/*
Given a binary tree, return the postorder traversal of its nodes' values.
Example:
Input: [1,null,2,3]
1
\
2
/
3
Output: [3,2,1]
Follow up: Recursive solution is trivial, could you do it iteratively?
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/binary-tree-postorder-traversal
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
*/
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<int> postorderTraversal(TreeNode* root) {
vector<int> result;
if(nullptr == root){
return result;
}
TreeNode* prev = nullptr;
stack<TreeNode*> s;
s.push(root);
while(!s.empty()){
TreeNode* cur = s.top();
if(nullptr == prev || prev->left == cur || prev->right == cur){
// 从上往下走
// 有左子树压左子树,否则压右子树,保留根节点
if(nullptr != cur->left){
s.push(cur->left);
} else if(nullptr != cur->right){
s.push(cur->right);
}
} else if(cur->left == prev){
// 从下往上走,回退到根节点,把右子树压进去
// 保留根节点
if(nullptr != cur->right){
s.push(cur->right);
}
} else { // 左右都已经访问过
result.push_back(cur->val);
s.pop();
}
prev = cur;
}
return result;
}
};
|
34a6ab8b9b3326ea0f31683b0df2beecdf73a1e9
|
9bccc708faa4c8908a4398250502818c3795a95a
|
/22.TheLastKNodeInTheLinkedList/main.cpp
|
76b84f7399142c56f45be6b0f92ea7130a51f45e
|
[] |
no_license
|
Convere/SwordOffer
|
f03ffdfe2ee55b173077b0b13007b63b9c7cb6b9
|
0e901f31d3f165aafa277fd1833b00dd206c6a79
|
refs/heads/master
| 2023-07-11T07:02:15.948997
| 2021-08-15T08:46:14
| 2021-08-15T08:46:14
| 381,646,077
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,168
|
cpp
|
main.cpp
|
#include <iostream>
#include <vector>
#include "ListNode.h"
using namespace std;
vector<int> numOfBurgers(int tomatoSlices, int cheeseSlices) {
int total_jumbo = 0;
int total_small = 0;
vector<int> res;
if ((4 * cheeseSlices - tomatoSlices) % 2 == 0)
{
total_small = (4 * cheeseSlices - tomatoSlices) / 2;
cout << total_small << endl;
}
else
return res;
total_small = cheeseSlices - total_jumbo;
res.push_back(total_jumbo);
res.push_back(total_small);
return res;
}
ListNode* findKthToTail(ListNode* list,int k)
{
printList(list);
if (list == nullptr|| k ==0)
throw new exception("list is empty!");
int length = 0;
ListNode* curlist = new ListNode();
curlist = list;
while (list->m_next!= nullptr)
{
list = list->m_next;
++length;
}
if (length < k)
throw new exception("list is empty!");
int target = length - k + 1;
while (target > 1)
{
curlist = curlist->m_next;
target--;
}
return curlist;
}
int main()
{
//printList(findKthToTail(newList(5), 2));
vector<int> res = numOfBurgers(16, 7);
for (auto a: res)
{
cout << a << endl;
}
system("pause");
return 0;
}
|
6ab0febf1fdd51556e4eceb60ba1a09168a41ced
|
57f53f50b1dd2610e88fbe28447fd376638dd389
|
/chap11/next.cpp
|
60b155c00ce6ee31e2959150f8db7533053783ee
|
[] |
no_license
|
geekyarthurs/cplusplus
|
2954f83f5c6e938ea7472fa309d11d8b316c5c18
|
5e1cbe6a644fb953f0a081bf138f9d281274f399
|
refs/heads/master
| 2021-04-13T20:07:46.902404
| 2020-04-20T05:00:54
| 2020-04-20T05:00:54
| 249,184,519
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 413
|
cpp
|
next.cpp
|
#include <iostream>
#include <string>
namespace IO
{
using namespace std;
void print(string msg);
string input(void);
} // namespace IO
void IO::print(string msg)
{
cout << msg;
}
std::string IO::input()
{
string msg;
getline(cin, msg);
return msg;
}
using namespace IO;
string name;
int main()
{
print("What is your name? \n>");
name = input();
print("Welcome " + name + "\n");
}
|
cd54b8a1f51d977f04936c655d3615ec3b0563e0
|
a3f5a221a0e17a40e0759afc883318a522f0e434
|
/Bst.h
|
4bfb691b386450215d9118f9339d3f25fa7438de
|
[] |
no_license
|
nikitosoleil/bst
|
0fa9662158b8f0aad6da0cfe76994075bae26d36
|
066bd4c72707f6114edc36548e8b1e4de469a084
|
refs/heads/master
| 2020-03-07T01:13:11.571899
| 2019-04-08T01:57:03
| 2019-04-08T01:57:03
| 125,647,835
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 236
|
h
|
Bst.h
|
#pragma once
namespace BST
{
template < class T >
class Base
{
public:
virtual void clear() = 0;
virtual int size() = 0;
virtual void insert(T &obj) = 0;
virtual bool erase(T &obj) = 0;
virtual bool find(T &obj, T &res) = 0;
};
}
|
4d8500d236d2c365b83f0e4ef7ff1879b5e4770e
|
de2a898f31d141ab4a4b13a07727c9e3db203891
|
/bench/depthwise_conv2d/base_depthwise_convolution_fixture.h
|
c0bf8d842ceb303e7c1a8e0f5d51f48e5d7033ab
|
[
"Apache-2.0"
] |
permissive
|
ProGTX/SYCL-DNN
|
b9812912029721f700756c725b6b1ec365042283
|
9b2d0b8e3cf2748aae751eecd2ae2ad1102290c1
|
refs/heads/master
| 2023-06-22T16:33:57.818064
| 2023-06-07T14:13:05
| 2023-06-07T14:13:05
| 217,677,953
| 0
| 0
|
Apache-2.0
| 2019-10-26T08:18:07
| 2019-10-26T08:18:06
| null |
UTF-8
|
C++
| false
| false
| 5,318
|
h
|
base_depthwise_convolution_fixture.h
|
/*
* Copyright Codeplay Software Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use these files except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef SYCLDNN_BENCH_FIXTURE_H_
#define SYCLDNN_BENCH_FIXTURE_H_
#include <benchmark/benchmark.h>
#include "sycldnn/conv2d/conv_type.h"
#include "sycldnn/depthwise_conv2d/params.h"
#include "sycldnn/depthwise_conv2d/sizes.h"
extern const char* commit_date;
extern const char* commit_hash;
class BaseDepthwiseConvolutionBenchmark : public benchmark::Fixture {
private:
using State = benchmark::State;
using DepthwiseConv2DParams =
sycldnn::depthwise_conv2d::DepthwiseConv2DParams;
using DepthwiseConvSizes = sycldnn::depthwise_conv2d::ConvSizes;
public:
// Adds the depthwise convolution parameters to the counter set.
void add_param_counters(State& state, DepthwiseConv2DParams const& params);
// Adds theoretical best-case bandwidth requirements to the counter set.
template <typename T>
void add_bandwidth_counters(State& state, DepthwiseConvSizes const& sizes);
// Records the number of elements processed to the counter set. How this is
// calculated varies based on the type of convolution.
template <typename ConvType>
void set_items_processed(State& state, DepthwiseConv2DParams const& params);
};
// Add a full set of counters corresponding to the depthwise convolution
// parameters.
void BaseDepthwiseConvolutionBenchmark::add_param_counters(
benchmark::State& state, DepthwiseConv2DParams const& params) {
state.counters["batch"] = params.batch;
state.counters["in_rows"] = params.in_rows;
state.counters["in_cols"] = params.in_cols;
state.counters["channels"] = params.channels;
state.counters["channel_multiplier"] = params.channel_multiplier;
state.counters["out_rows"] = params.out_rows;
state.counters["out_cols"] = params.out_cols;
state.counters["stride_rows"] = params.stride_rows;
state.counters["stride_cols"] = params.stride_cols;
state.counters["fil_rows"] = params.window_rows;
state.counters["fil_cols"] = params.window_cols;
state.counters["pad_rows"] = params.pad_rows;
state.counters["pad_cols"] = params.pad_cols;
}
// Calculate the optimal bandwidth requirements, and add corresponding counters.
// This assumes each filter and input element is read exactly once, rather than
// the actual behaviour where multiple threads may re-read the same values.
template <typename ElementType>
void BaseDepthwiseConvolutionBenchmark::add_bandwidth_counters(
benchmark::State& state, DepthwiseConvSizes const& sizes) {
// Compute the size of each element in bytes.
auto element_bytes = sizeof(ElementType);
state.counters["bytes_read"] =
(sizes.filter_size + sizes.input_size) * element_bytes;
state.counters["bytes_written"] = sizes.output_size * element_bytes;
}
template <>
void BaseDepthwiseConvolutionBenchmark::set_items_processed<
sycldnn::conv2d::conv_type::Forward>(benchmark::State& state,
DepthwiseConv2DParams const& params) {
// We require a fused multiply-add for each value in the input with each value
// in the filter, giving an upper bound on the number of items processed.
auto window_size = params.window_rows * params.window_cols;
auto tensor_size = params.batch * params.out_rows * params.out_cols *
params.channels * params.channel_multiplier;
auto num_ops = 2;
state.SetItemsProcessed(state.iterations() * window_size * tensor_size *
num_ops);
}
template <>
void BaseDepthwiseConvolutionBenchmark::set_items_processed<
sycldnn::conv2d::conv_type::InputBackprop>(
benchmark::State& state, DepthwiseConv2DParams const& params) {
// For the backprop steps we perform another convolution, so the only
// real difference is that the output is the input.
auto window_size = params.window_rows * params.window_cols;
auto tensor_size = params.batch * params.in_rows * params.in_cols *
params.channels * params.channel_multiplier;
auto num_ops = 2;
state.SetItemsProcessed(state.iterations() * window_size * tensor_size *
num_ops);
}
template <>
void BaseDepthwiseConvolutionBenchmark::set_items_processed<
sycldnn::conv2d::conv_type::FilterBackprop>(
benchmark::State& state, DepthwiseConv2DParams const& params) {
// We are accumulating the error in the filter, so we perform a convolution
// over the input with the output.
auto window_size = params.window_rows * params.window_cols;
auto tensor_size = params.batch * params.out_rows * params.out_cols *
params.channels * params.channel_multiplier;
auto num_ops = 2;
state.SetItemsProcessed(state.iterations() * window_size * tensor_size *
num_ops);
}
#endif // define SYCLDNN_BENCH_FIXTURE_H_
|
24f2a6f078376c5fc9babf2b17822edeff2d7dc3
|
5af7675b03adcbe19d95f81ba360f1a1b34f3513
|
/YRenderLab/YRenderLab/Public/YGM/Vector2.hpp
|
22cea95e7a0d92b2bfca6411608054d0dc33061e
|
[] |
no_license
|
fakersaber/YRenderLab
|
278d271edc5aae61a04b32587eee2530e657581f
|
c5b370255acd58d51f07416cc24651b53e30ade7
|
refs/heads/master
| 2021-06-22T17:23:53.009354
| 2021-03-01T06:09:26
| 2021-03-01T06:09:26
| 198,810,518
| 3
| 2
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,213
|
hpp
|
Vector2.hpp
|
#ifndef _YRENDER_YGM_VECTOR2_HPP_
#define _YRENDER_YGM_VECTOR2_HPP_
#include <Public/YGM/Vector.hpp>
namespace YGM {
template <typename T>
class Vector<2, T> {
private:
using value_type = T;
public:
template<typename U, typename V>
Vector(U x, V y) :
x(static_cast<value_type>(x)),
y(static_cast<value_type>(y)) {}
explicit Vector(value_type val) : Vector(val, val) {}
Vector() : Vector(static_cast<value_type>(0)) {}
Vector(const Vector& rhs) : Vector(rhs.x, rhs.y) {}
bool operator==(const Vector& rhs) {
return Math::Equal(x, rhs.x) && Math::Equal(y, rhs.y);
}
bool operator!=(const Vector& rhs) const {
return !Math::Equal(x, rhs.x) || !Math::Equal(y, rhs.y);
}
Vector& operator=(const Vector& rhs) {
x = rhs.x;
y = rhs.y;
return *this;
}
const T& operator[](int i) const { assert(i >= 0 && i < 2); return _data[i]; }
T& operator[](int i) { assert(i >= 0 && i < 2); return _data[i]; }
public:
const value_type* Data() const { return _data; }
value_type* Data() { return _data; }
public:
union
{
value_type _data[2];
struct {
union { value_type x, r, s, u; };
union { value_type y, g, t, v; };
};
};
};
}
#endif
|
cba2a571d01c054ffc4c3fa9d3eb66f4766edd06
|
f61fd4da5a70e7bf8d564afe2c6e6bfa9e51d0a4
|
/src/tcp/async/client.cc
|
0d71ee13fa8865fd2f8d332cdeee8fc9ee28b0c8
|
[] |
no_license
|
zakharvoit/libtcp
|
2f3383c075f3abb1caa2e86dd244bdcf3215b0ca
|
8c07eeef6f5d9c40e32deb19092344ab3812a19a
|
refs/heads/master
| 2021-01-15T14:43:13.440849
| 2017-10-24T17:04:19
| 2017-10-24T17:04:19
| 27,757,873
| 3
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,431
|
cc
|
client.cc
|
#include "tcp/async/client.hh"
#include "tcp/async/io_service.hh"
#include <sys/socket.h>
#include <unistd.h>
#include <stdexcept>
#include <cstring>
#include <cerrno>
using namespace std;
using namespace tcp::async;
using namespace tcp::util;
client::client()
: fd(socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0))
{
if (fd < 0) {
throw runtime_error(strerror(errno));
}
}
canceller client::connect(io_service& service,
tcp::util::address const& addr,
on_connect_cb cb)
{
auto ev = new connect_event(fd, addr, cb);
service.add_event(fd, ev);
return make_canceller(ev);
}
canceller client::read(io_service& service,
size_t count,
on_read_cb cb)
{
auto ev = new read_event(fd, count, cb);
service.add_event(fd, ev);
return make_canceller(ev);
}
canceller client::read_some(io_service& service,
on_read_cb cb)
{
auto ev = new read_some_event(fd, cb);
service.add_event(fd, ev);
return make_canceller(ev);
}
canceller client::write(io_service& service, buffer buffer, on_write_cb cb)
{
auto ev = new write_event(fd, buffer, cb);
service.add_event(fd, ev);
return make_canceller(ev);
}
client::client(client&& c)
{
fd = c.fd;
c.fd = -1;
}
client& client::operator=(client&& other)
{
close(fd);
fd = other.fd;
other.fd = -1;
return *this;
}
client::~client()
{
close(fd);
}
|
9b5d1da4ddaed7d828dc12b4bb30004afe688628
|
d3962aea9e8cabbee66c99cdc68c26c2eeefbac5
|
/Audio.h
|
91dc4ac56b565585a93f2854c9c0af9a8dcb853e
|
[] |
no_license
|
gavishap/Messaging-Application
|
04893d6c705b7dc70bbc5d148419368c8e26d0f8
|
ceec4a9cbccc77731f690b65a2da7ddb48135c47
|
refs/heads/main
| 2023-08-18T16:21:20.974963
| 2021-10-16T20:09:47
| 2021-10-16T20:09:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 115
|
h
|
Audio.h
|
#pragma once
#include "Media.h"
class Audio :public Media
{
public:
void display();//prints the audio
};
|
e447a8f9969522fc0bb5ae83fc7001162d5faa4b
|
0c5c0e6358d7913d1946c0ba8b767cb45f4036d7
|
/algos/importnat/maxProductSubArray.cpp
|
829f231980ea80b1bf11cf2b1e3a05a09c64a0b8
|
[] |
no_license
|
ankursinha03/Competitive_Programming
|
a551eb8f882c50d5801727d350c9fd219cb034db
|
1ab539cc5d13fb51308ee9cdbddfda021e796903
|
refs/heads/main
| 2023-07-28T21:00:55.494333
| 2021-09-25T11:54:42
| 2021-09-25T11:54:42
| 391,443,604
| 0
| 0
| null | 2021-09-25T11:54:43
| 2021-07-31T19:11:38
| null |
UTF-8
|
C++
| false
| false
| 1,077
|
cpp
|
maxProductSubArray.cpp
|
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int MAXPRODUCTSUBARRAY(vector<int> v)
{
int numofNEG = 0;
int currProduct = 1;
int ans = 0;
int n = v.size();
for (int i = 0; i < n; i++)
{
if (v[i] > 0)
{
currProduct *= v[i];
if (currProduct > ans)
ans = currProduct;
}
else if (v[i] < 0)
{
numofNEG = 0;
for (int k = i + 1; k < n; k++)
{
if (v[k] == 0)
{
break;
}
if (v[k] < 0)
numofNEG++;
}
if (numofNEG >= 1 || currProduct < 0)
currProduct *= v[i];
if (currProduct > ans)
ans = currProduct;
}
else
{
currProduct = 1;
}
}
return ans;
}
int main()
{
using namespace std;
vector<int> v = {-20, -40, 0, -2, 0, 500};
std::cout << MAXPRODUCTSUBARRAY(v);
return 0;
}
|
e9f28df637abe774930199eca91d060ca89cd003
|
f0b46298d48e21887050c345531f842ee52fac43
|
/strllnode/strllnode.cpp
|
d55d4a09fb5125d5ddceb5a45e571e5367471d8c
|
[] |
no_license
|
leilanihagen/c--data-structs
|
5942125f178af226e817869773c695eaa5086d50
|
8897477bbabe51cd9371886fd60b338f192f5514
|
refs/heads/master
| 2022-12-09T01:58:11.436206
| 2020-09-15T00:54:56
| 2020-09-15T00:54:56
| 293,194,742
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,704
|
cpp
|
strllnode.cpp
|
#include <iostream>
#include <cstring>
#include "strllnode.h"
namespace DataStructs{
STRLLNode::STRLLNode(const char str[]){
char* dataNonConst = (char*)str;
this->data = new char[strlen(dataNonConst) + 1];
strncpy(this->data, dataNonConst, (strlen(dataNonConst) + 1));
this->next = NULL;
headDataNeedsInit = false;
return;
}
STRLLNode::STRLLNode() : data(), next(NULL), headDataNeedsInit(true) {}
//STRLLNode::~STRLLNode(){
// DestroyList(this);
//}
//STRLLNode& STRLLNode::operator=(const STRLLNode& object){
// STRLLNode& nonConstObj = (STRLLNode&)object;
// // Check if this == object, if so return
// // Create buffer copy of list "object"
// if(this != &object){
// DestroyList(this);
// this = DuplicateList(&nonConstObj);
// return *this;
// }
//// STRLLNode* listCopy = DuplicateList(&nonConstObj);
//// // Delete this list
//// DestroyList(this);
//// // Set *this = buffer copy
//// this = listCopy;
//// //return *this
//// return *this;
//}
//STRLLNode::STRLLNode(const STRLLNode& object){
// STRLLNode& nonConstObj = (STRLLNode&)object;
// this = DuplicateList(&nonConstObj);
//}
STRLLNode STRLLNode::DuplicateList(){
return *DuplicateList(this);
}
STRLLNode* STRLLNode::DuplicateList(STRLLNode* node){
if(node == NULL){
return NULL;
}
STRLLNode* dupeNode = new STRLLNode(node->data);
dupeNode->next = DuplicateList(node->next);
return dupeNode;
}
void STRLLNode::Append(const char data[]){
char* dataNonConst = (char*)data;
if(headDataNeedsInit){
this->data = new char[strlen(dataNonConst) + 1];
strncpy(this->data, dataNonConst, (strlen(dataNonConst) + 1));
this->next = NULL;
headDataNeedsInit = false;
return;
}
Append(this, dataNonConst);
}
void STRLLNode::Append(STRLLNode* node, char data[]){
if(node->next == NULL){
STRLLNode* newNode = new STRLLNode;
newNode->data = new char[strlen(data) + 1];
strncpy(newNode->data, data, (strlen(data) + 1)); // +1 for null terminator.
node->next = newNode;
newNode->next = NULL;
}
else{
Append(node->next, data);
}
}
void STRLLNode::DestroyThisList(){
DestroyList(this);
}
void STRLLNode::DestroyList(STRLLNode* node){
if(node == NULL){
return;
}
if(node->next != NULL){
DestroyList(node->next);
}
delete[] node;
node = NULL;
}
void STRLLNode::PrintNodes(){
PrintNodes(this);
}
void STRLLNode::PrintNodes(STRLLNode* node){
if(node == NULL){
return;
}
std::cout << node->data << std::endl;
PrintNodes(node->next);
}
int STRLLNode::AppendUnique(const char str[]){
char* strNonConst = (char*)str;
return AppendUnique(this, strNonConst);
}
int STRLLNode::AppendUnique(STRLLNode* node, char str[]){
if(node == NULL){
return 1; // Error code 1 == did not append.
}
if(strcmp(node->data, str) == 0){
return 1;
}
if(node->next == NULL){
STRLLNode* unique = new STRLLNode;
unique->data = new char[strlen(str) + 1];
strncpy(unique->data, str, (strlen(str) + 1));
node->next = unique;
unique->next = NULL;
return 0; // Successfully appended unique.
}
AppendUnique(node->next, str);
}
void STRLLNode::MoveTailToHead(){
if(this == NULL or this->next == NULL){
// Nothing to move, list contains 1 node.
return;
}
STRLLNode* oldHead = this;
STRLLNode* secondToLast = GetSecondToLast(this);
STRLLNode* newHead = secondToLast->next;
secondToLast->next = NULL; // New end of list.
newHead->next = oldHead;
this = newHead;
}
STRLLNode* STRLLNode::GetSecondToLast(STRLLNode* node){
// We know here that list has at least 2 nodes...
if(node->next->next == NULL){
return node;
}
return GetSecondToLast(node->next);
}
}
|
83d976688c4760bac2311202d1164e0ea7cf38a8
|
c426c1d5cca7d3e1f716b84f12032bf9ba8b9629
|
/src/Вектора (Одномерные массивы)/HML_EqualityOfVectors.tpp
|
2f81bc1bd897f04b2822a3ffb3cef4f3f53ef434
|
[
"MIT",
"Apache-2.0"
] |
permissive
|
Harrix/Harrix-MathLibrary
|
24ce89a6c567fa456ef166f1a3f33c322f492118
|
19a753874cb5e792ba64b5c2d88a994e0644fccb
|
refs/heads/main
| 2022-07-24T03:28:48.376683
| 2022-07-08T13:45:35
| 2022-07-08T13:45:35
| 10,152,735
| 7
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 532
|
tpp
|
HML_EqualityOfVectors.tpp
|
template <class T> bool HML_EqualityOfVectors(T *a, T *b, int VHML_N)
{
/*
Функция проверяет равенство векторов.
Входные параметры:
a - первый вектор;
b - вторый вектор;
VHML_N - размер векторов.
Возвращаемое значение:
true - вектора совпадают;
false - вектора не совпадают.
*/
bool VHML_Result=true;
for (int i=0;i<VHML_N;i++)
if (a[i]!=b[i]) VHML_Result=false;
return VHML_Result;
}
|
51d3a818f50a975ac679d28bdd224d9f1b632473
|
6180044a1e2a1b7dea59ba3eef7e93d0a14bf011
|
/KDBits/ConfigPath.cpp
|
4f8d756234629109b34e6825b98e4d7b2e84c038
|
[] |
no_license
|
symanli/KDBits
|
a933f41bde70ebba1af5bcc328d0cb8d2563f260
|
4d4a61e435d3977fc34012e91432b954c28fcb56
|
refs/heads/master
| 2022-12-26T09:00:14.865262
| 2020-10-11T08:06:21
| 2020-10-11T08:06:21
| null | 0
| 0
| null | null | null | null |
GB18030
|
C++
| false
| false
| 2,817
|
cpp
|
ConfigPath.cpp
|
// ConfigPath.cpp : 实现文件
//
#include "stdafx.h"
#include "KDBits.h"
#include "ConfigPath.h"
#include "pathselectdlg.h"
#include "configuration.h"
// CConfigPath 对话框
IMPLEMENT_DYNAMIC(CConfigPath, CPropertyPage)
CConfigPath::CConfigPath()
: CPropertyPage(CConfigPath::IDD)
, m_NetGamePath(_T(""))
, m_LocalGamePath(_T(""))
, m_OtherPath(_T(""))
{
}
CConfigPath::~CConfigPath()
{
}
void CConfigPath::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
DDX_Text(pDX, IDC_NETGAME_PATH, m_NetGamePath);
DDV_MaxChars(pDX, m_NetGamePath, 512);
DDX_Text(pDX, IDC_LOCALGAME_PATH, m_LocalGamePath);
DDV_MaxChars(pDX, m_LocalGamePath, 512);
DDX_Text(pDX, IDC_OTHER_PATH, m_OtherPath);
DDV_MaxChars(pDX, m_OtherPath, 512);
}
BEGIN_MESSAGE_MAP(CConfigPath, CPropertyPage)
ON_BN_CLICKED(IDC_NETGAME_BRW, &CConfigPath::OnBnClickedNetgameBrw)
ON_BN_CLICKED(IDC_LOCALGAME_BRW, &CConfigPath::OnBnClickedLocalgameBrw)
ON_BN_CLICKED(IDC_OTHER_BRW, &CConfigPath::OnBnClickedOtherBrw)
END_MESSAGE_MAP()
// CConfigPath 消息处理程序
void CConfigPath::OnBnClickedNetgameBrw()
{
// TODO: 在此添加控件通知处理程序代码
CPathSelectDlg PathSelectDlg(this, L"请选择一个目录");
if(PathSelectDlg.DoModal())
{
m_NetGamePath = PathSelectDlg.m_strPath;
UpdateData(FALSE);
}
}
void CConfigPath::OnBnClickedLocalgameBrw()
{
// TODO: 在此添加控件通知处理程序代码
CPathSelectDlg PathSelectDlg(this, L"请选择一个目录");
if(PathSelectDlg.DoModal())
{
m_LocalGamePath = PathSelectDlg.m_strPath;
UpdateData(FALSE);
}
}
void CConfigPath::OnBnClickedOtherBrw()
{
// TODO: 在此添加控件通知处理程序代码
CPathSelectDlg PathSelectDlg(this, L"请选择一个目录");
if(PathSelectDlg.DoModal())
{
m_OtherPath = PathSelectDlg.m_strPath;
UpdateData(FALSE);
}
}
BOOL CConfigPath::OnInitDialog()
{
CPropertyPage::OnInitDialog();
// TODO: 在此添加额外的初始化
m_NetGamePath = g_Configuration.NetGamePath.native_directory_string().c_str();
m_LocalGamePath = g_Configuration.LocalGamePath.native_directory_string().c_str();
m_OtherPath = g_Configuration.OtherPath.native_directory_string().c_str();
UpdateData(FALSE);
return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}
void CConfigPath::OnOK()
{
// TODO: 在此添加专用代码和/或调用基类
g_Configuration.NetGamePath = wcstombs(wstring(m_NetGamePath.GetBuffer()));
g_Configuration.LocalGamePath = wcstombs(wstring(m_LocalGamePath.GetBuffer()));
g_Configuration.OtherPath = wcstombs(wstring(m_OtherPath.GetBuffer()));
if(!g_Configuration.Save())
{
AfxMessageBox(L"无法保存设置到配置文件", MB_ICONERROR);
return;
}
CPropertyPage::OnOK();
}
|
18aeb6a447989b3690ee7238883f4eea12e03f23
|
63e47ca4b169ff935335419f957a08f0122a183c
|
/URI 1020.cpp
|
2d398237c64dc53741822eccf53af371b7832e5a
|
[] |
no_license
|
sudiptoghosh8/uri
|
0660f406aa7c2f1d3c10f1e2bb9885dd6639f8fa
|
6e0187a0dff11644d734fd0ed927a3e03c09853f
|
refs/heads/main
| 2023-04-23T02:04:59.270000
| 2021-05-06T15:39:32
| 2021-05-06T15:39:32
| 361,481,603
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 280
|
cpp
|
URI 1020.cpp
|
#include<iostream>
using namespace std;
int main()
{
int n;
int a,b,c,d,s,y,m;
cin>>n;
y=n/365;
n=n%365;
m=n/30;
d=n%30;
cout<<y<<" ano(s)"<<endl;
cout<<m<<" mes(es)"<<endl;
cout<<d<<" dia(s)"<<endl;
return 0;
}
|
d337a1457ca172f69d9421c0911449281894ad29
|
8cc8a746894c304353ab3612ce73520bab5fb1a9
|
/Garage.cpp
|
0ed1976db8efebb0136cef8c526fda13488818d9
|
[] |
no_license
|
EniwaSentaiToshiking/LCourse_2016
|
835f78142227702bba47f5f2f9aa3e2b8e0d1dfa
|
0fc67afd20ad2456ee4a192d8b5e4cf6107105bd
|
refs/heads/master
| 2020-04-09T09:10:01.208478
| 2016-09-21T10:28:35
| 2016-09-21T10:28:35
| 68,192,269
| 0
| 0
| null | 2016-09-21T10:28:35
| 2016-09-14T09:19:56
|
C++
|
UTF-8
|
C++
| false
| false
| 1,000
|
cpp
|
Garage.cpp
|
#include "Garage.h"
Garage::Garage(Motor* r, Motor* l, TailControl* tc, BalancingWalker* b, Clock* clock, GyroSensor* g){
rMotor = r;
lMotor = l;
mTailControl = tc;
bw = b;
c = clock;
gyro = g;
GARAGE_flag = 1;
}
Garage::~Garage(){
}
void Garage::slowrun_stop(){
c->reset();
while(GARAGE_flag <= 4)
switch(GARAGE_flag){
case 0: //バランスを取りながら走行
// bw->setCommand(5,0,0);
// bw->run();
rMotor->setPWM(20);
lMotor->setPWM(20);
if(c->now() == 100){
GARAGE_flag=1;
c->reset();
}
break;
case 1: //尻尾を出しながら少し傾く
// bw->setCommand(0,0,-15);
// bw->run();
rMotor->setPWM(10);
lMotor->setPWM(10);
mTailControl->tail_control(85, 50, false);
c->wait(400);
GARAGE_flag=2;
break;
case 2:
rMotor->setBrake(true);
lMotor->setBrake(true);
rMotor->setPWM(0);
lMotor->setPWM(0);
}
}
|
f0e0287290ba737e1e463e6db4fd1b625495e5ed
|
43a5f08225734f58b98b7088906422ee972cf48c
|
/src/transform/CNSPass.cpp
|
cfe8ea038945756c66e525387f47387ad759a502
|
[
"NCSA",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LLVM-exception"
] |
permissive
|
baziotis/rv
|
ebcedd0e56d2d7cca088e53fe1b307576c617a8f
|
e0e9373bed333cf19370d811ecfd1146d605118a
|
refs/heads/master
| 2022-07-22T07:38:30.511012
| 2020-05-11T14:45:36
| 2020-05-11T14:45:48
| 265,248,724
| 0
| 0
|
Apache-2.0
| 2020-05-19T13:01:33
| 2020-05-19T13:01:32
| null |
UTF-8
|
C++
| false
| false
| 4,868
|
cpp
|
CNSPass.cpp
|
/*
* Regularizer.cpp
*
* Created on: 29.04.2010
* Author: gnarf
*/
#include <fstream>
#include <llvm/Pass.h>
#include <llvm/IR/Verifier.h>
#include "cns/BlockGraph.h"
#include "cns/CNS.h"
#include "cns/CNSScoring.h"
#include "cns/SplitTree.h"
#include "cns/llvmDuplication.h"
#include "cns/CommonTypes.h"
#include "rv/LinkAllPasses.h"
#include "rv/passes.h"
#include "report.h"
using namespace rv;
using namespace llvm;
/*
* The Regularizer makes irreducible control flow reducible by applying
* controlled node splitting
*/
class CNS : public llvm::FunctionPass {
cns::SplitTree *generateSplitSequence(cns::SplitTree *root,
BlockGraph::SubgraphMask &mask,
BlockGraph &graph);
void applySplitSequence(BlockGraph &graph, std::vector<unsigned> nodes) const;
public:
static char ID;
CNS() : llvm::FunctionPass(ID) {}
void getAnalysisUsage(llvm::AnalysisUsage &usage) const {}
bool runOnFunction(llvm::Function &F);
virtual llvm::StringRef getPassName() const;
};
/*
* Controlled Node Splitting - main method
*/
cns::SplitTree *CNS::generateSplitSequence(cns::SplitTree *root,
BlockGraph::SubgraphMask &mask,
BlockGraph &graph) {
IF_DEBUG_CNS {
llvm::errs() << "### regularize : ";
dumpVector(mask);
}
/*
* initial transformation (T1/T2)
*/
cns::minimizeGraph(mask, graph);
cns::SplitTree *tree = root;
IF_DEBUG_CNS {
llvm::errs() << "mask after contraction = ";
dumpVector(mask);
llvm::errs() << "graph Size after initial contraction=" << graph.getSize(mask)
<< "\n";
}
while (graph.getSize(mask) > 1) {
/*
* identify RC-nodes
*/
IF_DEBUG_CNS llvm::errs() << "identifying candidate nodes (SED, non-RC). . \n";
BlockGraph::SubgraphMask candidates =
cns::detectCandidateNodes(mask, graph);
IF_DEBUG_CNS {
llvm::errs() << "candidate nodes: ";
dumpVector(candidates);
}
/*
* select splitting node (from the headers of the SCC)
*/
unsigned splitNode =
cns::getLowestScoringNode(candidates, graph, &cns::scoreBranches);
IF_DEBUG_CNS llvm::errs() << "heuristic picked node: " << splitNode << "\n";
/*
* split (complete graph mask gets modified to match)
*/
BlockGraph splitGraph = graph.createSplitGraph(mask, splitNode);
tree = tree->pushSplit(mask, splitGraph, splitNode);
IF_DEBUG_CNS {
llvm::errs() << "graph after split";
splitGraph.dump(mask);
llvm::errs() << "tree:\n";
tree->dump();
}
// for now just iteratively operate on a single graph
graph = splitGraph;
/*
* compute limit graph
*/
cns::minimizeGraph(mask, graph);
}
return tree;
}
bool CNS::runOnFunction(llvm::Function &func) {
size_t totalNumSplits = 0, numSplits;
do {
numSplits = 0;
BlockGraph::SubgraphMask mask;
BlockGraph graph = BlockGraph::CreateFromFunction(func, mask);
/*
{
std::ofstream of( (func.getNameStr() + "_graph.gv").c_str(),
std::ios::out);
graph.dumpGraphviz(mask, of);
}
*/
cns::SplitTree *root = new cns::SplitTree(mask, graph);
// FIXME split sequence implementation is broken..
cns::SplitTree *tree = generateSplitSequence(root, mask, graph);
IF_DEBUG_CNS tree->dump();
numSplits = tree->getDepth();
totalNumSplits += numSplits;
std::vector<unsigned> nodes(numSplits);
// recover split sequence
for (size_t i = numSplits; i > 0; --i) {
nodes[i - 1] = tree->getSplitNode();
tree = tree->getParent();
}
delete root;
applySplitSequence(graph, nodes);
IF_DEBUG_CNS {
llvm::errs() << "regularized function : \n";
func.dump();
}
bool broken = verifyFunction(func, &errs());
if (broken) fail("CNS broke the module");
} while (numSplits > 0);
if (totalNumSplits > 0) Report() << "cns: splitted " << totalNumSplits << " nodes.\n";
return totalNumSplits > 0;
}
llvm::StringRef CNS::getPassName() const {
return "Controlled Node Splitting pass";
}
void CNS::applySplitSequence(BlockGraph &graph,
std::vector<unsigned> nodes) const {
for (unsigned i = 0; i < nodes.size(); ++i) {
unsigned node = nodes[i];
llvm::BasicBlock *splitBlock = graph.getLabel(node);
splitNode(splitBlock);
}
}
char CNS::ID = 0;
FunctionPass *rv::createCNSPass() { return new CNS(); }
INITIALIZE_PASS_BEGIN(CNS, "rv-cns",
"RV - Irreducible Loop Normalization (CNS)", false, false)
INITIALIZE_PASS_END(CNS, "rv-cns", "RV - Irreducible Loop Normalization (CNS)",
false, false)
|
1a5da228e5b78e4f24da01c990c1700228013f22
|
b5b627842557a5ff81cf236bb45d5c09ed27f70f
|
/src/aether/core/raylib/rl_application.cpp
|
18d8afdaae1070564d29a0a1ffda0c25b7f9f86c
|
[] |
no_license
|
alesegdia/aether
|
b580974d8359b6f9579ff017c05169f4ac939545
|
495e1f59e9b4c48e3bcacb9b4937a738712048a8
|
refs/heads/master
| 2023-08-23T07:53:12.193740
| 2023-06-29T19:22:05
| 2023-06-29T19:22:05
| 130,353,467
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 850
|
cpp
|
rl_application.cpp
|
#include "rl_application.h"
#include <iostream>
#include <imgui.h>
#include <imgui_impl_allegro5.h>
#include <iostream>
#include "raylib.h"
namespace aether {
namespace core {
RaylibApplication::RaylibApplication(int sw, int sh)
: ApplicationBase(sw, sh)
{
}
RaylibApplication::~RaylibApplication()
{
}
int RaylibApplication::Init(int argc, char **argv)
{
InitWindow(GetApplicationWindowScreenWidth(), GetApplicationWindowScreenHeight(), "");
return 0;
}
void RaylibApplication::PreRender()
{
BeginDrawing();
}
void RaylibApplication::PostRender()
{
EndDrawing();
SwapScreenBuffer();
}
void RaylibApplication::Deinit()
{
CloseWindow();
}
void RaylibApplication::PreUpdate()
{
PollInputEvents();
}
void RaylibApplication::PostUpdate()
{
_input_post_update();
}
void RaylibApplication::GrabMouse()
{
}
}
}
|
f8c8bd105d6fe50898942d14a3428692892fc64c
|
b1e6fc470616f5695d42aa29d2dd692cec799ea6
|
/src/MatrixIndex.cpp
|
a0867a7facba79dce3e5e5d6b055dfd936e63531
|
[] |
no_license
|
azariiva/SparseMatrix
|
ce2395e6838bfedc03d95d250eda5196b6f32dcd
|
9b02eba9f6a9723ed984535d77d4d4e43616b71d
|
refs/heads/master
| 2023-03-18T23:06:59.747586
| 2021-03-14T17:09:07
| 2021-03-14T17:09:07
| 343,347,513
| 0
| 0
| null | 2021-03-06T18:57:19
| 2021-03-01T08:49:00
|
C++
|
UTF-8
|
C++
| false
| false
| 1,963
|
cpp
|
MatrixIndex.cpp
|
#include "MatrixIndex.hpp"
MatrixIndex::MatrixIndex(size_t urow, size_t ucolumn) {
row = urow;
column = ucolumn;
}
MatrixIndex::MatrixIndex(const MatrixIndex& src) {
row = src.row;
column = src.column;
}
MatrixIndex& MatrixIndex::operator=(const MatrixIndex& rv) {
if (&rv == this) {
return (*this);
}
row = rv.row;
column = rv.column;
return *this;
}
bool MatrixIndex::operator==(const MatrixIndex& rv) const {
return (&rv == this || (row == rv.row && column == rv.column));
}
bool MatrixIndex::operator!=(const MatrixIndex& rv) const {
return (&rv != this && (row != rv.row || column != rv.column));
}
bool MatrixIndex::operator>(const MatrixIndex& rv) const {
if (&rv == this) {
return false;
}
if (row > rv.row) {
return true;
} else if (row < rv.row) {
return false;
} else if (column > rv.column) {
return true;
}
return false;
}
bool MatrixIndex::operator<(const MatrixIndex& rv) const {
if (&rv == this) {
return false;
}
if (row < rv.row) {
return true;
} else if (row > rv.row) {
return false;
} else if (column < rv.column) {
return true;
}
return false;
}
bool MatrixIndex::operator<=(const MatrixIndex& rv) const {
if (&rv == this) {
return true;
}
if (row <= rv.row) {
return true;
} else if (row > rv.row) {
return false;
} else if (column <= rv.column) {
return true;
}
return false;
}
bool MatrixIndex::operator>=(const MatrixIndex& rv) const {
if (&rv == this) {
return true;
}
if (row >= rv.row) {
return true;
} else if (row < rv.row) {
return false;
} else if (column >= rv.column) {
return true;
}
return false;
}
std::ostream &operator<<(std::ostream &out, const MatrixIndex&mi) {
out << mi.row << ' ' << mi.column;
return out;
}
|
05572823418e56fb0453ad8715c24098d0f4356d
|
c2484df95f009d516bf042dca93857b43a292333
|
/codeforces/round325/d/main.cpp
|
273aabd1fb0cbb3f956232941fb3cc27bb747dd6
|
[
"Apache-2.0"
] |
permissive
|
seirion/code
|
545a78c1167ca92776070d61cd86c1c536cd109a
|
a59df98712c7eeceabc98f6535f7814d3a1c2c9f
|
refs/heads/master
| 2022-12-09T19:48:50.444088
| 2022-12-06T05:25:38
| 2022-12-06T05:25:38
| 17,619,607
| 14
| 4
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,467
|
cpp
|
main.cpp
|
// codeforces round325
// http://codeforces.com/contest/586/problem/D
#include <cstdio>
#include <set>
using namespace std;
class Node { public:
Node(int r_, int c_): r(r_), c(c_) {}
int r, c;
bool operator <(const Node &n) const {
return (c == n.c ? r < n.r : c < n.c);
}
};
char in[3][105];
int n, m;
void input() {
scanf("%d %d\n", &n, &m);
fgets(in[0], 105, stdin);
fgets(in[1], 105, stdin);
fgets(in[2], 105, stdin);
in[0][n] = in[1][n] = in[2][n] = '.';
in[0][n+1] = in[1][n+1] = in[2][n+1] = '.';
in[0][n+2] = in[1][n+2] = in[2][n+2] = '.';
in[0][n+3] = in[1][n+3] = in[2][n+3] = '.';
}
bool possible() {
set<Node> s;
if (in[0][0] == 's') s.insert(Node(0, 0));
else if (in[1][0] == 's') s.insert(Node(1, 0));
else s.insert(Node(2, 0));
if (in[s.begin()->r][1] != '.') return false;
while (!s.empty()) {
int r = s.begin()->r;
int c = s.begin()->c;
if (c >= n-1) return true;
s.erase(s.begin());
set<int> v;
v.insert(max(r-1, 0));
v.insert(r);
v.insert(min(r+1, 2));
for (int x : v) {
if (in[x][c+1] == '.' && in[x][c+2] == '.' && in[x][c+3] == '.' && in[x][c+4] == '.')
s.insert(Node(x, c+3));
}
}
return false;
}
int main() {
int t; scanf("%d", &t);
while (t--) {
input();
printf("%s\n", possible() ? "YES" : "NO");
}
return 0;
}
|
564e89e2f6925e8ae480d84f77d2c7e0f281ecdc
|
438ea4bfd72727bc5d49937719222858888b53f4
|
/clientitem.h
|
2167db576c23751e1269155ec84e28126f294f4a
|
[] |
no_license
|
sumoonx/apollo_ui
|
63ed52c99f45ce31ed01a43ac6fa57de08dd7efc
|
02170af315b0455b2d87d6018d5fed327a8a5699
|
refs/heads/master
| 2021-06-03T05:28:47.683591
| 2016-09-13T05:17:48
| 2016-09-13T05:17:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 649
|
h
|
clientitem.h
|
#ifndef CLIENTITEM_H
#define CLIENTITEM_H
#include <QObject>
#include <QGraphicsItem>
#include <QPainter>
#include <location.h>
class ClientItem
: public QObject, public QGraphicsItem
{
Q_OBJECT
public:
ClientItem(QGraphicsItem *parent = Q_NULLPTR);
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void timerEvent(QTimerEvent *);
void setLocation(Location location);
void setPoint(QPointF point);
private:
const int FLASH_INTERVAL = 500;
Location m_location;
QString m_userName;
bool m_flash;
};
#endif // CLIENTITEM_H
|
d78bac26eca1b3bb1cf6b5acac0a30bdef3aac31
|
cde53377597f34841085a393e37819509334a9d2
|
/MaterialManager.h
|
d412c371688162e4b7c7509e769a5c8527560f46
|
[] |
no_license
|
AdrianFL/Physics-AI-Framework---Uploadable
|
890641194f764acb35365456a3b7981b433566bf
|
c0339a81f3a0022de662913d2a3e49f4e6e10c62
|
refs/heads/master
| 2020-08-24T08:18:21.081619
| 2017-09-25T21:56:15
| 2017-09-25T21:56:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 188
|
h
|
MaterialManager.h
|
#pragma once
#include "Structures.h"
class MaterialManager
{
public:
MaterialManager();
~MaterialManager();
Material shinyMaterial;
Material noSpecMaterial;
Material skyBoxMat;
};
|
a412b59c265b6c3c22e871c10a34aa0b1d1f2401
|
7fcc8a4b2dc018bfa451b0b99201006877f8b6da
|
/unittest/engine_proto_internal_vallist_test.cc
|
1dfe45e90bdddce6a10b89a9c347195f5e185ca4
|
[
"Apache-2.0"
] |
permissive
|
ComputationalAdvertising/openmi
|
a6220c5d99df59cf3b4a5b8bd8f64908fd2ff1e0
|
1d986ada6c57fecf482f4b8dc4d2488cb0189a3e
|
refs/heads/master
| 2020-04-19T23:02:25.973052
| 2019-11-10T15:11:50
| 2019-11-10T15:11:50
| 168,486,154
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 592
|
cc
|
engine_proto_internal_vallist_test.cc
|
#include "openmi/idl/proto/communication.pb.h"
#include "base/logging.h"
using namespace openmi;
int main(int argc, char** argv) {
proto::comm::ValueList val_list;
val_list.mutable_val()->Resize(9, 0);
val_list.add_val(0.1);
// val_list.set_val(2, 0.2);
// val_list.set_val(9, 0.9);
LOG(INFO) << val_list.DebugString();
proto::comm::CommData model_grad_data;
proto::comm::ValueList* grad_vals = model_grad_data.add_vals();
grad_vals->MergeFrom(val_list);
model_grad_data.add_keys(9);
LOG(INFO) << "model grad data:\n" << model_grad_data.DebugString();
return 0;
}
|
a1fdafa1ca3c3a2e744968ae3cd805740bd1efbc
|
38b9daafe39f937b39eefc30501939fd47f7e668
|
/tutorials/2WayCouplingOceanWave3D/EvalResults180628-fully/74/p_rgh
|
c0af47b7b24a446934ed3f02a34822ff6859eb83
|
[] |
no_license
|
rubynuaa/2-way-coupling
|
3a292840d9f56255f38c5e31c6b30fcb52d9e1cf
|
a820b57dd2cac1170b937f8411bc861392d8fbaa
|
refs/heads/master
| 2020-04-08T18:49:53.047796
| 2018-08-29T14:22:18
| 2018-08-29T14:22:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 197,829
|
p_rgh
|
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "74";
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField nonuniform List<scalar>
21420
(
-132.546
-157.237
-180.752
-203.031
-223.976
-243.529
-261.574
-278.058
-292.703
-305.787
-317.993
-328.803
-338.148
-346.036
-352.505
-357.61
-361.408
-363.953
-365.258
-365.422
-364.502
-362.543
-359.574
-355.584
-350.591
-344.455
-336.285
-327.903
-318.309
-307.418
-295.129
-281.342
-265.979
-248.958
-230.219
-209.698
-187.39
-163.312
-137.5
-110.034
-81.0491
-50.7005
-19.2021
13.1801
46.1912
79.5035
112.734
145.544
177.544
208.313
237.493
264.716
289.63
311.92
331.285
347.474
360.291
369.559
375.161
376.87
375.25
369.852
360.786
348.023
331.728
312.093
289.391
263.914
236.004
205.994
174.227
141.051
106.764
71.6756
36.0964
0.313744
-35.3563
-70.6139
-105.142
-138.604
-170.752
-201.303
-230.016
-256.657
-281.001
-302.66
-322.043
-343.874
-361.379
-376.754
-390.245
-401.938
-411.954
-420.364
-427.256
-432.687
-436.698
-439.318
-440.578
-440.495
-439.096
-436.416
-432.49
-427.342
-420.998
-413.477
-404.796
-394.967
-383.998
-371.894
-358.656
-344.285
-328.781
-312.146
-294.267
-275.365
-255.35
-234.237
-212.056
-188.839
-164.629
-139.479
-113.458
-86.6542
-59.1832
-31.186
-2.83338
25.676
54.1177
82.2427
109.782
136.449
161.952
185.989
208.252
228.439
246.253
261.404
273.632
282.694
288.379
290.531
289.043
283.781
274.866
262.29
246.241
226.841
204.376
179.147
151.495
121.802
90.4726
57.9312
24.6155
-9.04226
-42.6217
-75.7257
-107.994
-139.108
-168.798
-196.843
-223.069
-247.349
-269.602
-289.785
-307.892
-323.945
-337.996
-350.122
-360.419
-368.998
-375.977
-381.479
-385.624
-388.524
-390.289
-391.023
-390.831
-389.807
-388.048
-385.64
-382.659
-379.172
-375.237
-370.9
-366.197
-361.154
-355.781
-350.07
-343.996
-337.511
-330.552
-323.042
-314.9
-306.036
-296.368
-285.815
-274.304
-261.768
-248.142
-233.363
-217.366
-200.095
-181.503
-161.564
-140.279
-117.684
-93.8475
-68.8794
-42.925
-16.168
11.1707
38.8336
66.5229
93.9124
120.651
146.369
170.691
193.231
213.607
231.447
246.4
258.164
266.498
271.054
272.061
269.266
262.688
252.502
238.912
222.181
202.629
180.609
156.501
130.688
103.548
75.4546
46.7679
17.8322
-11.0204
-39.4821
-67.2757
-94.1623
-119.949
-144.491
-167.687
-189.482
-209.855
-228.816
-246.398
-262.654
-277.656
-291.487
-304.238
-315.996
-326.846
-336.861
-346.098
-354.602
-362.398
-369.503
-375.921
-381.649
-386.672
-390.99
-394.545
-397.305
-399.203
-400.165
-400.109
-398.931
-396.538
-392.816
-387.663
-380.96
-372.602
-362.449
-350.431
-336.405
-320.271
-301.98
-281.485
-258.751
-233.847
-206.773
-177.672
-146.634
-113.803
-79.3831
-43.5484
-6.53345
31.3804
69.9249
108.778
147.596
186.028
223.664
260.154
295.064
328.023
358.633
386.531
411.394
432.913
450.817
464.903
475.006
480.975
482.946
481.411
475.706
465.944
452.565
435.81
415.903
393.161
367.903
340.462
311.283
280.745
249.226
217.186
184.985
153.001
121.542
90.8955
61.3413
33.0547
6.1833
-19.1571
-42.9323
-65.1296
-85.7642
-104.897
-122.595
-138.943
-154.024
-167.915
-180.694
-192.421
-203.144
-212.899
-221.702
-229.561
-236.469
-242.404
-247.338
-251.23
-254.034
-255.7
-256.176
-255.407
-253.274
-249.767
-244.857
-238.519
-132.599
-157.292
-180.808
-203.089
-224.036
-243.592
-261.638
-278.118
-292.76
-305.849
-318.054
-328.863
-338.207
-346.093
-352.56
-357.662
-361.457
-364
-365.303
-365.464
-364.543
-362.584
-359.614
-355.624
-350.634
-344.509
-336.324
-327.953
-318.364
-307.477
-295.191
-281.409
-266.05
-249.032
-230.296
-209.776
-187.469
-163.391
-137.577
-110.108
-81.1177
-50.7624
-19.2557
13.1365
46.1592
79.4847
112.73
145.555
177.571
208.356
237.552
264.791
289.72
312.024
331.402
347.601
360.427
369.701
375.307
377.033
375.396
369.999
360.928
348.158
331.853
312.205
289.49
263.998
236.071
206.045
174.263
141.073
106.773
71.6743
36.0857
0.294723
-35.3828
-70.6473
-105.182
-138.65
-170.805
-201.36
-230.078
-256.724
-281.074
-302.754
-322.115
-343.952
-361.437
-376.814
-390.306
-401.999
-412.015
-420.424
-427.316
-432.747
-436.758
-439.377
-440.635
-440.552
-439.151
-436.471
-432.544
-427.395
-421.05
-413.53
-404.848
-395.02
-384.051
-371.947
-358.71
-344.339
-328.836
-312.203
-294.322
-275.423
-255.407
-234.295
-212.114
-188.897
-164.686
-139.534
-113.511
-86.7043
-59.2294
-31.2268
-2.86757
25.6496
54.1003
82.2355
109.786
136.465
161.98
186.031
208.307
228.508
246.336
261.5
273.739
282.812
288.506
290.664
289.18
283.925
274.996
262.416
246.359
226.948
204.469
179.225
151.555
121.844
90.4957
57.9364
24.6028
-9.07208
-42.6671
-75.785
-108.065
-139.189
-168.887
-196.937
-223.167
-247.449
-269.702
-289.885
-307.99
-324.04
-338.087
-350.208
-360.5
-369.074
-376.048
-381.545
-385.684
-388.58
-390.341
-391.071
-390.874
-389.847
-388.084
-385.674
-382.69
-379.201
-375.264
-370.926
-366.222
-361.179
-355.806
-350.097
-344.025
-337.542
-330.587
-323.081
-314.943
-306.083
-296.418
-285.869
-274.362
-261.829
-248.207
-233.431
-217.438
-200.17
-181.581
-161.644
-140.359
-117.762
-93.9234
-68.951
-42.9907
-16.2257
11.1228
38.7973
66.5002
93.9047
120.659
146.394
170.733
193.291
213.685
231.54
246.507
258.283
266.624
271.201
272.184
269.392
262.809
252.613
239.009
222.262
202.692
180.656
156.53
130.7
103.545
75.4373
46.7375
17.7899
-11.0729
-39.5433
-67.3437
-94.2352
-120.025
-144.568
-167.764
-189.558
-209.929
-228.887
-246.465
-262.718
-277.716
-291.543
-304.289
-316.044
-326.891
-336.903
-346.138
-354.64
-362.436
-369.541
-375.959
-381.688
-386.713
-391.032
-394.589
-397.351
-399.251
-400.215
-400.161
-398.985
-396.593
-392.873
-387.72
-381.018
-372.661
-362.508
-350.491
-336.465
-320.33
-302.038
-281.543
-258.806
-233.9
-206.823
-177.719
-146.677
-113.842
-79.4172
-43.5773
-6.55641
31.3641
69.916
108.778
147.605
186.048
223.697
260.201
295.126
328.1
358.725
386.637
411.514
433.045
450.96
465.054
475.162
481.142
483.125
481.55
475.839
466.078
452.692
435.924
416.002
393.244
367.97
340.511
311.315
280.76
249.224
217.17
184.954
152.958
121.49
90.8349
61.2746
32.9842
6.11082
-19.2298
-43.0038
-65.1987
-85.83
-104.959
-122.653
-138.997
-154.074
-167.962
-180.737
-192.463
-203.184
-212.937
-221.74
-229.599
-236.507
-242.444
-247.379
-251.273
-254.079
-255.747
-256.225
-255.458
-253.327
-249.821
-244.913
-238.577
-132.706
-157.4
-180.92
-203.206
-224.157
-243.717
-261.767
-278.239
-292.874
-305.972
-318.176
-328.984
-338.325
-346.206
-352.668
-357.765
-361.556
-364.094
-365.392
-365.549
-364.624
-362.664
-359.693
-355.705
-350.72
-344.617
-336.403
-328.054
-318.474
-307.595
-295.317
-281.543
-266.191
-249.18
-230.449
-209.933
-187.628
-163.548
-137.731
-110.254
-81.2541
-50.8855
-19.3621
13.0502
46.0963
79.4482
112.722
145.578
177.626
208.444
237.672
264.943
289.901
312.234
331.636
347.857
360.7
369.988
375.6
377.351
375.686
370.297
361.213
348.427
332.103
312.431
289.688
264.165
236.206
206.148
174.335
141.117
106.793
71.6726
36.0654
0.258248
-35.4338
-70.7119
-105.259
-138.74
-170.906
-201.472
-230.198
-256.854
-281.215
-302.938
-322.265
-344.09
-361.546
-376.928
-390.421
-402.113
-412.128
-420.536
-427.427
-432.857
-436.867
-439.485
-440.741
-440.655
-439.251
-436.569
-432.64
-427.49
-421.144
-413.622
-404.94
-395.111
-384.142
-372.039
-358.803
-344.433
-328.93
-312.301
-294.416
-275.521
-255.505
-234.392
-212.21
-188.992
-164.78
-139.625
-113.597
-86.7848
-59.3018
-31.2885
-2.91597
25.6169
54.0858
82.2414
109.814
136.517
162.058
186.135
208.439
228.667
246.521
261.711
273.974
283.067
288.778
290.948
289.47
284.234
275.271
262.689
246.613
227.18
204.674
179.397
151.694
121.945
90.5602
57.9648
24.5954
-9.11346
-42.7394
-75.8847
-108.188
-139.331
-169.044
-197.105
-223.342
-247.628
-269.883
-290.064
-308.165
-324.209
-338.248
-350.361
-360.642
-369.205
-376.169
-381.656
-385.785
-388.671
-390.424
-391.146
-390.941
-389.906
-388.137
-385.72
-382.731
-379.238
-375.298
-370.956
-366.251
-361.207
-355.835
-350.128
-344.06
-337.583
-330.635
-323.136
-315.005
-306.153
-296.497
-285.955
-274.454
-261.929
-248.314
-233.545
-217.559
-200.297
-181.712
-161.778
-140.494
-117.895
-94.0508
-69.0698
-43.0974
-16.3166
11.0518
38.75
66.4799
93.9147
120.701
146.471
170.845
193.438
213.866
231.754
246.749
258.547
266.903
271.518
272.46
269.672
263.077
252.86
239.228
222.449
202.845
180.774
156.614
130.751
103.564
75.4273
46.701
17.7296
-11.1541
-39.6421
-67.4562
-94.3578
-120.154
-144.7
-167.896
-189.688
-210.055
-229.008
-246.58
-262.825
-277.815
-291.633
-304.372
-316.119
-326.96
-336.966
-346.198
-354.698
-362.493
-369.596
-376.016
-381.746
-386.774
-391.096
-394.656
-397.422
-399.327
-400.295
-400.245
-399.072
-396.683
-392.965
-387.815
-381.115
-372.759
-362.608
-350.592
-336.566
-320.431
-302.138
-281.64
-258.901
-233.991
-206.908
-177.798
-146.749
-113.907
-79.4739
-43.6242
-6.59216
31.3407
69.9071
108.785
147.632
186.096
223.771
260.3
295.254
328.258
358.914
386.854
411.758
433.313
451.248
465.358
475.476
481.477
483.477
481.834
476.111
466.349
452.946
436.153
416.203
393.413
368.104
340.611
311.379
280.79
249.221
217.136
184.893
152.873
121.385
90.7136
61.1414
32.8432
5.96586
-19.3753
-43.1468
-65.3369
-85.9618
-105.083
-122.768
-139.105
-154.174
-168.055
-180.825
-192.545
-203.263
-213.014
-221.816
-229.675
-236.585
-242.524
-247.462
-251.36
-254.169
-255.841
-256.323
-255.56
-253.432
-249.93
-245.026
-238.693
-132.865
-157.564
-181.088
-203.38
-224.338
-243.906
-261.961
-278.426
-293.041
-306.155
-318.359
-329.165
-338.502
-346.376
-352.831
-357.92
-361.703
-364.235
-365.526
-365.676
-364.747
-362.784
-359.812
-355.826
-350.847
-344.779
-336.522
-328.206
-318.638
-307.771
-295.505
-281.743
-266.403
-249.402
-230.68
-210.169
-187.866
-163.785
-137.961
-110.474
-81.4591
-51.0704
-19.522
12.9206
46.0017
79.3932
112.711
145.612
177.709
208.576
237.853
265.17
290.173
312.548
331.988
348.241
361.11
370.417
376.038
377.825
376.13
370.747
361.641
348.832
332.478
312.769
289.984
264.415
236.408
206.302
174.443
141.183
106.822
71.67
36.035
0.203567
-35.5104
-70.8086
-105.375
-138.873
-171.058
-201.639
-230.378
-257.049
-281.428
-303.209
-322.525
-344.268
-361.706
-377.099
-390.594
-402.283
-412.297
-420.704
-427.594
-433.023
-437.031
-439.647
-440.9
-440.809
-439.401
-436.716
-432.784
-427.631
-421.282
-413.759
-405.077
-395.247
-384.279
-372.176
-358.941
-344.572
-329.07
-312.446
-294.556
-275.666
-255.65
-234.536
-212.354
-189.134
-164.919
-139.76
-113.726
-86.9042
-59.4087
-31.3792
-2.98684
25.5697
54.0659
82.252
109.858
136.597
162.176
186.293
208.638
228.908
246.802
262.03
274.328
283.452
289.189
291.377
289.907
284.692
275.693
263.103
246.997
227.53
204.982
179.657
151.902
122.098
90.6579
58.0078
24.5845
-9.17506
-42.8475
-76.034
-108.372
-139.544
-169.279
-197.357
-223.605
-247.896
-270.152
-290.331
-308.425
-324.46
-338.488
-350.586
-360.853
-369.4
-376.347
-381.819
-385.934
-388.806
-390.545
-391.255
-391.038
-389.992
-388.212
-385.786
-382.79
-379.29
-375.344
-370.999
-366.291
-361.246
-355.876
-350.173
-344.111
-337.642
-330.704
-323.216
-315.097
-306.257
-296.611
-286.08
-274.591
-262.076
-248.471
-233.713
-217.737
-200.484
-181.907
-161.977
-140.694
-118.092
-94.2395
-69.2455
-43.2549
-16.4503
10.948
38.6817
66.4524
93.9325
120.768
146.589
171.016
193.662
214.142
232.078
247.116
258.948
267.326
271.985
272.89
270.098
263.485
253.235
239.562
222.735
203.079
180.955
156.743
130.83
103.597
75.4168
46.6507
17.6434
-11.2718
-39.786
-67.621
-94.5377
-120.344
-144.894
-168.09
-189.879
-210.241
-229.185
-246.747
-262.981
-277.959
-291.766
-304.492
-316.228
-327.059
-337.059
-346.285
-354.781
-362.574
-369.677
-376.097
-381.83
-386.863
-391.189
-394.755
-397.527
-399.438
-400.413
-400.369
-399.201
-396.816
-393.103
-387.956
-381.259
-372.906
-362.757
-350.742
-336.717
-320.582
-302.288
-281.787
-259.042
-234.126
-207.036
-177.917
-146.859
-114.005
-79.5593
-43.6951
-6.64635
31.3055
69.8931
108.797
147.672
186.169
223.878
260.449
295.445
328.495
359.196
387.18
412.124
433.715
451.679
465.813
475.947
481.974
483.987
482.273
476.527
466.759
453.328
436.498
416.503
393.665
368.306
340.76
311.476
280.835
249.217
217.087
184.802
152.746
121.227
90.5315
60.9413
32.6315
5.74822
-19.5938
-43.3615
-65.5444
-86.1595
-105.27
-122.942
-139.266
-154.324
-168.194
-180.955
-192.668
-203.381
-213.129
-221.93
-229.79
-236.702
-242.644
-247.587
-251.489
-254.304
-255.982
-256.469
-255.712
-253.59
-250.093
-245.195
-238.867
-133.077
-157.781
-181.312
-203.613
-224.58
-244.157
-262.221
-278.685
-293.254
-306.397
-318.602
-329.407
-338.737
-346.603
-353.048
-358.127
-361.9
-364.423
-365.704
-365.846
-364.911
-362.944
-359.971
-355.987
-351.016
-344.992
-336.683
-328.41
-318.858
-308.006
-295.756
-282.01
-266.685
-249.698
-230.987
-210.483
-188.183
-164.1
-138.269
-110.768
-81.7326
-51.3172
-19.7354
12.7473
45.8752
79.3196
112.695
145.658
177.82
208.751
238.093
265.473
290.536
312.967
332.457
348.753
361.658
370.99
376.622
378.438
376.735
371.346
362.212
349.373
332.978
313.22
290.38
264.75
236.678
206.506
174.586
141.272
106.861
71.6662
35.9943
0.130534
-35.6124
-70.9375
-105.529
-139.052
-171.26
-201.862
-230.619
-257.309
-281.713
-303.569
-322.946
-344.43
-361.919
-377.326
-390.824
-402.511
-412.522
-420.927
-427.816
-433.243
-437.25
-439.862
-441.11
-441.014
-439.602
-436.912
-432.975
-427.819
-421.468
-413.942
-405.259
-395.429
-384.461
-372.359
-359.125
-344.757
-329.256
-312.623
-294.76
-275.861
-255.844
-234.729
-212.545
-189.323
-165.105
-139.94
-113.897
-87.0634
-59.5514
-31.5005
-3.08161
25.5064
54.039
82.2658
109.916
136.704
162.334
186.503
208.903
229.228
247.176
262.456
274.8
283.965
289.736
291.948
290.489
285.283
276.27
263.658
247.51
227.997
205.392
180.003
152.178
122.301
90.7869
58.0633
24.5682
-9.259
-42.9935
-76.235
-108.62
-139.83
-169.595
-197.694
-223.955
-248.254
-270.512
-290.687
-308.773
-324.796
-338.808
-350.887
-361.133
-369.659
-376.585
-382.036
-386.131
-388.985
-390.706
-391.399
-391.166
-390.105
-388.312
-385.873
-382.867
-379.358
-375.406
-371.055
-366.344
-361.298
-355.929
-350.231
-344.178
-337.72
-330.795
-323.322
-315.219
-306.394
-296.764
-286.248
-274.772
-262.271
-248.68
-233.936
-217.974
-200.734
-182.166
-162.243
-140.96
-118.354
-94.4911
-69.4796
-43.4649
-16.6284
10.8098
38.5908
66.416
93.9568
120.857
146.747
171.244
193.961
214.511
232.512
247.607
259.485
267.892
272.591
273.481
270.67
264.03
253.738
240.008
223.117
203.393
181.198
156.917
130.937
103.641
75.4035
46.5842
17.529
-11.428
-39.9775
-67.8402
-94.7771
-120.596
-145.152
-168.349
-190.133
-210.487
-229.421
-246.97
-263.189
-278.151
-291.941
-304.651
-316.373
-327.192
-337.181
-346.4
-354.891
-362.681
-369.784
-376.205
-381.941
-386.98
-391.312
-394.886
-397.666
-399.586
-400.57
-400.533
-399.372
-396.994
-393.285
-388.143
-381.45
-373.101
-362.955
-350.943
-336.919
-320.784
-302.488
-281.982
-259.231
-234.307
-207.207
-178.076
-147.005
-114.135
-79.6733
-43.7897
-6.71873
31.258
69.8746
108.812
147.726
186.266
224.023
260.648
295.701
328.811
359.572
387.614
412.612
434.25
452.254
466.419
476.576
482.629
484.646
482.876
477.092
467.308
453.838
436.957
416.904
394.002
368.574
340.958
311.604
280.895
249.211
217.02
184.68
152.575
121.016
90.2882
60.6741
32.3488
5.45769
-19.8853
-43.6479
-65.8212
-86.4231
-105.518
-123.174
-139.482
-154.524
-168.38
-181.129
-192.833
-203.538
-213.283
-222.081
-229.942
-236.857
-242.804
-247.752
-251.662
-254.484
-256.17
-256.665
-255.916
-253.8
-250.311
-245.42
-239.1
-133.342
-158.053
-181.592
-203.904
-224.883
-244.471
-262.546
-279.018
-293.514
-306.697
-318.908
-329.709
-339.032
-346.887
-353.32
-358.386
-362.145
-364.658
-365.926
-366.057
-365.115
-363.143
-360.169
-356.187
-351.225
-345.252
-336.889
-328.666
-319.133
-308.299
-296.07
-282.344
-267.039
-250.068
-231.371
-210.876
-188.58
-164.495
-138.654
-111.136
-82.0752
-51.6264
-20.0028
12.5302
45.7165
79.227
112.675
145.715
177.957
208.971
238.393
265.852
290.99
313.49
333.044
349.393
362.342
371.706
377.356
379.186
377.497
372.094
362.927
350.048
333.603
313.785
290.874
265.167
237.015
206.762
174.766
141.381
106.909
71.661
35.943
0.0390732
-35.7398
-71.0984
-105.722
-139.274
-171.512
-202.14
-230.921
-257.634
-282.071
-304.017
-323.585
-344.519
-362.183
-377.61
-391.111
-402.794
-412.804
-421.207
-428.094
-433.519
-437.523
-440.132
-441.374
-441.271
-439.853
-437.157
-433.215
-428.054
-421.699
-414.171
-405.486
-395.656
-384.688
-372.588
-359.356
-344.99
-329.49
-312.85
-295.008
-276.104
-256.085
-234.97
-212.785
-189.56
-165.337
-140.166
-114.112
-87.263
-59.7304
-31.6527
-3.20085
25.4266
54.0045
82.2823
109.988
136.836
162.53
186.766
209.234
229.627
247.642
262.987
275.39
284.607
290.421
292.663
291.218
286.013
276.996
264.35
248.153
228.579
205.903
180.434
152.521
122.554
90.9465
58.1306
24.5457
-9.36609
-43.1781
-76.4883
-108.931
-140.189
-169.991
-198.117
-224.396
-248.704
-270.963
-291.133
-309.209
-325.216
-339.208
-351.264
-361.485
-369.983
-376.883
-382.308
-386.378
-389.209
-390.908
-391.581
-391.328
-390.247
-388.436
-385.982
-382.963
-379.444
-375.483
-371.126
-366.41
-361.362
-355.996
-350.304
-344.261
-337.817
-330.909
-323.455
-315.371
-306.566
-296.955
-286.457
-274.999
-262.515
-248.942
-234.215
-218.271
-201.046
-182.491
-162.575
-141.294
-118.682
-94.8062
-69.7732
-43.7282
-16.852
10.6361
38.4763
66.3697
93.9865
120.969
146.944
171.529
194.336
214.972
233.054
248.221
260.157
268.602
273.333
274.231
271.39
264.713
254.366
240.567
223.595
203.784
181.501
157.133
131.071
103.696
75.3865
46.5007
17.3855
-11.6239
-40.2174
-68.1148
-95.0769
-120.912
-145.475
-168.672
-190.451
-210.795
-229.716
-247.249
-263.449
-278.391
-292.16
-304.85
-316.554
-327.357
-337.333
-346.543
-355.028
-362.815
-369.918
-376.341
-382.08
-387.127
-391.467
-395.049
-397.84
-399.771
-400.766
-400.739
-399.587
-397.216
-393.514
-388.377
-381.69
-373.345
-363.203
-351.194
-337.171
-321.036
-302.737
-282.226
-259.468
-234.534
-207.42
-178.275
-147.187
-114.299
-79.8162
-43.9083
-6.80974
31.1984
69.8505
108.83
147.791
186.386
224.202
260.896
296.021
329.206
360.042
388.156
413.222
434.92
452.972
467.176
477.362
483.441
485.452
483.643
477.811
467.997
454.477
437.531
417.405
394.422
368.91
341.206
311.765
280.969
249.204
216.935
184.526
152.361
120.752
89.9834
60.3394
31.9949
5.09397
-20.2501
-44.0064
-66.1675
-86.7529
-105.828
-123.464
-139.751
-154.774
-168.613
-181.347
-193.038
-203.735
-213.474
-222.271
-230.132
-237.051
-243.003
-247.96
-251.878
-254.709
-256.405
-256.909
-256.171
-254.064
-250.583
-245.701
-239.39
-133.66
-158.379
-181.928
-204.254
-225.245
-244.847
-262.937
-279.426
-293.819
-307.055
-319.274
-330.072
-339.386
-347.228
-353.646
-358.696
-362.44
-364.94
-366.192
-366.311
-365.36
-363.383
-360.407
-356.426
-351.474
-345.547
-337.153
-328.976
-319.462
-308.651
-296.447
-282.746
-267.463
-250.513
-231.832
-211.348
-189.057
-164.969
-139.116
-111.577
-82.4869
-51.9981
-20.3245
12.2687
45.5253
79.1153
112.65
145.783
178.122
209.234
238.753
266.306
291.535
314.119
333.748
350.163
363.164
372.567
378.238
380.08
378.41
372.988
363.785
350.86
334.353
314.462
291.468
265.668
237.419
207.068
174.98
141.512
106.966
71.6541
35.8812
-0.0709325
-35.8927
-71.2909
-105.953
-139.541
-171.814
-202.473
-231.283
-258.023
-282.5
-304.544
-324.389
-344.593
-362.506
-377.949
-391.455
-403.134
-413.141
-421.542
-428.427
-433.85
-437.85
-440.455
-441.69
-441.579
-440.154
-437.451
-433.502
-428.335
-421.977
-414.446
-405.759
-395.928
-384.961
-372.862
-359.632
-345.268
-329.77
-313.128
-295.302
-276.395
-256.375
-235.259
-213.072
-189.845
-165.616
-140.437
-114.371
-87.5033
-59.946
-31.8363
-3.34485
25.3297
53.9623
82.3008
110.074
136.994
162.764
187.079
209.63
230.106
248.201
263.623
276.097
285.376
291.241
293.519
292.093
286.888
277.867
265.18
248.923
229.278
206.516
180.949
152.932
122.855
91.1363
58.2093
24.5166
-9.4969
-43.4021
-76.7947
-109.308
-140.622
-170.469
-198.627
-224.926
-249.245
-271.507
-291.671
-309.734
-325.722
-339.69
-351.718
-361.907
-370.373
-377.24
-382.634
-386.675
-389.478
-391.151
-391.798
-391.521
-390.418
-388.586
-386.114
-383.079
-379.546
-375.575
-371.21
-366.489
-361.44
-356.076
-350.392
-344.361
-337.934
-331.046
-323.614
-315.553
-306.772
-297.185
-286.709
-275.271
-262.809
-249.256
-234.551
-218.627
-201.421
-182.881
-162.974
-141.696
-119.077
-95.1855
-70.1268
-44.0456
-17.1216
10.4263
38.3377
66.313
94.0213
121.102
147.18
171.871
194.785
215.526
233.706
248.959
260.964
269.458
274.219
275.133
272.257
265.535
255.121
241.237
224.169
204.254
181.865
157.393
131.23
103.762
75.3651
46.3994
17.2122
-11.8602
-40.5067
-68.4457
-95.438
-121.292
-145.864
-169.061
-190.834
-211.166
-230.071
-247.584
-263.762
-278.679
-292.423
-305.089
-316.771
-327.555
-337.516
-346.715
-355.193
-362.976
-370.078
-376.503
-382.246
-387.302
-391.652
-395.246
-398.049
-399.993
-401.001
-400.986
-399.844
-397.482
-393.788
-388.659
-381.977
-373.637
-363.5
-351.495
-337.473
-321.338
-303.037
-282.519
-259.752
-234.805
-207.677
-178.514
-147.407
-114.495
-79.9876
-44.0508
-6.91913
31.1263
69.8213
108.851
147.87
186.53
224.416
261.194
296.405
329.68
360.606
388.807
413.953
435.724
453.835
468.085
478.306
484.41
486.415
484.569
478.684
468.827
455.244
438.221
418.006
394.927
369.313
341.503
311.957
281.058
249.194
216.833
184.341
152.104
120.433
89.6166
59.9367
31.5692
4.65668
-20.6886
-44.4371
-66.5835
-87.1489
-106.201
-123.812
-140.074
-155.073
-168.891
-181.607
-193.284
-203.971
-213.704
-222.498
-230.361
-237.284
-243.243
-248.208
-252.137
-254.979
-256.687
-257.203
-256.476
-254.38
-250.91
-246.039
-239.738
-134.032
-158.759
-182.32
-204.661
-225.669
-245.286
-263.397
-279.911
-294.166
-307.47
-319.703
-330.497
-339.799
-347.625
-354.026
-359.058
-362.784
-365.267
-366.502
-366.607
-365.645
-363.662
-360.684
-356.705
-351.759
-345.856
-337.497
-329.342
-319.847
-309.061
-296.886
-283.214
-267.958
-251.032
-232.371
-211.9
-189.614
-165.523
-139.657
-112.094
-82.9685
-52.4329
-20.701
11.9626
45.3011
78.9839
112.62
145.862
178.314
209.54
239.173
266.837
292.171
314.854
334.571
351.061
364.125
373.572
379.271
381.125
379.47
374.03
364.788
351.807
335.23
315.252
292.16
266.253
237.889
207.425
175.229
141.663
107.031
71.6451
35.8083
-0.199541
-36.0708
-71.5153
-106.221
-139.851
-172.166
-202.862
-231.706
-258.478
-282.999
-305.142
-325.194
-344.822
-362.889
-378.345
-391.857
-403.53
-413.534
-421.932
-428.816
-434.236
-438.233
-440.831
-442.058
-441.939
-440.505
-437.793
-433.836
-428.664
-422.301
-414.767
-406.078
-396.246
-385.279
-373.182
-359.955
-345.594
-330.098
-313.455
-295.642
-276.734
-256.714
-235.596
-213.407
-190.177
-165.943
-140.754
-114.673
-87.7843
-60.1984
-32.0515
-3.5139
25.2156
53.9117
82.3213
110.173
137.177
163.036
187.445
210.091
230.663
248.853
264.365
276.922
286.274
292.198
294.519
293.116
287.911
278.879
266.147
249.823
230.093
207.23
181.55
153.41
123.205
91.3557
58.2989
24.4805
-9.65196
-43.666
-77.1546
-109.749
-141.13
-171.028
-199.223
-225.547
-249.879
-272.142
-292.299
-310.347
-326.313
-340.253
-352.248
-362.401
-370.829
-377.658
-383.015
-387.022
-389.793
-391.435
-392.053
-391.748
-390.618
-388.762
-386.267
-383.214
-379.666
-375.683
-371.308
-366.581
-361.53
-356.169
-350.493
-344.477
-338.07
-331.206
-323.8
-315.767
-307.013
-297.453
-287.003
-275.59
-263.151
-249.623
-234.943
-219.043
-201.86
-183.338
-163.442
-142.166
-119.54
-95.6296
-70.5409
-44.4176
-17.4379
10.1798
38.1741
66.2455
94.0604
121.255
147.454
172.269
195.309
216.172
234.467
249.82
261.908
270.46
275.255
276.183
273.271
266.496
256.004
242.021
224.838
204.802
182.288
157.694
131.415
103.837
75.3388
46.2797
17.0083
-12.1376
-40.8458
-68.8335
-95.861
-121.737
-146.319
-169.516
-191.281
-211.599
-230.485
-247.976
-264.127
-279.016
-292.731
-305.368
-317.024
-327.786
-337.729
-346.915
-355.385
-363.164
-370.266
-376.692
-382.44
-387.507
-391.868
-395.475
-398.293
-400.253
-401.276
-401.275
-400.145
-397.793
-394.108
-388.987
-382.313
-373.979
-363.847
-351.847
-337.826
-321.691
-303.386
-282.862
-260.083
-235.121
-207.975
-178.792
-147.662
-114.724
-80.1877
-44.2173
-7.04723
31.0417
69.7863
108.874
147.961
186.697
224.671
261.541
296.852
330.232
361.263
389.566
414.807
436.662
454.842
469.147
479.407
485.537
487.536
485.652
479.71
469.798
456.139
439.026
418.708
395.516
369.782
341.85
312.18
281.161
249.181
216.713
184.124
151.802
120.061
89.1871
59.4655
31.0712
4.14539
-21.2011
-44.9403
-67.0693
-87.6113
-106.636
-124.217
-140.45
-155.423
-169.216
-181.911
-193.571
-204.246
-213.971
-222.762
-230.627
-237.555
-243.522
-248.498
-252.438
-255.295
-257.015
-257.545
-256.833
-254.749
-251.292
-246.432
-240.145
-134.456
-159.193
-182.768
-205.127
-226.152
-245.787
-263.924
-280.478
-294.549
-307.944
-320.193
-330.983
-340.271
-348.08
-354.461
-359.471
-363.177
-365.641
-366.855
-366.945
-365.971
-363.981
-361
-357.023
-352.08
-346.179
-337.92
-329.762
-320.286
-309.53
-297.388
-283.749
-268.525
-251.626
-232.987
-212.531
-190.252
-166.158
-140.276
-112.686
-83.5202
-52.9314
-21.1328
11.6111
45.0434
78.8324
112.585
145.951
178.533
209.89
239.652
267.443
292.898
315.693
335.512
352.089
365.223
374.723
380.453
382.322
380.68
375.221
365.934
352.891
336.232
316.156
292.952
266.921
238.427
207.832
175.512
141.835
107.104
71.6338
35.7243
-0.346844
-36.2742
-71.771
-106.526
-140.205
-172.566
-203.306
-232.189
-258.998
-283.567
-305.803
-326
-345.222
-363.323
-378.794
-392.316
-403.981
-413.981
-422.377
-429.259
-434.677
-438.669
-441.261
-442.48
-442.35
-440.905
-438.184
-434.218
-429.039
-422.67
-415.133
-406.441
-396.609
-385.643
-373.547
-360.323
-345.965
-330.473
-313.831
-296.029
-277.121
-257.1
-235.981
-213.79
-190.556
-166.316
-141.116
-115.019
-88.1064
-60.4879
-32.2985
-3.70834
25.084
53.8524
82.3434
110.284
137.385
163.345
187.861
210.617
231.299
249.596
265.212
277.865
287.299
293.292
295.662
294.286
289.083
280.035
267.253
250.852
231.024
208.046
182.236
153.955
123.603
91.6043
58.3991
24.4367
-9.83208
-43.9705
-77.5688
-110.257
-141.714
-171.671
-199.908
-226.259
-250.604
-272.87
-293.019
-311.05
-326.991
-340.898
-352.855
-362.966
-371.35
-378.136
-383.452
-387.419
-390.153
-391.76
-392.344
-392.007
-390.846
-388.962
-386.443
-383.368
-379.803
-375.806
-371.42
-366.687
-361.632
-356.275
-350.609
-344.61
-338.226
-331.388
-324.013
-316.011
-307.29
-297.76
-287.339
-275.955
-263.544
-250.043
-235.391
-219.52
-202.362
-183.86
-163.977
-142.704
-120.07
-96.1392
-71.0163
-44.845
-17.8016
9.89583
37.9852
66.1664
94.1036
121.43
147.767
172.724
195.907
216.911
235.337
250.807
262.99
271.608
276.443
277.382
274.434
267.596
257.014
242.917
225.604
205.428
182.771
158.038
131.625
103.922
75.307
46.1411
16.7734
-12.4568
-41.2358
-69.279
-96.3466
-122.247
-146.84
-170.037
-191.793
-212.095
-230.96
-248.424
-264.545
-279.401
-293.082
-305.687
-317.313
-328.049
-337.973
-347.144
-355.604
-363.379
-370.48
-376.909
-382.66
-387.741
-392.115
-395.737
-398.572
-400.55
-401.59
-401.604
-400.489
-398.149
-394.474
-389.362
-382.697
-374.37
-364.244
-352.248
-338.23
-322.094
-303.785
-283.252
-260.462
-235.483
-208.317
-179.11
-147.954
-114.985
-80.4163
-44.4077
-7.19409
30.9442
69.7453
108.9
148.063
186.885
224.96
261.936
297.362
330.862
362.014
390.433
415.783
437.734
455.994
470.362
480.667
486.822
488.817
486.892
480.89
470.91
457.165
439.947
419.511
396.19
370.319
342.245
312.434
281.277
249.165
216.574
183.874
151.454
119.633
88.6944
58.9252
30.5005
3.55958
-21.7881
-45.5165
-67.6253
-88.1401
-107.133
-124.681
-140.88
-155.821
-169.587
-182.257
-193.899
-204.559
-214.276
-223.064
-230.93
-237.864
-243.841
-248.829
-252.783
-255.655
-257.391
-257.937
-257.241
-255.171
-251.728
-246.883
-240.609
-134.932
-159.682
-183.272
-205.651
-226.697
-246.35
-264.517
-281.139
-294.959
-308.478
-320.747
-331.53
-340.803
-348.593
-354.95
-359.936
-363.618
-366.061
-367.253
-367.324
-366.336
-364.338
-361.354
-357.38
-352.438
-346.514
-338.424
-330.236
-320.78
-310.057
-297.953
-284.351
-269.163
-252.295
-233.681
-213.243
-190.971
-166.873
-140.974
-113.353
-84.1426
-53.494
-21.6205
11.2139
44.7516
78.6602
112.544
146.05
178.778
210.283
240.192
268.126
293.716
316.639
336.571
353.247
366.461
376.02
381.785
383.669
382.04
376.56
367.226
354.111
337.36
317.173
293.842
267.673
239.031
208.288
175.829
142.026
107.185
71.6193
35.6287
-0.512772
-36.5028
-72.0577
-106.869
-140.601
-173.016
-203.805
-232.733
-259.583
-284.203
-306.524
-326.831
-345.823
-363.761
-379.296
-392.83
-404.487
-414.484
-422.878
-429.758
-435.173
-439.16
-441.745
-442.954
-442.812
-441.356
-438.623
-434.648
-429.46
-423.086
-415.544
-406.85
-397.016
-386.051
-373.958
-360.737
-346.383
-330.895
-314.256
-296.463
-277.556
-257.535
-236.414
-214.221
-190.983
-166.735
-141.525
-115.409
-88.4696
-60.8146
-32.5777
-3.92853
24.9345
53.7843
82.3667
110.407
137.617
163.692
188.327
211.207
232.013
250.432
266.164
278.925
288.453
294.523
296.949
295.603
290.403
281.335
268.496
252.009
232.071
208.963
183.005
154.566
124.049
91.8817
58.5093
24.3845
-10.0381
-44.3164
-78.0384
-110.831
-142.373
-172.396
-200.681
-227.062
-251.423
-273.691
-293.831
-311.843
-327.755
-341.625
-353.539
-363.603
-371.938
-378.674
-383.943
-387.866
-390.558
-392.125
-392.672
-392.298
-391.103
-389.188
-386.64
-383.542
-379.957
-375.944
-371.547
-366.805
-361.747
-356.394
-350.74
-344.76
-338.4
-331.594
-324.253
-316.287
-307.601
-298.107
-287.719
-276.365
-263.985
-250.516
-235.896
-220.057
-202.928
-184.45
-164.582
-143.313
-120.669
-96.7149
-71.5538
-45.3286
-18.2136
9.57352
37.77
66.0751
94.1502
121.624
148.117
173.235
196.58
217.742
236.317
251.919
264.209
272.904
277.783
278.732
275.746
268.837
258.152
243.926
226.465
206.131
183.314
158.422
131.859
104.015
75.2691
45.9829
16.5064
-12.8188
-41.6774
-69.7831
-96.8957
-122.824
-147.429
-170.626
-192.37
-212.654
-231.494
-248.929
-265.017
-279.835
-293.478
-306.046
-317.638
-328.346
-338.247
-347.401
-355.851
-363.62
-370.721
-377.152
-382.908
-388.004
-392.393
-396.032
-398.886
-400.884
-401.944
-401.976
-400.876
-398.55
-394.886
-389.784
-383.129
-374.809
-364.69
-352.7
-338.684
-322.548
-304.234
-283.692
-260.887
-235.889
-208.7
-179.467
-148.282
-115.28
-80.6736
-44.6222
-7.35987
30.8336
69.698
108.927
148.176
187.097
225.275
262.378
297.934
331.57
362.859
391.409
416.882
438.942
457.292
471.73
482.084
488.266
490.259
488.29
482.222
472.164
458.32
440.985
420.414
396.948
370.922
342.689
312.72
281.407
249.145
216.416
183.59
151.062
119.149
88.1376
58.315
29.8562
2.89865
-22.4501
-46.1658
-68.2516
-88.7357
-107.693
-125.203
-141.364
-156.27
-170.003
-182.647
-194.266
-204.911
-214.618
-223.403
-231.271
-238.212
-244.2
-249.201
-253.171
-256.06
-257.814
-258.378
-257.699
-255.646
-252.218
-247.389
-241.132
-135.462
-160.224
-183.832
-206.234
-227.302
-246.976
-265.171
-281.885
-295.403
-309.076
-321.364
-332.139
-341.395
-349.162
-355.494
-360.453
-364.109
-366.527
-367.695
-367.744
-366.742
-364.735
-361.748
-357.776
-352.835
-346.868
-339
-330.763
-321.329
-310.643
-298.581
-285.021
-269.872
-253.038
-234.453
-214.034
-191.771
-167.67
-141.752
-114.097
-84.8365
-54.1214
-22.1647
10.77
44.4251
78.4668
112.497
146.159
179.049
210.718
240.791
268.884
294.626
317.69
337.75
354.535
367.839
377.463
383.269
385.17
383.552
378.05
368.662
355.469
338.614
318.304
294.831
268.508
239.702
208.793
176.179
142.236
107.272
71.6014
35.5212
-0.69766
-36.7562
-72.3752
-107.248
-141.039
-173.513
-204.357
-233.336
-260.232
-284.905
-307.304
-327.698
-346.639
-364.179
-379.847
-393.401
-405.047
-415.04
-423.432
-430.311
-435.724
-439.706
-442.282
-443.48
-443.325
-441.855
-439.11
-435.124
-429.928
-423.546
-416
-407.303
-397.468
-386.504
-374.413
-361.197
-346.847
-331.363
-314.729
-296.944
-278.039
-258.017
-236.895
-214.699
-191.457
-167.202
-141.978
-115.842
-88.8741
-61.1789
-32.8894
-4.17479
24.7666
53.707
82.3908
110.543
137.872
164.075
188.844
211.861
232.805
251.36
267.222
280.102
289.736
295.891
298.38
297.068
291.872
282.779
269.878
253.295
233.235
209.981
183.859
155.243
124.542
92.1872
58.6285
24.3226
-10.2708
-44.7049
-78.5645
-111.473
-143.11
-173.206
-201.543
-227.958
-252.336
-274.606
-294.735
-312.725
-328.605
-342.435
-354.3
-364.311
-372.591
-379.273
-384.489
-388.362
-391.009
-392.532
-393.037
-392.623
-391.389
-389.438
-386.86
-383.735
-380.128
-376.097
-371.687
-366.937
-361.874
-356.525
-350.884
-344.925
-338.594
-331.822
-324.519
-316.593
-307.947
-298.492
-288.141
-276.822
-264.477
-251.042
-236.459
-220.655
-203.559
-185.107
-165.256
-143.991
-121.338
-97.3577
-72.1543
-45.8693
-18.6747
9.21203
37.5277
65.971
94.1996
121.839
148.505
173.802
197.328
218.667
237.407
253.157
265.567
274.348
279.276
280.235
277.209
270.22
259.42
245.049
227.423
206.912
183.915
158.848
132.117
104.115
75.2243
45.8042
16.2067
-13.2242
-42.1716
-70.3468
-97.5092
-123.468
-148.086
-171.282
-193.014
-213.277
-232.09
-249.492
-265.541
-280.318
-293.918
-306.444
-317.999
-328.675
-338.55
-347.686
-356.124
-363.889
-370.988
-377.423
-383.182
-388.296
-392.702
-396.359
-399.235
-401.255
-402.338
-402.389
-401.306
-398.995
-395.344
-390.253
-383.608
-375.298
-365.186
-353.203
-339.189
-323.052
-304.733
-284.18
-261.36
-236.34
-209.126
-179.864
-148.645
-115.606
-80.9594
-44.8609
-7.54488
30.7096
69.6435
108.955
148.3
187.329
225.625
262.867
298.568
332.355
363.796
392.493
418.104
440.285
458.737
473.252
483.661
489.871
491.861
489.846
483.708
473.561
459.605
442.139
421.419
397.79
371.592
343.182
313.035
281.549
249.121
216.237
183.272
150.622
118.608
87.5159
57.634
29.1377
2.16192
-23.1876
-46.8889
-68.9488
-89.3981
-108.315
-125.782
-141.902
-156.767
-170.465
-183.079
-194.674
-205.302
-214.998
-223.779
-231.65
-238.598
-244.598
-249.615
-253.602
-256.51
-258.284
-258.868
-258.209
-256.174
-252.763
-247.952
-241.712
-136.044
-160.821
-184.448
-206.874
-227.967
-247.664
-265.882
-282.684
-295.918
-309.742
-322.046
-332.811
-342.047
-349.789
-356.093
-361.022
-364.648
-367.04
-368.18
-368.206
-367.188
-365.17
-362.18
-358.21
-353.273
-347.281
-339.609
-331.339
-321.93
-311.287
-299.272
-285.758
-270.653
-253.858
-235.304
-214.907
-192.654
-168.548
-142.61
-114.918
-85.6026
-54.8145
-22.7663
10.2789
44.063
78.2514
112.443
146.276
179.346
211.197
241.449
269.718
295.628
318.848
339.049
355.954
369.356
379.054
384.904
386.823
385.217
379.69
370.245
356.965
339.996
319.547
295.919
269.425
240.439
209.347
176.561
142.463
107.364
71.5793
35.4016
-0.90167
-37.0346
-72.723
-107.663
-141.519
-174.058
-204.964
-233.999
-260.945
-285.673
-308.143
-328.604
-347.497
-364.757
-380.439
-394.026
-405.66
-415.65
-424.041
-430.919
-436.329
-440.305
-442.873
-444.058
-443.889
-442.404
-439.645
-435.647
-430.441
-424.052
-416.501
-407.801
-397.965
-387.002
-374.914
-361.702
-347.357
-331.877
-315.249
-297.472
-278.569
-258.546
-237.423
-215.225
-191.979
-167.716
-142.478
-116.32
-89.3202
-61.581
-33.2339
-4.44749
24.58
53.62
82.4155
110.69
138.151
164.495
189.411
212.578
233.675
252.379
268.384
281.396
291.146
297.397
299.954
298.68
293.489
284.368
271.398
254.71
234.515
211.1
184.796
155.986
125.082
92.5196
58.7557
24.25
-10.5315
-45.1372
-79.1482
-112.185
-143.926
-174.101
-202.496
-228.947
-253.343
-275.615
-295.732
-313.698
-329.543
-343.327
-355.139
-365.091
-373.31
-379.931
-385.089
-388.908
-391.505
-392.979
-393.439
-392.98
-391.704
-389.713
-387.101
-383.947
-380.316
-376.266
-371.841
-367.081
-362.014
-356.669
-351.041
-345.106
-338.807
-332.074
-324.812
-316.931
-308.329
-298.918
-288.606
-277.326
-265.018
-251.621
-237.077
-221.313
-204.254
-185.832
-166
-144.74
-122.076
-98.0683
-72.8189
-46.4681
-19.186
8.81033
37.2574
65.853
94.2511
122.072
148.93
174.424
198.15
219.685
238.609
254.522
267.066
275.942
280.924
281.893
278.822
271.746
260.817
246.286
228.477
207.77
184.575
159.314
132.398
104.223
75.1719
45.6041
15.8732
-13.6744
-42.7196
-70.9711
-98.1882
-124.18
-148.812
-172.006
-193.724
-213.964
-232.747
-250.112
-266.119
-280.85
-294.402
-306.883
-318.396
-329.036
-338.884
-347.999
-356.425
-364.183
-371.283
-377.721
-383.482
-388.617
-393.042
-396.719
-399.618
-401.664
-402.771
-402.844
-401.78
-399.485
-395.848
-390.77
-384.136
-375.835
-365.732
-353.755
-339.744
-323.606
-305.282
-284.717
-261.879
-236.836
-209.593
-180.299
-149.045
-115.965
-81.2739
-45.1239
-7.74918
30.5716
69.582
108.983
148.433
187.581
226.015
263.404
299.264
333.217
364.827
393.686
419.448
441.764
460.328
474.928
485.397
491.637
493.626
491.562
485.346
475.102
461.021
443.409
422.525
398.716
372.328
343.723
313.381
281.703
249.091
216.038
182.919
150.135
118.009
86.8283
56.8813
28.344
1.34865
-24.0012
-47.6863
-69.717
-90.1277
-109
-126.42
-142.492
-157.314
-170.973
-183.553
-195.121
-205.73
-215.415
-224.192
-232.065
-239.022
-245.035
-250.069
-254.076
-257.005
-258.801
-259.407
-258.77
-256.754
-253.363
-248.571
-242.351
-136.678
-161.471
-185.12
-207.574
-228.693
-248.413
-266.647
-283.473
-296.567
-310.481
-322.793
-333.545
-342.759
-350.473
-356.746
-361.642
-365.236
-367.6
-368.708
-368.709
-367.672
-365.644
-362.65
-358.684
-353.752
-347.759
-340.246
-331.962
-322.585
-311.989
-300.026
-286.563
-271.506
-254.753
-236.234
-215.861
-193.619
-169.509
-143.549
-115.816
-86.4415
-55.574
-23.4261
9.73957
43.6646
78.0133
112.381
146.403
179.669
211.718
242.167
270.628
296.721
320.113
340.467
357.504
371.015
380.792
386.692
388.631
387.035
381.483
371.974
358.599
341.504
320.905
297.106
270.426
241.242
209.95
176.976
142.709
107.462
71.5525
35.269
-1.12464
-37.3376
-73.1007
-108.113
-142.04
-174.651
-205.624
-234.721
-261.723
-286.506
-309.04
-329.555
-348.405
-365.569
-380.985
-394.705
-406.325
-416.313
-424.703
-431.581
-436.989
-440.959
-443.517
-444.689
-444.504
-443.002
-440.227
-436.217
-431.001
-424.603
-417.046
-408.342
-398.505
-387.543
-375.459
-362.252
-347.912
-332.439
-315.817
-298.046
-279.146
-259.123
-237.999
-215.798
-192.547
-168.276
-143.024
-116.843
-89.8082
-62.0212
-33.6117
-4.74712
24.3742
53.5228
82.4401
110.848
138.453
164.95
190.027
213.359
234.622
253.49
269.651
282.808
292.685
299.04
301.673
300.441
295.256
286.103
273.057
256.254
235.911
212.318
185.816
156.793
125.666
92.8781
58.8894
24.1652
-10.8216
-45.6151
-79.7911
-112.967
-144.821
-175.083
-203.54
-230.03
-254.445
-276.719
-296.823
-314.763
-330.568
-344.302
-356.056
-365.943
-374.095
-380.65
-385.745
-389.504
-392.046
-393.468
-393.877
-393.369
-392.047
-390.014
-387.364
-384.178
-380.522
-376.45
-372.008
-367.239
-362.165
-356.825
-351.212
-345.303
-339.039
-332.348
-325.133
-317.3
-308.747
-299.383
-289.115
-277.876
-265.609
-252.253
-237.753
-222.033
-205.014
-186.625
-166.814
-145.561
-122.886
-98.8476
-73.5484
-47.1262
-19.7486
8.36728
36.958
65.7203
94.3039
122.325
149.392
175.102
199.047
220.796
239.922
256.015
268.706
277.687
282.729
283.707
280.589
273.416
262.346
247.638
229.628
208.706
185.293
159.82
132.702
104.338
75.111
45.3818
15.5049
-14.1702
-43.3225
-71.6574
-98.9337
-124.961
-149.608
-172.799
-194.5
-214.715
-233.465
-250.79
-266.751
-281.431
-294.931
-307.361
-318.828
-329.43
-339.246
-348.34
-356.752
-364.504
-371.603
-378.046
-383.807
-388.968
-393.413
-397.112
-400.037
-402.11
-403.244
-403.34
-402.297
-400.019
-396.398
-391.333
-384.712
-376.421
-366.328
-354.358
-340.35
-324.21
-305.88
-285.303
-262.445
-237.375
-210.102
-180.773
-149.48
-116.355
-81.6168
-45.4112
-7.97322
30.4197
69.5119
109.011
148.575
187.852
226.434
263.985
300.019
334.156
365.95
394.988
420.916
443.38
462.066
476.76
487.294
493.566
495.555
493.437
487.139
476.786
462.569
444.798
423.732
399.727
373.131
344.311
313.755
281.868
249.056
215.816
182.53
149.599
117.352
86.0737
56.0559
27.4743
0.458015
-24.8916
-48.5583
-70.5567
-90.9246
-109.747
-127.115
-143.136
-157.91
-171.526
-184.069
-195.609
-206.196
-215.868
-224.641
-232.518
-239.484
-245.512
-250.565
-254.593
-257.545
-259.364
-259.995
-259.381
-257.388
-254.017
-249.247
-243.048
-137.364
-162.176
-185.848
-208.332
-229.48
-249.223
-267.467
-284.25
-297.347
-311.296
-323.606
-334.343
-343.531
-351.216
-357.453
-362.313
-365.872
-368.205
-369.279
-369.253
-368.197
-366.157
-363.158
-359.197
-354.274
-348.297
-340.915
-332.63
-323.293
-312.749
-300.842
-287.436
-272.431
-255.724
-237.244
-216.897
-194.667
-170.554
-144.569
-116.793
-87.3542
-56.4007
-24.1449
9.15113
43.2289
77.7517
112.311
146.537
180.017
212.282
242.945
271.614
297.906
321.484
342.005
359.187
372.815
382.68
388.633
390.592
389.008
383.428
373.852
360.372
343.14
322.376
298.391
271.51
242.11
210.601
177.421
142.97
107.565
71.5202
35.1232
-1.36706
-37.6651
-73.5078
-108.597
-142.6
-175.289
-206.337
-235.502
-262.563
-287.404
-309.997
-330.552
-349.362
-366.442
-381.662
-395.433
-407.039
-417.026
-425.419
-432.297
-437.703
-441.667
-444.215
-445.371
-445.169
-443.649
-440.857
-436.832
-431.605
-425.199
-417.636
-408.928
-399.09
-388.129
-376.048
-362.847
-348.512
-333.046
-316.432
-298.668
-279.77
-259.748
-238.622
-216.418
-193.163
-168.883
-143.616
-117.409
-90.3382
-62.5
-34.0229
-5.0741
24.1488
53.4149
82.464
111.016
138.778
165.441
190.692
214.203
235.646
254.692
271.023
284.337
294.352
300.821
303.537
302.35
297.171
287.983
274.855
257.926
237.421
213.636
186.917
157.663
126.295
93.2611
59.028
24.0667
-11.1428
-46.1402
-80.4952
-113.821
-145.797
-176.153
-204.676
-231.208
-255.643
-277.918
-298.008
-315.919
-331.682
-345.362
-357.051
-366.868
-374.947
-381.429
-386.455
-390.15
-392.632
-393.997
-394.353
-393.792
-392.419
-390.339
-387.648
-384.428
-380.744
-376.649
-372.189
-367.409
-362.327
-356.993
-351.396
-345.514
-339.289
-332.644
-325.48
-317.7
-309.2
-299.888
-289.667
-278.474
-266.25
-252.939
-238.487
-222.814
-205.84
-187.488
-167.7
-146.455
-123.767
-99.6967
-74.344
-47.8447
-20.3638
7.88166
36.6283
65.5719
94.3572
122.595
149.89
175.836
200.018
222
241.347
257.637
270.489
279.585
284.691
285.679
282.51
275.232
264.008
249.105
230.875
209.719
186.069
160.364
133.027
104.458
75.0406
45.1361
15.1008
-14.7131
-43.9818
-72.4071
-99.7473
-125.813
-150.474
-173.661
-195.345
-215.531
-234.245
-251.527
-267.437
-282.062
-295.504
-307.879
-319.296
-329.856
-339.638
-348.708
-357.105
-364.851
-371.951
-378.398
-384.157
-389.348
-393.814
-397.537
-400.49
-402.593
-403.757
-403.878
-402.857
-400.599
-396.993
-391.943
-385.336
-377.056
-366.973
-355.011
-341.006
-324.865
-306.528
-285.937
-263.058
-237.959
-210.653
-181.285
-149.951
-116.778
-81.9882
-45.723
-8.21708
30.2528
69.4336
109.037
148.725
188.141
226.883
264.611
300.835
335.171
367.166
396.398
422.507
445.132
463.952
478.747
489.351
495.659
497.647
495.474
489.086
478.614
464.249
446.303
425.042
400.823
374.001
344.948
314.159
282.045
249.014
215.572
182.104
149.014
116.634
85.2509
55.1567
26.5274
-0.510892
-25.8596
-49.5058
-71.4683
-91.7892
-110.557
-127.868
-143.833
-158.555
-172.124
-184.627
-196.135
-206.7
-216.358
-225.127
-233.007
-239.983
-246.028
-251.101
-255.153
-258.13
-259.975
-260.632
-260.045
-258.074
-254.726
-249.978
-243.803
-138.103
-162.934
-186.631
-209.148
-230.328
-250.096
-268.348
-285.011
-298.257
-312.186
-324.486
-335.204
-344.364
-352.016
-358.216
-363.036
-366.557
-368.856
-369.893
-369.837
-368.76
-366.707
-363.704
-359.748
-354.838
-348.886
-341.626
-333.341
-324.054
-313.566
-301.722
-288.377
-273.429
-256.772
-238.333
-218.015
-195.8
-171.682
-145.672
-117.849
-88.3416
-57.2958
-24.9239
8.51257
42.755
77.4656
112.232
146.679
180.39
212.888
243.781
272.676
299.184
322.962
343.665
361.002
374.758
384.717
390.729
392.709
391.137
385.526
375.878
362.285
344.905
323.961
299.774
272.676
243.043
211.299
177.897
143.248
107.67
71.4813
34.9638
-1.62888
-38.0168
-73.9439
-109.116
-143.2
-175.972
-207.101
-236.341
-263.467
-288.367
-311.014
-331.6
-350.372
-367.377
-382.543
-396.131
-407.798
-417.79
-426.187
-433.068
-438.472
-442.429
-444.965
-446.106
-445.884
-444.343
-441.534
-437.494
-432.254
-425.839
-418.269
-409.558
-399.718
-388.758
-376.68
-363.485
-349.159
-333.7
-317.093
-299.335
-280.441
-260.418
-239.291
-217.085
-193.825
-169.536
-144.254
-118.021
-90.9105
-63.0177
-34.4683
-5.429
23.9031
53.2957
82.4868
111.194
139.123
165.966
191.405
215.11
236.746
255.985
272.5
285.984
296.149
302.74
305.545
304.409
299.237
290.009
276.793
259.728
239.047
215.052
188.1
158.594
126.966
93.6668
59.1695
23.9526
-11.4974
-46.7148
-81.2622
-114.75
-146.856
-177.312
-205.907
-232.482
-256.938
-279.214
-299.288
-317.168
-332.885
-346.505
-358.125
-367.865
-375.865
-382.269
-387.219
-390.845
-393.264
-394.568
-394.866
-394.247
-392.819
-390.688
-387.953
-384.697
-380.982
-376.863
-372.384
-367.588
-362.504
-357.172
-351.593
-345.741
-339.557
-332.963
-325.853
-318.131
-309.689
-300.433
-290.264
-279.118
-266.941
-253.678
-239.277
-223.657
-206.732
-188.419
-168.659
-147.422
-124.722
-100.617
-75.2069
-48.6249
-21.0329
7.35204
36.2673
65.4066
94.4101
122.882
150.424
176.624
201.064
223.299
242.885
259.39
272.417
281.638
286.814
287.812
284.588
277.195
265.802
250.689
232.219
210.809
186.901
160.947
133.373
104.583
74.9596
44.8661
14.6595
-15.3045
-44.699
-73.2215
-100.63
-126.735
-151.412
-174.594
-196.257
-216.413
-235.088
-252.322
-268.178
-282.742
-296.121
-308.436
-319.8
-330.313
-340.059
-349.103
-357.485
-365.224
-372.324
-378.778
-384.531
-389.757
-394.246
-397.995
-400.978
-403.114
-404.309
-404.458
-403.461
-401.223
-397.634
-392.6
-386.007
-377.739
-367.667
-355.714
-341.713
-325.569
-307.225
-286.619
-263.717
-238.587
-211.245
-181.836
-150.457
-117.233
-82.3881
-46.0593
-8.48123
30.071
69.3454
109.062
148.881
188.448
227.362
265.281
301.709
336.261
368.474
397.916
424.222
447.022
465.986
480.891
491.57
497.916
499.905
497.671
491.188
480.587
466.061
447.928
426.453
402.003
374.936
345.632
314.592
282.231
248.965
215.304
181.639
148.378
115.855
84.3586
54.1823
25.5023
-1.55905
-26.906
-50.5292
-72.4523
-92.7217
-111.431
-128.68
-144.583
-159.248
-172.767
-185.227
-196.7
-207.24
-216.884
-225.648
-233.532
-240.52
-246.583
-251.678
-255.755
-258.76
-260.633
-261.318
-260.759
-258.813
-255.489
-250.766
-244.616
-138.892
-163.745
-187.471
-210.023
-231.238
-251.032
-269.287
-285.763
-299.292
-313.151
-325.432
-336.128
-345.258
-352.874
-359.033
-363.811
-367.289
-369.552
-370.549
-370.462
-369.361
-367.295
-364.288
-360.338
-355.444
-349.526
-342.378
-334.096
-324.866
-314.442
-302.665
-289.386
-274.5
-257.897
-239.503
-219.217
-197.017
-172.895
-146.858
-118.985
-89.4048
-58.2602
-25.7641
7.82278
42.2417
77.1539
112.143
146.829
180.787
213.535
244.677
273.815
300.554
324.548
345.446
362.95
376.844
386.905
392.979
394.982
393.423
387.781
378.053
364.34
346.798
325.66
301.255
273.923
244.041
212.043
178.402
143.539
107.778
71.4352
34.7899
-1.91041
-38.3925
-74.408
-109.667
-143.838
-176.7
-207.917
-237.238
-264.433
-289.394
-312.09
-332.698
-351.435
-368.37
-383.479
-396.966
-408.583
-418.601
-427.006
-433.892
-439.294
-443.244
-445.769
-446.892
-446.648
-445.086
-442.257
-438.201
-432.948
-426.523
-418.946
-410.231
-400.389
-389.43
-377.357
-364.168
-349.85
-334.399
-317.8
-300.05
-281.158
-261.136
-240.007
-217.798
-194.534
-170.236
-144.937
-118.677
-91.5254
-63.5748
-34.9484
-5.81248
23.6366
53.1648
82.5077
111.381
139.49
166.525
192.165
216.078
237.923
257.368
274.081
287.747
298.073
304.797
307.699
306.618
301.453
292.182
278.87
261.659
240.788
216.567
189.363
159.587
127.678
94.0934
59.3125
23.8212
-11.8877
-47.341
-82.0945
-115.755
-148
-178.563
-207.233
-233.854
-258.331
-280.608
-300.665
-318.51
-334.177
-347.734
-359.279
-368.935
-376.849
-383.168
-388.039
-391.591
-393.94
-395.181
-395.416
-394.735
-393.248
-391.063
-388.28
-384.984
-381.238
-377.092
-372.591
-367.78
-362.692
-357.363
-351.801
-345.983
-339.844
-333.305
-326.254
-318.594
-310.215
-301.019
-290.904
-279.811
-267.682
-254.47
-240.125
-224.561
-207.691
-189.422
-169.691
-148.464
-125.751
-101.61
-76.1388
-49.4682
-21.7573
6.77691
35.8733
65.2232
94.4615
123.187
150.993
177.467
202.184
224.692
244.537
261.274
274.49
283.847
289.098
290.107
286.825
279.307
267.732
252.389
233.661
211.975
187.79
161.568
133.739
104.711
74.8671
44.5704
14.1797
-15.946
-45.4759
-74.1025
-101.584
-127.731
-152.423
-175.598
-197.239
-217.361
-235.994
-253.177
-268.974
-283.472
-296.784
-309.034
-320.338
-330.802
-340.509
-349.525
-357.891
-365.622
-372.724
-379.186
-384.93
-390.196
-394.709
-398.485
-401.5
-403.672
-404.902
-405.08
-404.108
-401.892
-398.322
-393.304
-386.727
-378.471
-368.411
-356.467
-342.47
-326.324
-307.972
-287.35
-264.423
-239.258
-211.878
-182.425
-150.998
-117.72
-82.8166
-46.4205
-8.7659
29.8732
69.2472
109.083
149.043
188.77
227.869
265.993
302.641
337.426
369.873
399.543
426.061
449.049
468.171
483.192
493.952
500.34
502.329
500.031
493.446
482.707
468.006
449.67
427.967
403.268
375.938
346.362
315.052
282.427
248.907
215.011
181.134
147.689
115.013
83.3954
53.1314
24.3976
-2.68753
-28.0317
-51.6293
-73.5093
-93.7223
-112.367
-129.549
-145.386
-159.989
-173.454
-185.868
-197.304
-207.817
-217.446
-226.205
-234.094
-241.094
-247.176
-252.296
-256.401
-259.435
-261.338
-262.054
-261.524
-259.605
-256.307
-251.611
-245.487
-139.733
-164.61
-188.367
-210.957
-232.208
-252.033
-270.292
-286.564
-300.393
-314.188
-326.446
-337.117
-346.213
-353.79
-359.905
-364.636
-368.07
-370.295
-371.247
-371.126
-370.001
-367.92
-364.909
-360.966
-356.09
-350.214
-343.174
-334.892
-325.731
-315.376
-303.672
-290.463
-275.644
-259.099
-240.753
-220.502
-198.32
-174.194
-148.128
-120.203
-90.5448
-59.295
-26.6665
7.08055
41.6879
76.8158
112.043
146.984
181.207
214.224
245.632
275.029
302.016
326.242
347.348
365.033
379.075
389.245
395.386
397.414
395.868
390.191
380.38
366.536
348.82
327.473
302.832
275.252
245.103
212.834
178.938
143.845
107.887
71.3811
34.601
-2.21177
-38.7921
-74.8999
-110.25
-144.513
-177.471
-208.783
-238.191
-265.461
-290.484
-313.227
-333.851
-352.553
-369.421
-384.471
-397.873
-409.464
-419.448
-427.874
-434.769
-440.169
-444.113
-446.625
-447.73
-447.463
-445.876
-443.026
-438.953
-433.687
-427.251
-419.667
-410.946
-401.102
-390.146
-378.076
-364.895
-350.586
-335.143
-318.553
-300.81
-281.922
-261.9
-240.769
-218.558
-195.289
-170.983
-145.667
-119.379
-92.1835
-64.1716
-35.4636
-6.2251
23.3485
53.0215
82.5261
111.576
139.878
167.116
192.971
217.107
239.176
258.84
275.766
289.628
300.126
306.993
309.999
308.977
303.821
294.504
281.087
263.721
242.644
218.18
190.706
160.64
128.43
94.5396
59.4551
23.6697
-12.3162
-48.0213
-82.9948
-116.839
-149.232
-179.907
-208.655
-235.325
-259.824
-282.1
-302.137
-319.946
-335.56
-349.048
-360.511
-370.078
-377.901
-384.128
-388.913
-392.385
-394.662
-395.835
-396.004
-395.257
-393.705
-391.461
-388.628
-385.291
-381.51
-377.336
-372.812
-367.984
-362.889
-357.565
-352.022
-346.239
-340.149
-333.669
-326.682
-319.089
-310.776
-301.646
-291.59
-280.55
-268.474
-255.316
-241.031
-225.528
-208.716
-190.495
-170.798
-149.582
-126.856
-102.676
-77.141
-50.3765
-22.5389
6.15489
35.4449
65.0204
94.5104
123.506
151.597
178.365
203.378
226.179
246.304
263.291
276.712
286.214
291.547
292.568
289.222
281.57
269.798
254.208
235.2
213.217
188.736
162.225
134.124
104.842
74.7621
44.2479
13.6599
-16.6392
-46.3141
-75.0517
-102.61
-128.801
-153.508
-176.675
-198.29
-218.376
-236.963
-254.092
-269.825
-284.252
-297.49
-309.67
-320.912
-331.322
-340.987
-349.974
-358.322
-366.047
-373.15
-379.624
-385.36
-390.666
-395.202
-399.007
-402.057
-404.268
-405.535
-405.744
-404.799
-402.606
-399.055
-394.054
-387.494
-379.251
-369.204
-357.27
-343.277
-327.128
-308.768
-288.129
-265.175
-239.972
-212.551
-183.051
-151.574
-118.238
-83.2733
-46.8063
-9.07143
29.6595
69.1378
109.099
149.21
189.107
228.403
266.746
303.63
338.664
371.364
401.279
428.025
451.215
470.505
485.651
496.498
502.931
504.92
502.554
495.861
484.973
470.086
451.532
429.583
404.617
377.005
347.139
315.54
282.63
248.839
214.692
180.588
146.946
114.107
82.3597
52.0027
23.2122
-3.89746
-29.2376
-52.8068
-74.6396
-94.7916
-113.366
-130.475
-146.242
-160.779
-174.185
-186.549
-197.946
-208.431
-218.043
-226.797
-234.691
-241.705
-247.808
-252.954
-257.089
-260.155
-262.09
-262.839
-262.341
-260.45
-257.18
-252.511
-246.416
-140.625
-165.528
-189.319
-211.95
-233.241
-253.099
-271.37
-287.425
-301.545
-315.294
-327.526
-338.169
-347.23
-354.764
-360.833
-365.514
-368.899
-371.082
-371.986
-371.83
-370.679
-368.583
-365.566
-361.632
-356.778
-350.946
-344.017
-335.729
-326.649
-316.368
-304.742
-291.609
-276.861
-260.379
-242.084
-221.872
-199.709
-175.58
-149.484
-121.503
-91.7628
-60.4015
-27.6326
6.28459
41.0922
76.4498
111.932
147.145
181.651
214.954
246.645
276.319
303.571
328.045
349.374
367.251
381.451
391.738
397.951
400.003
398.473
392.76
382.859
368.875
350.973
329.4
304.506
276.659
246.226
213.671
179.504
144.165
107.996
71.3174
34.3964
-2.5332
-39.2149
-75.4186
-110.864
-145.223
-178.285
-209.699
-239.202
-266.551
-291.638
-314.424
-335.059
-353.726
-370.529
-385.517
-398.845
-410.408
-420.375
-428.784
-435.699
-441.098
-445.036
-447.535
-448.619
-448.327
-446.714
-443.841
-439.75
-434.469
-428.022
-420.43
-411.705
-401.858
-390.903
-378.838
-365.664
-351.365
-335.933
-319.352
-301.616
-282.732
-262.709
-241.577
-219.363
-196.09
-171.775
-146.444
-120.125
-92.8849
-64.8087
-36.0146
-6.66754
23.0382
52.8652
82.5414
111.779
140.285
167.741
193.824
218.197
240.503
260.402
277.554
291.626
302.308
309.327
312.446
311.487
306.341
296.974
283.447
265.912
244.616
219.892
192.128
161.752
129.221
95.0039
59.5954
23.4959
-12.7849
-48.7587
-83.966
-118.005
-150.553
-181.347
-210.177
-236.896
-261.417
-283.692
-303.708
-321.477
-337.035
-350.449
-361.824
-371.295
-379.02
-385.149
-389.841
-393.229
-395.429
-396.531
-396.629
-395.811
-394.19
-391.884
-388.997
-385.616
-381.799
-377.595
-373.047
-368.199
-363.097
-357.778
-352.254
-346.509
-340.471
-334.056
-327.136
-319.615
-311.375
-302.314
-292.321
-281.339
-269.316
-256.216
-241.994
-226.558
-209.809
-191.641
-171.98
-150.777
-128.037
-103.818
-78.215
-51.3512
-23.3795
5.48414
34.9804
64.797
94.5558
123.841
152.236
179.316
204.647
227.762
248.185
265.442
279.083
288.742
294.162
295.196
291.783
283.986
272.001
256.145
236.837
214.536
189.736
162.917
134.526
104.974
74.6429
43.8969
13.0985
-17.386
-47.2155
-76.0713
-103.711
-129.947
-154.668
-177.825
-199.412
-219.458
-237.997
-255.068
-270.732
-285.083
-298.242
-310.346
-321.52
-331.873
-341.493
-350.448
-358.779
-366.496
-373.601
-380.092
-385.83
-391.168
-395.726
-399.561
-402.649
-404.902
-406.208
-406.451
-405.533
-403.365
-399.834
-394.851
-388.31
-380.081
-370.047
-358.124
-344.135
-327.982
-309.613
-288.956
-265.973
-240.729
-213.265
-183.715
-152.184
-118.788
-83.7585
-47.2173
-9.39831
29.4286
69.0163
109.11
149.379
189.457
228.962
267.538
304.674
339.975
372.946
403.123
430.114
453.521
472.99
488.27
499.209
505.69
507.68
505.242
498.434
487.387
472.3
453.514
431.302
406.051
378.138
347.962
316.053
282.842
248.76
214.345
180
146.148
113.134
81.25
50.7943
21.9445
-5.19009
-30.5246
-54.0626
-75.844
-95.9297
-114.429
-131.46
-147.15
-161.617
-174.96
-187.271
-198.626
-209.08
-218.675
-227.424
-235.323
-242.353
-248.479
-253.653
-257.82
-260.92
-262.89
-263.674
-263.209
-261.348
-258.107
-253.468
-247.403
-141.567
-166.498
-190.327
-213.002
-234.336
-254.229
-272.543
-288.333
-302.743
-316.467
-328.673
-339.286
-348.308
-355.797
-361.815
-366.442
-369.774
-371.912
-372.767
-372.572
-371.395
-369.281
-366.26
-362.335
-357.504
-351.721
-344.906
-336.608
-327.62
-317.419
-305.875
-292.824
-278.153
-261.737
-243.498
-223.326
-201.185
-177.054
-150.926
-122.887
-93.06
-61.581
-28.6636
5.43357
40.4532
76.0548
111.807
147.31
182.118
215.724
247.717
277.686
305.219
329.956
351.523
369.605
383.973
394.385
400.675
402.753
401.24
395.489
385.493
371.359
353.258
331.443
306.276
278.143
247.408
214.552
180.1
144.499
108.104
71.2438
34.1754
-2.87493
-39.6609
-75.9632
-111.507
-145.968
-179.139
-210.664
-240.269
-267.703
-292.855
-315.682
-336.323
-354.955
-371.694
-386.619
-399.877
-411.41
-421.36
-429.767
-436.674
-442.077
-446.012
-448.497
-449.559
-449.24
-447.598
-444.702
-440.591
-435.294
-428.836
-421.236
-412.505
-402.656
-391.702
-379.643
-366.477
-352.188
-336.767
-320.196
-302.468
-283.587
-263.564
-242.429
-220.213
-196.937
-172.614
-147.266
-120.917
-93.6302
-65.4866
-36.6021
-7.14046
22.705
52.6951
82.5525
111.988
140.711
168.396
194.721
219.346
241.904
262.053
279.446
293.74
304.619
311.801
315.039
314.149
309.014
299.594
285.95
268.236
246.704
221.703
193.63
162.924
130.05
95.4856
59.7318
23.2984
-13.2964
-49.5558
-85.0106
-119.254
-151.966
-182.884
-211.8
-238.569
-263.111
-285.384
-305.377
-323.104
-338.601
-351.937
-363.218
-372.586
-380.206
-386.229
-390.824
-394.123
-396.242
-397.268
-397.291
-396.398
-394.704
-392.33
-389.387
-385.959
-382.105
-377.869
-373.295
-368.427
-363.314
-357.999
-352.498
-346.792
-340.811
-334.465
-327.618
-320.174
-312.011
-303.024
-293.097
-282.175
-270.209
-257.17
-243.015
-227.65
-210.97
-192.859
-173.239
-152.051
-129.297
-105.037
-79.3626
-52.3941
-24.2808
4.76292
34.4783
64.5512
94.5963
124.191
152.908
180.321
205.99
229.439
250.184
267.729
281.606
291.433
296.947
297.994
294.509
286.558
274.343
258.202
238.572
215.93
190.79
163.644
134.945
105.107
74.5081
43.5162
12.4939
-18.1883
-48.1823
-77.1634
-104.889
-131.171
-155.906
-179.049
-200.605
-220.608
-239.095
-256.105
-271.696
-285.964
-299.038
-311.061
-322.162
-332.454
-342.026
-350.949
-359.262
-366.97
-374.077
-380.59
-386.368
-391.702
-396.28
-400.147
-403.274
-405.573
-406.921
-407.198
-406.311
-404.168
-400.658
-395.695
-389.172
-380.958
-370.939
-359.028
-345.043
-328.885
-310.507
-289.832
-266.817
-241.529
-214.018
-184.415
-152.828
-119.369
-84.2718
-47.6532
-9.7467
29.1805
68.8819
109.115
149.55
189.818
229.544
268.368
305.772
341.359
374.619
405.076
432.328
455.966
475.627
491.051
502.087
508.618
510.61
508.095
501.165
489.949
474.649
455.616
433.124
407.569
379.336
348.831
316.593
283.059
248.669
213.969
179.367
145.292
112.094
80.0644
49.5048
20.593
-6.5667
-31.894
-55.3975
-77.1231
-97.137
-115.555
-132.502
-148.11
-162.502
-175.779
-188.033
-199.343
-209.765
-219.342
-228.085
-235.991
-243.037
-249.188
-254.392
-258.593
-261.73
-263.736
-264.558
-264.128
-262.3
-259.089
-254.481
-248.448
-142.557
-167.522
-191.391
-214.113
-235.492
-255.427
-273.817
-289.277
-303.993
-317.708
-329.887
-340.466
-349.448
-356.888
-362.852
-367.422
-370.697
-372.788
-373.588
-373.354
-372.147
-370.016
-366.99
-363.074
-358.269
-352.535
-345.841
-337.53
-328.644
-318.527
-307.072
-294.109
-279.519
-263.174
-244.994
-224.867
-202.75
-178.616
-152.455
-124.355
-94.4378
-62.8348
-29.7607
4.52598
39.7694
75.6293
111.669
147.48
182.607
216.535
248.847
279.128
306.961
331.976
353.795
372.095
386.643
397.189
403.56
405.664
404.17
398.378
388.281
373.988
355.674
333.601
308.142
279.703
248.648
215.477
180.726
144.846
108.212
71.1583
33.937
-3.23716
-40.1296
-76.5331
-112.179
-146.747
-180.034
-211.676
-241.391
-268.915
-294.135
-317.002
-337.645
-356.24
-372.916
-387.775
-400.969
-412.468
-422.402
-430.805
-437.705
-443.112
-447.042
-449.512
-450.551
-450.201
-448.528
-445.607
-441.476
-436.163
-429.693
-422.084
-413.347
-403.496
-392.543
-380.489
-367.332
-353.055
-337.645
-321.085
-303.365
-284.488
-264.464
-243.327
-221.109
-197.83
-173.499
-148.135
-121.755
-94.4196
-66.206
-37.2268
-7.64483
22.348
52.5107
82.5589
112.203
141.155
169.082
195.662
220.554
243.379
263.792
281.441
295.971
307.058
314.413
317.779
316.963
311.84
302.365
288.597
270.692
248.911
223.614
195.212
164.155
130.917
95.9832
59.8631
23.0752
-13.8533
-50.4151
-86.1315
-120.591
-153.473
-184.522
-213.526
-240.346
-264.909
-287.178
-307.146
-324.828
-340.261
-353.513
-364.693
-373.951
-381.459
-387.37
-391.86
-395.067
-397.1
-398.047
-397.992
-397.018
-395.246
-392.801
-389.797
-386.32
-382.427
-378.159
-373.556
-368.665
-363.542
-358.23
-352.751
-347.088
-341.167
-334.896
-328.126
-320.765
-312.684
-303.777
-293.92
-283.061
-271.153
-258.177
-244.094
-228.805
-212.2
-194.151
-174.577
-153.405
-130.637
-106.334
-80.5857
-53.5075
-25.2453
3.98878
33.9366
64.2817
94.6308
124.553
153.614
181.38
207.406
231.212
252.3
270.154
284.283
294.29
299.904
300.965
297.404
289.287
276.827
260.38
240.404
217.398
191.897
164.405
135.38
105.238
74.3563
43.1042
11.8441
-19.0486
-49.217
-78.3305
-106.145
-132.474
-157.221
-180.349
-201.87
-221.827
-240.259
-257.203
-272.717
-286.897
-299.88
-311.815
-322.839
-333.066
-342.587
-351.474
-359.769
-367.47
-374.578
-381.119
-386.945
-392.269
-396.865
-400.765
-403.935
-406.282
-407.676
-407.99
-407.133
-405.017
-401.529
-396.586
-390.084
-381.885
-371.881
-359.982
-346.002
-329.838
-311.45
-290.756
-267.706
-242.371
-214.812
-185.153
-153.507
-119.982
-84.8136
-48.1147
-10.1174
28.9139
68.7329
109.111
149.721
190.189
230.149
269.234
306.923
342.814
376.382
407.138
434.668
458.553
478.416
493.995
505.133
511.718
513.71
511.115
504.056
492.661
477.135
457.838
435.05
409.173
380.599
349.745
317.158
283.282
248.565
213.562
178.689
144.378
110.985
78.801
48.1322
19.156
-8.02871
-33.3467
-56.8123
-78.4774
-98.414
-116.745
-133.601
-149.122
-163.435
-176.641
-188.834
-200.096
-210.485
-220.042
-228.78
-236.693
-243.758
-249.935
-255.171
-259.409
-262.584
-264.63
-265.491
-265.099
-263.304
-260.125
-255.551
-249.551
-143.597
-168.599
-192.511
-215.284
-236.712
-256.687
-275.175
-290.274
-305.3
-319.017
-331.168
-341.712
-350.65
-358.038
-363.945
-368.454
-371.667
-373.707
-374.448
-374.174
-372.936
-370.787
-367.754
-363.85
-359.071
-353.388
-346.811
-338.505
-329.723
-319.694
-308.332
-295.463
-280.96
-264.69
-246.573
-226.495
-204.403
-180.269
-154.073
-125.909
-95.8977
-64.1643
-30.9257
3.56025
39.0393
75.172
111.516
147.653
183.117
217.386
250.035
280.647
308.796
334.107
356.193
374.724
389.462
400.149
406.607
408.737
407.265
401.431
391.227
376.765
358.224
335.875
310.104
281.335
249.942
216.441
181.379
145.209
108.318
71.0598
33.6807
-3.62012
-40.6205
-77.127
-112.879
-147.556
-180.967
-212.735
-242.568
-270.188
-295.478
-318.382
-339.025
-357.58
-374.193
-388.985
-402.116
-413.58
-423.498
-431.898
-438.792
-444.202
-448.126
-450.58
-451.593
-451.212
-449.504
-446.556
-442.404
-437.074
-430.592
-422.974
-414.23
-404.376
-393.424
-381.376
-368.229
-353.964
-338.566
-322.019
-304.308
-285.434
-265.409
-244.268
-222.048
-198.768
-174.43
-149.05
-122.639
-95.2535
-66.9672
-37.8893
-8.1817
21.9662
52.3105
82.5592
112.423
141.616
169.797
196.647
221.821
244.926
265.62
283.539
298.318
309.626
317.165
320.667
319.929
314.821
305.288
291.389
273.282
251.235
225.625
196.874
165.446
131.822
96.4973
59.9891
22.8254
-14.4573
-51.3384
-87.3315
-122.017
-155.078
-186.262
-215.357
-242.228
-266.811
-289.074
-309.015
-326.65
-342.015
-355.177
-366.25
-375.391
-382.779
-388.57
-392.951
-396.059
-398.004
-398.868
-398.73
-397.672
-395.816
-393.295
-390.227
-386.699
-382.765
-378.463
-373.83
-368.915
-363.778
-358.469
-353.015
-347.397
-341.541
-335.35
-328.662
-321.388
-313.396
-304.572
-294.789
-283.996
-272.148
-259.238
-245.231
-230.023
-213.5
-195.518
-175.993
-154.84
-132.06
-107.712
-81.8859
-54.6933
-26.2751
3.15904
33.3528
63.9858
94.6577
124.928
154.352
182.49
208.896
233.081
254.533
272.717
287.117
297.315
303.036
304.113
300.471
292.177
279.454
262.679
242.335
218.941
193.058
165.198
135.829
105.367
74.1866
42.66
11.1477
-19.9684
-50.3216
-79.5747
-107.481
-133.859
-158.617
-181.725
-203.207
-223.115
-241.489
-258.365
-273.795
-287.881
-300.766
-312.608
-323.55
-333.707
-343.174
-352.025
-360.3
-367.993
-375.103
-381.676
-387.545
-392.866
-397.479
-401.414
-404.629
-407.028
-408.471
-408.823
-407.998
-405.91
-402.444
-397.522
-391.041
-382.859
-372.871
-360.985
-347.011
-330.84
-312.441
-291.727
-268.641
-243.254
-215.643
-185.925
-154.218
-120.624
-85.3831
-48.6013
-10.5103
28.6285
68.5692
109.097
149.89
190.567
230.774
270.135
308.126
344.339
378.234
409.308
437.135
461.281
481.359
497.102
508.348
514.99
516.983
514.302
507.107
495.523
479.758
460.182
437.079
410.861
381.927
350.703
317.746
283.508
248.445
213.123
177.962
143.403
109.803
77.4579
46.6747
17.6319
-9.57759
-34.884
-58.3082
-79.9077
-99.761
-117.998
-134.758
-150.186
-164.414
-177.545
-189.674
-200.886
-211.239
-220.777
-229.509
-237.429
-244.514
-250.719
-255.99
-260.268
-263.484
-265.571
-266.474
-266.121
-264.361
-261.216
-256.677
-250.712
-144.683
-169.727
-193.688
-216.514
-237.994
-258.004
-276.485
-291.458
-306.676
-320.393
-332.517
-343.022
-351.915
-359.248
-365.093
-369.537
-372.683
-374.665
-375.348
-375.032
-373.762
-371.592
-368.554
-364.661
-359.91
-354.276
-347.769
-339.579
-330.857
-320.92
-309.657
-296.887
-282.477
-266.286
-248.237
-228.211
-206.148
-182.013
-155.781
-127.551
-97.4412
-65.5711
-32.1599
2.53478
38.261
74.681
111.347
147.828
183.648
218.275
251.28
282.242
310.724
336.347
358.715
377.491
392.431
403.268
409.818
411.977
410.527
404.649
394.331
379.69
360.909
338.268
312.164
283.04
251.287
217.442
182.056
145.586
108.426
70.9477
33.4049
-4.02425
-41.1333
-77.7443
-113.604
-148.395
-181.936
-213.839
-243.799
-271.522
-296.885
-319.826
-340.464
-358.978
-375.526
-390.249
-403.318
-414.747
-424.648
-433.045
-439.934
-445.347
-449.263
-451.7
-452.687
-452.27
-450.525
-447.549
-443.375
-438.028
-431.532
-423.904
-415.154
-405.297
-394.346
-382.304
-369.167
-354.915
-339.532
-322.996
-305.294
-286.425
-266.397
-245.253
-223.032
-199.75
-175.407
-150.012
-123.568
-96.1327
-67.7709
-38.5901
-8.75171
21.5595
52.0943
82.5528
112.646
142.093
170.541
197.674
223.144
246.545
267.533
285.74
300.78
312.322
320.056
323.702
323.049
317.957
308.364
294.326
276.005
253.678
227.735
198.616
166.794
132.763
97.0257
60.1076
22.5465
-15.1104
-52.3287
-88.6133
-123.535
-156.782
-188.107
-217.295
-244.217
-268.818
-291.073
-310.985
-328.57
-343.864
-356.931
-367.889
-376.905
-384.167
-389.829
-394.096
-397.101
-398.953
-399.731
-399.507
-398.359
-396.414
-393.812
-390.677
-387.096
-383.12
-378.782
-374.118
-369.176
-364.023
-358.716
-353.286
-347.716
-341.93
-335.825
-329.224
-322.043
-314.145
-305.411
-295.706
-284.98
-273.194
-260.352
-246.425
-231.305
-214.87
-196.962
-177.491
-156.358
-133.566
-109.172
-83.265
-55.9534
-27.3714
2.27255
32.7257
63.6629
94.6762
125.315
155.123
183.655
210.46
235.046
256.887
275.423
290.11
300.512
306.346
307.439
303.711
295.229
282.226
265.102
244.364
220.558
194.269
166.022
136.29
105.492
73.9964
42.1809
10.4014
-20.9518
-51.4999
-80.9
-108.902
-135.328
-160.095
-183.179
-204.619
-224.473
-242.787
-259.59
-274.933
-288.917
-301.697
-313.44
-324.294
-334.378
-343.787
-352.599
-360.856
-368.541
-375.65
-382.263
-388.194
-393.493
-398.122
-402.095
-405.357
-407.813
-409.307
-409.7
-408.908
-406.849
-403.408
-398.506
-392.048
-383.882
-373.911
-362.039
-348.071
-331.892
-313.481
-292.747
-269.622
-244.179
-216.515
-186.735
-154.963
-121.298
-85.9811
-49.1138
-10.9266
28.3233
68.388
109.072
150.056
190.951
231.417
271.069
309.378
345.932
380.175
411.586
439.729
464.151
484.458
500.373
511.735
518.436
520.429
517.659
510.322
498.538
482.52
462.649
439.213
412.633
383.319
351.704
318.358
283.738
248.309
212.649
177.187
142.364
108.548
76.0328
45.1301
16.0188
-11.2149
-36.5071
-59.8861
-81.4148
-101.178
-119.315
-135.973
-151.302
-165.44
-178.492
-190.553
-201.711
-212.027
-221.544
-230.271
-238.2
-245.306
-251.541
-256.85
-261.169
-264.428
-266.56
-267.507
-267.195
-265.472
-262.362
-257.859
-251.932
-145.815
-170.909
-194.922
-217.804
-239.339
-259.387
-277.73
-292.834
-308.125
-321.838
-333.933
-344.398
-353.242
-360.516
-366.297
-370.672
-373.746
-375.664
-376.287
-375.927
-374.624
-372.432
-369.388
-365.506
-360.785
-355.199
-348.715
-340.754
-332.045
-322.204
-311.045
-298.382
-284.07
-267.963
-249.984
-230.015
-207.984
-183.85
-157.58
-129.281
-99.0699
-67.0568
-33.4649
1.44774
37.4326
74.1548
111.16
148.004
184.2
219.204
252.583
283.913
312.747
338.698
361.363
380.398
395.551
406.548
413.195
415.382
413.959
408.035
397.597
382.766
363.73
340.779
314.322
284.816
252.683
218.477
182.754
145.975
108.537
70.8245
33.1091
-4.44948
-41.6669
-78.3831
-114.353
-149.263
-182.941
-214.988
-245.084
-272.916
-298.354
-321.33
-341.961
-360.432
-376.914
-391.565
-404.573
-415.965
-425.851
-434.245
-441.13
-446.545
-450.454
-452.873
-453.831
-453.376
-451.59
-448.585
-444.388
-439.023
-432.513
-424.875
-416.118
-406.257
-395.307
-383.272
-370.146
-355.908
-340.539
-324.018
-306.325
-287.459
-267.429
-246.281
-224.058
-200.776
-176.429
-151.019
-124.544
-97.0575
-68.618
-39.3306
-9.35644
21.1257
51.86
82.5377
112.871
142.585
171.311
198.741
224.524
248.235
269.535
288.042
303.358
315.146
323.087
326.885
326.322
321.249
311.593
297.41
278.862
256.239
229.946
200.438
168.203
133.744
97.5709
60.2205
22.2388
-15.8125
-53.3878
-89.979
-125.146
-158.587
-190.058
-219.341
-246.314
-270.932
-293.177
-313.057
-330.589
-345.807
-358.774
-369.609
-378.493
-385.622
-391.147
-395.294
-398.191
-399.947
-400.635
-400.322
-399.08
-397.04
-394.352
-391.147
-387.51
-383.491
-379.116
-374.419
-369.447
-364.277
-358.971
-353.566
-348.046
-342.336
-336.323
-329.813
-322.732
-314.933
-306.295
-296.672
-286.016
-274.292
-261.519
-247.677
-232.651
-216.311
-198.482
-179.072
-157.961
-135.158
-110.718
-84.7262
-57.2912
-28.5387
1.32516
32.0511
63.3092
94.6831
125.711
155.924
184.87
212.097
237.107
259.36
278.271
293.264
303.884
309.84
310.95
307.13
298.448
285.145
267.648
246.492
222.247
195.531
166.875
136.762
105.611
73.785
41.666
9.60419
-21.9997
-52.7531
-82.3078
-110.408
-136.882
-161.655
-184.712
-206.104
-225.901
-244.151
-260.88
-276.129
-290.006
-302.673
-314.31
-325.072
-335.078
-344.425
-353.197
-361.435
-369.113
-376.218
-382.878
-388.796
-394.147
-398.793
-402.806
-406.12
-408.636
-410.185
-410.619
-409.86
-407.832
-404.414
-399.534
-393.1
-384.952
-374.998
-363.143
-349.182
-332.991
-314.568
-293.814
-270.647
-245.143
-217.423
-187.578
-155.739
-122.001
-86.6063
-49.6516
-11.3658
27.9976
68.19
109.033
150.216
191.339
232.076
272.032
310.678
347.593
382.204
413.972
442.45
467.165
487.713
503.811
515.294
522.058
524.05
521.187
513.7
501.705
485.42
465.238
441.451
414.491
384.776
352.749
318.992
283.969
248.154
212.14
176.359
141.261
107.217
74.5234
43.4962
14.3146
-12.9423
-38.2173
-61.547
-82.9993
-102.667
-120.696
-137.244
-152.468
-166.511
-179.481
-191.47
-202.572
-212.849
-222.343
-231.065
-239.004
-246.133
-252.4
-257.749
-262.113
-265.418
-267.596
-268.589
-268.32
-266.636
-263.562
-259.098
-253.209
-146.991
-172.142
-196.212
-219.153
-240.748
-260.837
-278.956
-294.355
-309.649
-323.353
-335.416
-345.84
-354.631
-361.844
-367.557
-371.858
-374.854
-376.697
-377.263
-376.859
-375.52
-373.306
-370.255
-366.386
-361.695
-356.158
-349.718
-341.957
-333.284
-323.546
-312.497
-299.948
-285.739
-269.72
-251.817
-231.91
-209.913
-185.782
-159.472
-131.101
-100.786
-68.6231
-34.8426
0.297319
36.5521
73.5914
110.953
148.181
184.771
220.171
253.943
285.66
314.864
341.16
364.139
383.445
398.824
409.99
416.74
418.956
417.563
411.589
401.025
385.994
366.689
343.41
316.582
286.665
254.126
219.542
183.468
146.369
108.649
70.6903
32.7904
-4.89697
-42.2217
-79.0435
-115.125
-150.155
-183.978
-216.179
-246.422
-274.371
-299.887
-322.899
-343.519
-361.943
-378.354
-392.932
-405.879
-417.234
-427.105
-435.498
-442.38
-447.796
-451.699
-454.098
-455.026
-454.53
-452.699
-449.663
-445.442
-440.06
-433.535
-425.887
-417.122
-407.257
-396.308
-384.28
-371.166
-356.943
-341.59
-325.082
-307.401
-288.538
-268.504
-247.351
-225.127
-201.846
-177.496
-152.073
-125.565
-98.0273
-69.5083
-40.1103
-9.99522
20.6661
51.6085
82.5142
113.099
143.091
172.108
199.849
225.959
249.993
271.623
290.447
306.05
318.099
326.258
330.218
329.751
324.698
314.977
300.64
281.853
258.916
232.253
202.337
169.666
134.757
98.1267
60.3216
21.8981
-16.5686
-54.519
-91.4308
-126.854
-160.496
-192.117
-221.496
-248.518
-273.151
-295.384
-315.23
-332.707
-347.846
-360.706
-371.411
-380.154
-387.138
-392.524
-396.542
-399.328
-400.983
-401.581
-401.174
-399.834
-397.693
-394.914
-391.635
-387.941
-383.879
-379.466
-374.735
-369.731
-364.54
-359.234
-353.854
-348.388
-342.758
-336.845
-330.431
-323.453
-315.761
-307.224
-297.689
-287.103
-275.442
-262.74
-248.987
-234.06
-217.823
-200.082
-180.736
-159.653
-136.839
-112.351
-86.2713
-58.7079
-29.7779
0.315516
31.3274
62.9231
94.6777
126.117
156.755
186.136
213.807
239.265
261.954
281.266
296.583
307.433
313.518
314.647
310.729
301.834
288.211
270.319
248.717
224.009
196.842
167.757
137.243
105.724
73.5513
41.1138
8.75484
-23.1141
-54.0844
-83.8007
-112.001
-138.523
-163.299
-186.324
-207.663
-227.4
-245.584
-262.234
-277.385
-291.146
-303.693
-315.218
-325.881
-335.806
-345.088
-353.817
-362.038
-369.71
-376.805
-383.524
-389.438
-394.834
-399.495
-403.549
-406.917
-409.497
-411.106
-411.584
-410.86
-408.863
-405.47
-400.612
-394.203
-386.072
-376.137
-364.297
-350.342
-334.14
-315.704
-294.931
-271.718
-246.149
-218.37
-188.457
-156.548
-122.736
-87.2599
-50.2158
-11.8296
27.6505
67.9712
108.98
150.368
191.728
232.749
273.023
312.023
349.32
384.32
416.467
445.298
470.323
491.125
507.417
519.028
525.857
527.848
524.888
517.244
505.027
488.461
467.951
443.793
416.432
386.296
353.837
319.647
284.2
247.98
211.593
175.478
140.091
105.807
72.9274
41.7707
12.5174
-14.7615
-40.0159
-63.2922
-84.6622
-104.226
-122.141
-138.572
-153.685
-167.629
-180.511
-192.425
-203.466
-213.702
-223.174
-231.891
-239.841
-246.995
-253.297
-258.688
-263.099
-266.452
-268.679
-269.718
-269.498
-267.853
-264.817
-260.392
-254.544
-148.208
-173.429
-197.559
-220.563
-242.223
-262.362
-280.223
-295.955
-311.246
-324.937
-336.968
-347.348
-356.084
-363.232
-368.874
-373.096
-376.007
-377.754
-378.278
-377.828
-376.452
-374.214
-371.155
-367.299
-362.639
-357.155
-350.777
-343.191
-334.571
-324.948
-314.013
-301.586
-287.487
-271.56
-253.735
-233.895
-211.937
-187.809
-161.457
-133.013
-102.59
-70.2716
-36.2943
-0.918467
35.6173
72.9889
110.726
148.357
185.36
221.175
255.36
287.482
317.075
343.734
367.041
386.635
402.251
413.595
420.456
422.704
421.34
415.316
404.618
389.376
369.787
346.163
318.945
288.589
255.615
220.634
184.197
146.767
108.759
70.5516
32.4518
-5.36562
-42.7956
-79.722
-115.917
-151.072
-185.048
-217.413
-247.812
-275.885
-301.484
-324.528
-345.135
-363.511
-379.849
-394.349
-407.234
-418.552
-428.41
-436.803
-443.683
-449.101
-452.997
-455.376
-456.27
-455.73
-453.849
-450.782
-446.538
-441.136
-434.597
-426.938
-418.165
-408.296
-397.347
-385.326
-372.225
-358.018
-342.682
-326.19
-308.519
-289.66
-269.621
-248.462
-226.238
-202.959
-178.608
-153.173
-126.634
-99.0438
-70.4445
-40.9325
-10.6718
20.1761
51.3355
82.4779
113.325
143.608
172.926
200.993
227.446
251.818
273.796
292.951
308.855
321.179
329.567
333.697
333.334
328.304
318.516
304.019
284.982
261.714
234.662
204.316
171.189
135.808
98.6991
60.4172
21.5303
-17.3751
-55.7193
-92.9681
-128.657
-162.51
-194.286
-223.763
-250.83
-275.476
-297.695
-317.504
-334.923
-349.979
-362.728
-373.294
-381.887
-388.716
-393.959
-397.841
-400.51
-402.063
-402.566
-402.065
-400.62
-398.372
-395.497
-392.141
-388.389
-384.283
-379.829
-375.062
-370.022
-364.809
-359.501
-354.147
-348.738
-343.194
-337.388
-331.077
-324.209
-316.628
-308.198
-298.755
-288.242
-276.645
-264.015
-250.354
-235.534
-219.408
-201.759
-182.487
-161.432
-138.608
-114.073
-87.9033
-60.2073
-31.0934
-0.760231
30.5503
62.5007
94.6568
126.531
157.616
187.452
215.586
241.517
264.669
284.406
300.068
311.162
317.386
318.534
314.515
305.394
291.432
273.119
251.045
225.845
198.203
168.667
137.735
105.831
73.2945
40.5228
7.84981
-24.3002
-55.4989
-85.3833
-113.686
-140.255
-165.031
-188.019
-209.299
-228.97
-247.086
-263.654
-278.701
-292.34
-304.758
-316.163
-326.723
-336.561
-345.774
-354.458
-362.664
-370.33
-377.441
-384.173
-390.097
-395.515
-400.217
-404.318
-407.743
-410.392
-412.063
-412.587
-411.896
-409.932
-406.565
-401.73
-395.348
-387.236
-377.321
-365.5
-351.553
-335.335
-316.885
-296.093
-272.832
-247.191
-219.351
-189.368
-157.387
-123.498
-87.9397
-50.8053
-12.3168
27.2812
67.7334
108.909
150.512
192.117
233.432
274.039
313.412
351.113
386.523
419.07
448.275
473.627
494.697
511.191
522.936
529.835
531.824
528.763
520.955
508.505
491.642
470.787
446.241
418.459
387.879
354.966
320.323
284.43
247.784
211.005
174.54
138.85
104.316
71.2421
39.951
10.6248
-16.6744
-41.9043
-65.1228
-86.4042
-105.858
-123.65
-139.957
-154.953
-168.791
-181.582
-193.416
-204.394
-214.588
-224.036
-232.748
-240.711
-247.891
-254.23
-259.667
-264.128
-267.532
-269.81
-270.897
-270.727
-269.124
-266.127
-261.743
-255.937
-149.464
-174.768
-198.964
-222.032
-243.762
-263.983
-281.528
-297.62
-312.916
-326.591
-338.588
-348.921
-357.6
-364.681
-370.246
-374.386
-377.207
-378.832
-379.33
-378.834
-377.418
-375.154
-372.086
-368.244
-363.618
-358.189
-351.884
-344.462
-335.904
-326.408
-315.594
-303.295
-289.313
-273.482
-255.739
-235.972
-214.056
-189.935
-163.537
-135.017
-104.486
-72.0043
-37.822
-2.20169
34.6258
72.345
110.477
148.532
185.967
222.216
256.832
289.381
319.382
346.419
370.071
389.968
405.834
417.367
424.344
426.621
425.295
419.217
408.378
392.915
373.025
349.038
321.412
290.593
257.148
221.749
184.934
147.163
108.86
70.4039
32.0922
-5.85935
-43.3898
-80.4204
-116.729
-152.009
-186.146
-218.687
-249.253
-277.46
-303.144
-326.222
-346.813
-365.136
-381.396
-395.814
-408.637
-419.918
-429.763
-438.159
-445.038
-450.459
-454.349
-456.706
-457.565
-456.978
-455.04
-451.943
-447.674
-442.253
-435.698
-428.028
-419.247
-409.372
-398.423
-386.411
-373.323
-359.133
-343.816
-327.339
-309.68
-290.824
-270.778
-249.613
-227.387
-204.113
-179.763
-154.317
-127.748
-100.104
-71.4233
-41.7938
-11.382
19.6608
51.0457
82.4336
113.554
144.141
173.771
202.178
228.989
253.714
276.057
295.558
311.776
324.39
333.019
337.328
337.075
332.068
322.21
307.546
288.242
264.625
237.164
206.366
172.761
136.886
99.2757
60.495
21.121
-18.2436
-56.9993
-94.599
-130.563
-164.632
-196.567
-226.141
-253.252
-277.907
-300.108
-319.879
-337.238
-352.207
-364.838
-375.256
-383.69
-390.359
-395.45
-399.191
-401.738
-403.186
-403.592
-402.993
-401.438
-399.076
-396.098
-392.662
-388.85
-384.7
-380.205
-375.4
-370.32
-365.08
-359.768
-354.441
-349.092
-343.639
-337.946
-331.747
-324.994
-317.53
-309.215
-299.869
-289.428
-277.895
-265.338
-251.775
-237.068
-221.064
-203.516
-184.321
-163.301
-140.467
-115.883
-89.6207
-61.7878
-32.4834
-1.90102
29.7216
62.0433
94.6225
126.955
158.509
188.821
217.44
243.868
267.509
287.696
303.726
315.076
321.445
322.616
318.488
309.127
294.803
276.043
253.466
227.745
199.604
169.597
138.227
105.922
73.0051
39.8851
6.88133
-25.5646
-57.0017
-87.0597
-115.468
-142.079
-166.851
-189.795
-211.009
-230.611
-248.657
-265.141
-280.078
-293.586
-305.865
-317.142
-327.594
-337.34
-346.481
-355.119
-363.31
-370.984
-378.092
-384.845
-390.798
-396.211
-400.968
-405.12
-408.607
-411.33
-413.068
-413.64
-412.983
-411.052
-407.711
-402.899
-396.544
-388.452
-378.555
-366.754
-352.813
-336.578
-318.115
-297.304
-273.992
-248.273
-220.37
-190.314
-158.258
-124.29
-88.6474
-51.4213
-12.8297
26.8887
67.4709
108.821
150.641
192.501
234.126
275.078
314.842
352.967
388.811
421.78
451.38
477.079
498.43
515.136
527.022
533.993
535.98
532.814
524.834
512.14
494.966
473.749
448.794
420.569
389.526
356.136
321.017
284.657
247.563
210.375
173.545
137.538
102.742
69.4647
38.0346
8.63454
-18.6829
-43.8838
-67.0401
-88.2264
-107.561
-125.223
-141.399
-156.27
-169.999
-182.694
-194.443
-205.356
-215.504
-224.928
-233.636
-241.613
-248.821
-255.2
-260.685
-265.198
-268.657
-270.989
-272.125
-272.009
-270.448
-267.491
-263.151
-257.388
-150.756
-176.161
-200.427
-223.561
-245.367
-265.698
-282.877
-299.352
-314.658
-328.316
-340.277
-350.562
-359.18
-366.19
-371.675
-375.728
-378.454
-379.954
-380.422
-379.876
-378.418
-376.126
-373.05
-369.222
-364.63
-359.259
-353.035
-345.772
-337.283
-327.927
-317.238
-305.078
-291.219
-275.486
-257.831
-238.142
-216.273
-192.161
-165.714
-137.116
-106.475
-73.8229
-39.4275
-3.55447
33.5749
71.6576
110.204
148.705
186.592
223.293
258.36
291.355
321.783
349.218
373.23
393.444
409.574
421.308
428.409
430.721
429.43
423.295
412.309
396.611
376.407
352.038
323.983
292.679
258.73
222.885
185.68
147.555
108.953
70.248
31.7208
-6.37579
-44.0007
-81.1329
-117.556
-152.966
-187.272
-220
-250.747
-279.094
-304.868
-327.979
-348.551
-366.816
-382.995
-397.327
-410.085
-421.331
-431.165
-439.565
-446.445
-451.869
-455.755
-458.089
-458.909
-458.273
-456.271
-453.143
-448.849
-443.409
-436.838
-429.157
-420.368
-410.486
-399.537
-387.533
-374.46
-360.288
-344.99
-328.531
-310.885
-292.031
-271.977
-250.804
-228.578
-205.31
-180.964
-155.51
-128.91
-101.213
-72.45
-42.7009
-12.1343
19.1119
50.7311
82.3717
113.776
144.678
174.634
203.396
230.579
255.671
278.401
298.263
314.806
327.725
336.607
341.104
340.972
335.997
326.063
311.226
291.643
267.659
239.769
208.496
174.391
137.998
99.8655
60.5628
20.6789
-19.1643
-58.3511
-96.3165
-132.566
-166.856
-198.956
-228.626
-255.781
-280.442
-302.622
-322.35
-339.647
-354.527
-367.034
-377.293
-385.558
-392.059
-396.989
-400.587
-403.008
-404.347
-404.655
-403.956
-402.286
-399.803
-396.716
-393.197
-389.324
-385.13
-380.592
-375.748
-370.627
-365.357
-360.039
-354.739
-349.453
-344.095
-338.521
-332.444
-325.808
-318.469
-310.275
-301.034
-290.666
-279.195
-266.71
-253.251
-238.666
-222.794
-205.353
-186.244
-165.263
-142.42
-117.788
-91.4314
-63.458
-33.9542
-3.11389
28.8343
61.5444
94.5687
127.386
159.43
190.239
219.365
246.315
270.473
291.137
307.557
319.184
325.704
326.898
322.655
313.037
298.329
279.095
255.986
229.716
201.054
170.554
138.728
106.006
72.6925
39.2102
5.85877
-26.8986
-58.585
-88.8243
-117.338
-143.991
-168.756
-191.648
-212.79
-232.318
-250.293
-266.691
-281.512
-294.878
-307.011
-318.153
-328.492
-338.144
-347.209
-355.798
-363.977
-371.662
-378.794
-385.516
-391.506
-396.927
-401.74
-405.945
-409.499
-412.3
-414.11
-414.731
-414.106
-412.209
-408.893
-404.105
-397.78
-389.707
-379.832
-368.052
-354.122
-337.864
-319.385
-298.559
-275.191
-249.388
-221.418
-191.288
-159.155
-125.108
-89.3799
-52.0621
-13.3665
26.4726
67.187
108.709
150.759
192.877
234.825
276.138
316.312
354.884
391.184
424.599
454.614
480.679
502.325
519.253
531.288
538.334
540.317
537.044
528.885
515.933
498.434
476.837
451.453
422.764
391.234
357.347
321.729
284.879
247.317
209.7
172.488
136.15
101.08
67.5924
36.0185
6.54414
-20.789
-45.9559
-69.0456
-90.1296
-109.338
-126.861
-142.897
-157.637
-171.25
-183.846
-195.506
-206.349
-216.45
-225.849
-234.554
-242.546
-249.784
-256.206
-261.742
-266.311
-269.827
-272.215
-273.402
-273.343
-271.825
-268.91
-264.614
-258.896
-152.079
-177.609
-201.949
-225.149
-247.032
-267.34
-284.443
-301.157
-316.473
-330.112
-342.036
-352.269
-360.825
-367.76
-373.161
-377.124
-379.749
-381.121
-381.553
-380.954
-379.452
-377.13
-374.043
-370.231
-365.675
-360.365
-354.228
-347.121
-338.707
-329.505
-318.948
-306.933
-293.206
-277.575
-260.01
-240.407
-218.588
-194.489
-167.988
-139.311
-108.559
-75.7295
-41.1125
-4.97914
32.4618
70.924
109.905
148.874
187.233
224.406
259.943
293.405
324.28
352.13
376.518
397.065
413.473
425.419
432.652
434.996
433.748
427.552
416.411
400.468
379.932
355.163
326.656
294.847
260.361
224.034
186.424
147.935
109.029
70.0724
31.338
-6.92055
-44.6307
-81.8635
-118.4
-153.936
-188.422
-221.349
-252.289
-280.79
-306.658
-329.801
-350.349
-368.554
-384.646
-398.885
-411.577
-422.787
-432.613
-441.021
-447.903
-453.332
-457.214
-459.525
-460.304
-459.614
-457.54
-454.383
-450.063
-444.604
-438.017
-430.324
-421.526
-411.637
-400.687
-388.691
-375.635
-361.482
-346.206
-329.765
-312.133
-293.281
-273.216
-252.032
-229.805
-206.546
-182.207
-156.746
-130.117
-102.365
-73.5195
-43.6471
-12.9213
18.5361
50.3991
82.3018
113.999
145.229
175.519
204.651
232.221
257.696
280.831
301.069
317.952
331.192
340.338
345.034
345.025
340.075
330.072
315.055
295.178
270.807
242.466
210.696
176.068
139.135
100.457
60.609
20.1931
-20.1506
-59.7893
-98.1332
-134.677
-169.196
-201.464
-231.227
-258.42
-283.081
-305.237
-324.92
-342.151
-356.94
-369.314
-379.403
-387.489
-393.812
-398.573
-402.021
-404.315
-405.542
-405.753
-404.953
-403.163
-400.55
-397.349
-393.744
-389.816
-385.572
-380.989
-376.106
-370.938
-365.635
-360.31
-355.036
-349.817
-344.563
-339.115
-333.169
-326.652
-319.444
-311.378
-302.248
-291.951
-280.543
-268.129
-254.777
-240.323
-224.593
-207.267
-188.252
-167.314
-144.463
-119.786
-93.333
-65.219
-35.509
-4.40219
27.8838
60.9988
94.4916
127.82
160.378
191.704
221.359
248.857
273.563
294.736
311.566
323.48
330.162
331.38
327.019
317.132
302.014
282.278
258.603
231.752
202.544
171.528
139.229
106.073
72.3484
38.489
4.77314
-28.312
-60.2571
-90.6835
-119.303
-145.992
-170.747
-193.579
-214.637
-234.087
-251.99
-268.301
-283.001
-296.221
-308.197
-319.199
-329.42
-338.972
-347.956
-356.493
-364.661
-372.36
-379.509
-386.213
-392.24
-397.669
-402.536
-406.8
-410.425
-413.312
-415.2
-415.874
-415.28
-413.416
-410.125
-405.36
-399.065
-391.012
-381.159
-369.401
-355.477
-339.196
-320.701
-299.862
-276.436
-250.541
-222.502
-192.295
-160.082
-125.955
-90.1388
-52.7291
-13.9296
26.0316
66.8748
108.575
150.855
193.25
235.492
277.205
317.815
356.859
393.64
427.525
457.978
484.427
506.383
523.544
535.734
542.859
544.837
541.455
533.108
519.887
502.047
480.051
454.217
425.042
393.004
358.597
322.458
285.094
247.042
208.977
171.367
134.685
99.3293
65.622
33.8998
4.35099
-22.9949
-48.1219
-71.1408
-92.1148
-111.187
-128.562
-144.451
-159.052
-172.545
-185.037
-196.603
-207.374
-217.426
-226.8
-235.501
-243.51
-250.78
-257.248
-262.839
-267.467
-271.042
-273.489
-274.73
-274.728
-273.256
-270.384
-266.134
-260.462
-153.427
-179.114
-203.531
-226.797
-248.764
-268.886
-286.24
-303.04
-318.36
-331.978
-343.864
-354.044
-362.534
-369.391
-374.704
-378.572
-381.094
-382.329
-382.725
-382.067
-380.518
-378.164
-375.067
-371.269
-366.751
-361.505
-355.461
-348.506
-340.178
-331.144
-320.722
-308.863
-295.276
-279.747
-262.277
-242.768
-221.004
-196.922
-170.36
-141.602
-110.743
-77.7259
-42.8787
-6.47802
31.2833
70.1417
109.578
149.039
187.889
225.553
261.58
295.531
326.873
355.155
379.936
400.832
417.533
429.703
437.076
439.459
438.254
431.993
420.689
404.488
383.604
358.414
329.433
297.097
262.048
225.199
187.167
148.304
109.087
69.8825
30.9456
-7.48613
-45.2748
-82.6035
-119.253
-154.919
-189.595
-222.735
-253.884
-282.546
-308.512
-331.686
-352.209
-370.348
-386.347
-400.489
-413.111
-424.287
-434.107
-442.525
-449.412
-454.846
-458.728
-461.014
-461.747
-461.002
-458.843
-455.661
-451.316
-445.837
-439.234
-431.529
-422.722
-412.824
-401.872
-389.885
-376.847
-362.715
-347.462
-331.042
-313.425
-294.574
-274.496
-253.3
-231.072
-207.826
-183.495
-158.032
-131.376
-103.569
-74.6418
-44.6446
-13.7562
17.9202
50.0343
82.2114
114.211
145.781
176.419
205.934
233.907
259.783
283.346
303.97
321.204
334.783
344.204
349.112
349.239
344.325
334.244
319.037
298.85
274.073
245.261
212.971
177.797
140.301
101.057
60.6408
19.6708
-21.1957
-61.3053
-100.041
-136.885
-171.64
-204.079
-233.937
-261.159
-285.817
-307.946
-327.583
-344.746
-359.441
-371.673
-381.581
-389.477
-395.614
-400.197
-403.489
-405.653
-406.766
-406.879
-405.978
-404.062
-401.313
-397.99
-394.295
-390.303
-386.018
-381.39
-376.468
-371.249
-365.909
-360.575
-355.329
-350.182
-345.038
-339.721
-333.917
-327.521
-320.451
-312.519
-303.509
-293.282
-281.936
-269.591
-256.351
-242.035
-226.46
-209.256
-190.342
-169.453
-146.59
-121.869
-95.3169
-67.0611
-37.1434
-5.76193
26.874
60.4083
94.3906
128.258
161.35
193.211
223.416
251.487
276.761
298.477
315.755
327.976
334.828
336.07
331.588
321.41
305.859
285.591
261.317
233.856
204.077
172.525
139.735
106.132
71.9834
37.7315
3.63468
-29.7973
-62.0113
-92.6308
-121.357
-148.076
-172.816
-195.576
-216.547
-235.917
-253.752
-269.975
-284.551
-297.613
-309.42
-320.27
-330.369
-339.817
-348.716
-357.199
-365.36
-373.074
-380.238
-386.93
-392.976
-398.423
-403.346
-407.673
-411.376
-414.353
-416.324
-417.053
-416.486
-414.655
-411.39
-406.646
-400.383
-392.353
-382.523
-370.791
-356.876
-340.564
-322.052
-301.202
-277.713
-251.718
-223.609
-193.324
-161.03
-126.824
-90.9198
-53.4195
-14.5165
25.5663
66.5375
108.413
150.937
193.602
236.175
278.294
319.354
358.892
396.179
430.557
461.473
488.326
510.605
528.01
540.363
547.571
549.543
546.05
537.506
524.003
505.805
483.392
457.088
427.404
394.836
359.885
323.203
285.302
246.735
208.204
170.18
133.139
97.4852
63.5504
31.6752
2.05232
-25.3028
-50.3831
-73.3273
-94.1832
-113.11
-130.328
-146.06
-160.515
-173.883
-186.268
-197.734
-208.429
-218.43
-227.778
-236.477
-244.504
-251.809
-258.325
-263.974
-268.664
-272.303
-274.811
-276.109
-276.164
-274.739
-271.913
-267.709
-262.086
-154.794
-180.679
-205.173
-228.504
-250.567
-270.455
-288.151
-305.001
-320.321
-333.917
-345.763
-355.887
-364.309
-371.083
-376.304
-380.074
-382.491
-383.582
-383.94
-383.217
-381.616
-379.229
-376.119
-372.338
-367.858
-362.679
-356.729
-349.918
-341.705
-332.843
-322.563
-310.866
-297.431
-282.004
-264.633
-245.227
-223.522
-199.464
-172.832
-143.992
-113.028
-79.8142
-44.7278
-8.05358
30.0359
69.3076
109.221
149.2
188.56
226.733
263.27
297.731
329.562
358.294
383.485
404.746
421.755
434.161
441.686
444.11
442.95
436.619
425.144
408.673
387.424
361.794
332.311
299.425
263.79
226.38
187.901
148.652
109.12
69.6696
30.5321
-8.07082
-45.9371
-83.36
-120.119
-155.91
-190.786
-224.154
-255.527
-284.364
-310.435
-333.638
-354.131
-372.199
-388.096
-402.134
-414.683
-425.828
-435.646
-444.077
-450.972
-456.412
-460.296
-462.557
-463.24
-462.439
-460.184
-456.979
-452.607
-447.108
-440.487
-432.771
-423.953
-414.046
-403.091
-391.113
-378.094
-363.983
-348.755
-332.356
-314.755
-295.905
-275.81
-254.599
-232.37
-209.141
-184.82
-159.356
-132.677
-104.815
-75.8049
-45.6797
-14.6266
17.277
49.6498
82.1074
114.42
146.341
177.336
207.247
235.636
261.927
285.942
306.967
324.568
338.501
348.207
353.338
353.608
348.727
338.575
323.174
302.663
277.462
248.156
215.321
179.578
141.499
101.664
60.6524
19.1016
-22.3129
-62.9155
-102.058
-139.208
-174.201
-206.81
-236.758
-264.002
-288.65
-310.745
-330.333
-347.427
-362.026
-374.108
-383.818
-391.515
-397.457
-401.856
-404.987
-407.016
-408.013
-408.028
-407.026
-404.982
-402.086
-398.636
-394.848
-390.804
-386.469
-381.792
-376.829
-371.558
-366.178
-360.833
-355.613
-350.546
-345.517
-340.339
-334.685
-328.41
-321.486
-313.691
-304.812
-294.654
-283.372
-271.096
-257.975
-243.806
-228.397
-211.328
-192.52
-171.688
-148.812
-124.049
-97.3948
-68.9913
-38.8586
-7.19436
25.8025
59.7735
94.2687
128.704
162.355
194.771
225.545
254.217
280.095
302.375
320.112
332.66
339.696
340.964
336.351
325.87
309.864
289.039
264.131
236.026
205.655
173.545
140.246
106.175
71.5864
36.9212
2.42836
-31.3681
-63.8608
-94.6722
-123.505
-150.245
-174.97
-197.651
-218.529
-237.815
-255.58
-271.715
-286.156
-299.045
-310.67
-321.36
-331.332
-340.674
-349.485
-357.913
-366.071
-373.803
-380.977
-387.663
-393.728
-399.189
-404.171
-408.57
-412.36
-415.435
-417.498
-418.289
-417.744
-415.945
-412.701
-407.978
-401.747
-393.739
-383.934
-372.227
-358.315
-341.972
-323.443
-302.588
-279.033
-252.928
-224.746
-194.383
-162.003
-127.717
-91.7238
-54.1343
-15.1289
25.0745
66.1698
108.223
150.993
193.944
236.837
279.385
320.922
360.981
398.799
433.697
465.1
492.375
514.994
532.654
545.177
552.472
554.436
550.831
542.081
528.283
509.711
486.862
460.066
429.849
396.727
361.211
323.961
285.498
246.396
207.379
168.924
131.51
95.5446
61.3741
29.3414
-0.354733
-27.7153
-52.7408
-75.6069
-96.3357
-115.107
-132.158
-147.724
-162.026
-175.263
-187.538
-198.898
-209.514
-219.463
-228.784
-237.481
-245.527
-252.87
-259.439
-265.149
-269.903
-273.61
-276.182
-277.539
-277.652
-276.276
-273.497
-269.341
-263.768
-156.169
-182.309
-206.877
-230.269
-252.464
-272.06
-290.143
-307.04
-322.356
-335.928
-347.733
-357.799
-366.148
-372.838
-377.962
-381.629
-383.942
-384.926
-385.198
-384.402
-382.745
-380.323
-377.2
-373.434
-368.995
-363.885
-358.033
-351.309
-343.333
-334.602
-324.47
-312.944
-299.673
-284.345
-267.078
-247.784
-226.144
-202.119
-175.404
-146.481
-115.419
-81.9962
-46.6615
-9.70845
28.7159
68.4189
108.833
149.355
189.244
227.946
265.012
300.007
332.347
361.547
387.165
408.809
426.14
438.797
446.485
448.95
447.841
441.434
429.78
413.025
391.393
365.301
335.29
301.827
265.582
227.576
188.616
148.978
109.125
69.4298
30.0959
-8.66005
-46.6125
-84.121
-120.992
-156.904
-191.997
-225.606
-257.219
-286.241
-312.42
-335.651
-356.112
-374.107
-389.895
-403.82
-416.294
-427.408
-437.229
-445.677
-452.583
-458.029
-461.919
-464.152
-464.78
-463.923
-461.542
-458.332
-453.934
-448.415
-441.777
-434.048
-425.221
-415.301
-404.342
-392.376
-379.377
-365.288
-350.087
-333.712
-316.13
-297.279
-277.163
-255.934
-233.702
-210.495
-186.192
-160.726
-134.025
-106.106
-77.0153
-46.758
-15.5353
16.6034
49.2468
81.9917
114.627
146.913
178.281
208.6
237.417
264.142
288.628
310.063
328.048
342.356
352.356
357.724
358.144
353.295
343.068
327.461
306.606
280.957
251.132
217.728
181.396
142.711
102.262
60.6388
18.4857
-23.4936
-64.6033
-104.159
-141.618
-176.855
-209.64
-239.676
-266.938
-291.572
-313.632
-333.167
-350.191
-364.693
-376.613
-386.113
-393.596
-399.335
-403.545
-406.51
-408.401
-409.278
-409.197
-408.095
-405.918
-402.866
-399.282
-395.398
-391.368
-386.923
-382.19
-377.181
-371.858
-366.434
-361.074
-355.882
-350.901
-345.992
-340.963
-335.461
-329.309
-322.535
-314.882
-306.134
-296.046
-284.827
-272.624
-259.63
-245.619
-230.387
-213.46
-194.766
-174.001
-151.113
-126.322
-99.5692
-71.0255
-40.6732
-8.72134
24.6437
59.0643
94.0969
129.129
163.365
196.361
227.73
257.029
283.56
306.453
324.667
337.544
344.76
346.055
341.308
330.511
314.016
292.596
267.018
238.242
207.255
174.567
140.747
106.193
71.1613
36.072
1.17328
-32.9942
-65.7737
-96.7808
-125.719
-152.473
-177.184
-199.774
-220.544
-239.742
-257.443
-273.491
-287.794
-300.503
-311.939
-322.459
-332.303
-341.536
-350.257
-358.629
-366.787
-374.54
-381.721
-388.397
-394.474
-399.951
-404.992
-409.472
-413.359
-416.539
-418.702
-419.56
-419.031
-417.26
-414.036
-409.33
-403.133
-395.152
-385.374
-373.694
-359.79
-343.403
-324.856
-304
-280.374
-254.15
-225.894
-195.453
-162.989
-128.626
-92.5448
-54.8694
-15.7642
24.5592
65.7722
108.002
151.025
194.264
237.496
280.484
322.515
363.122
401.499
436.943
468.858
496.576
519.551
537.476
550.179
557.563
559.519
555.802
546.836
532.728
513.765
490.46
463.15
432.377
398.678
362.574
324.733
285.683
246.019
206.497
167.595
129.795
93.5038
59.0895
26.8947
-2.87321
-30.2348
-55.1959
-77.9816
-98.5736
-117.179
-134.052
-149.443
-163.583
-176.685
-188.846
-200.093
-210.626
-220.521
-229.816
-238.511
-246.58
-253.963
-260.587
-266.362
-271.185
-274.962
-277.602
-279.02
-279.189
-277.867
-275.136
-271.029
-265.506
-157.542
-184.012
-208.643
-232.089
-254.447
-273.72
-292.213
-309.156
-324.464
-338.012
-349.774
-359.78
-368.054
-374.655
-379.678
-383.238
-385.445
-386.344
-386.5
-385.623
-383.905
-381.445
-378.307
-374.558
-370.162
-365.124
-359.372
-352.74
-345.001
-336.419
-326.446
-315.094
-302.007
-286.771
-269.612
-250.443
-228.872
-204.891
-178.077
-149.071
-117.919
-84.274
-48.6811
-11.4451
27.3188
67.4721
108.41
149.504
189.942
229.19
266.805
302.359
335.23
364.914
390.977
413.022
430.691
443.613
451.476
453.998
452.931
446.441
434.6
417.548
395.514
368.94
338.372
304.306
267.428
228.8
189.32
149.277
109.098
69.1618
29.6341
-9.25924
-47.3081
-84.8972
-121.872
-157.896
-193.218
-227.088
-258.967
-288.189
-314.484
-337.738
-358.161
-376.073
-391.74
-405.544
-417.936
-429.023
-438.851
-447.32
-454.241
-459.695
-463.596
-465.8
-466.368
-465.455
-462.926
-459.719
-455.296
-449.758
-443.103
-435.362
-426.522
-416.588
-405.622
-393.668
-380.691
-366.627
-351.454
-335.103
-317.541
-298.691
-278.549
-257.298
-235.066
-211.882
-187.602
-162.138
-135.419
-107.44
-78.2716
-47.8828
-16.4911
15.8913
48.8114
81.8486
114.81
147.467
179.223
209.963
239.227
266.405
291.389
313.24
331.623
346.322
356.627
362.25
362.835
358.028
347.731
331.914
310.703
284.589
254.224
220.225
183.277
143.954
102.867
60.612
17.8388
-24.7222
-66.3657
-106.356
-144.141
-179.638
-212.599
-242.711
-269.975
-294.582
-316.599
-336.078
-353.031
-367.436
-379.184
-388.454
-395.715
-401.242
-405.258
-408.053
-409.805
-410.557
-410.38
-409.18
-406.861
-403.645
-399.922
-395.934
-391.838
-387.344
-382.56
-377.504
-372.133
-366.66
-361.287
-356.123
-351.235
-346.455
-341.585
-336.234
-330.209
-323.582
-316.083
-307.459
-297.447
-286.288
-274.156
-261.304
-247.456
-232.415
-215.635
-197.058
-176.365
-153.456
-128.648
-101.797
-73.1208
-42.5553
-10.3179
23.4252
58.3053
93.895
129.553
164.389
197.975
229.955
259.907
287.112
310.647
329.381
342.626
350.04
351.36
346.485
335.348
318.333
296.28
269.991
240.512
208.885
175.598
141.253
106.211
70.7311
35.2085
-0.131932
-34.7036
-67.7926
-98.9959
-128.025
-154.777
-179.471
-201.95
-222.604
-241.713
-259.354
-275.318
-289.472
-301.987
-313.218
-323.558
-333.272
-342.396
-351.026
-359.344
-367.507
-375.281
-382.47
-389.135
-395.225
-400.713
-405.814
-410.395
-414.397
-417.688
-419.967
-420.902
-420.373
-418.626
-415.409
-410.717
-404.552
-396.599
-386.853
-375.201
-361.291
-344.865
-326.297
-305.447
-281.746
-255.392
-227.061
-196.544
-163.99
-129.553
-93.3826
-55.6244
-16.422
24.017
65.3435
107.742
151.032
194.557
238.173
281.588
324.133
365.315
404.278
440.296
472.75
500.931
524.276
542.48
555.371
562.849
564.794
560.964
551.772
537.339
517.97
494.189
466.342
434.987
400.688
363.972
325.516
285.853
245.604
205.556
166.191
127.99
91.3588
56.6928
24.3311
-5.50624
-32.8642
-57.7491
-80.4539
-100.898
-119.326
-136.01
-151.217
-165.185
-178.148
-190.194
-201.319
-211.765
-221.606
-230.872
-239.568
-247.66
-255.087
-261.769
-267.613
-272.509
-276.36
-279.07
-280.552
-280.777
-279.51
-276.831
-272.773
-267.302
-158.897
-185.797
-210.473
-233.96
-256.341
-275.616
-294.366
-311.35
-326.648
-340.169
-351.887
-361.832
-370.025
-376.534
-381.452
-384.9
-387
-387.806
-387.844
-386.879
-385.095
-382.595
-379.441
-375.708
-371.357
-366.393
-360.747
-354.219
-346.699
-338.29
-328.494
-317.316
-304.435
-289.28
-272.234
-253.206
-231.705
-207.787
-180.849
-151.762
-120.536
-86.6492
-50.788
-13.2664
25.8398
66.4638
107.95
149.648
190.65
230.465
268.647
304.785
338.211
368.397
394.92
417.385
435.408
448.611
456.664
459.259
458.223
451.644
439.607
422.242
399.787
372.71
341.553
306.852
269.318
230.046
189.993
149.535
109.031
68.8529
29.1462
-9.86559
-48.0073
-85.6715
-122.756
-158.884
-194.46
-228.599
-260.752
-290.185
-316.603
-339.883
-360.267
-378.095
-393.628
-407.304
-419.611
-430.676
-440.519
-449.014
-455.954
-461.415
-465.332
-467.507
-468.004
-467.041
-464.41
-461.143
-456.689
-451.133
-444.461
-436.709
-427.86
-417.907
-406.934
-394.992
-382.042
-368.004
-352.864
-336.537
-318.999
-300.146
-279.972
-258.694
-236.459
-213.309
-189.053
-163.598
-136.861
-108.821
-79.5702
-49.0479
-17.488
15.1539
48.3701
81.7121
115.007
148.052
180.201
211.373
241.1
268.743
294.25
316.528
335.324
350.429
361.043
366.937
367.681
362.877
352.54
336.507
314.917
288.312
257.38
222.753
185.167
145.187
103.447
60.5415
17.1213
-26.0483
-68.2467
-108.669
-146.757
-182.504
-215.62
-245.795
-273.051
-297.631
-319.609
-339.038
-355.928
-370.237
-381.8
-390.821
-397.851
-403.163
-406.98
-409.599
-411.206
-411.831
-411.555
-410.264
-407.799
-404.409
-400.539
-396.436
-392.248
-387.713
-382.89
-377.793
-372.376
-366.856
-361.47
-356.339
-351.553
-346.907
-342.2
-337.008
-331.114
-324.628
-317.295
-308.791
-298.873
-287.778
-275.717
-263.023
-249.345
-234.509
-217.881
-199.432
-178.807
-155.874
-131.063
-104.111
-75.2898
-44.499
-11.9666
22.1642
57.5121
93.6786
130.003
165.47
199.667
232.271
262.887
290.801
315.005
334.267
347.881
355.491
356.846
351.839
340.339
322.776
300.057
273.03
242.818
210.522
176.605
141.715
106.144
70.2223
34.2381
-1.52984
-36.4984
-69.8621
-101.24
-130.351
-157.085
-181.774
-204.123
-224.651
-243.673
-261.265
-277.149
-291.15
-303.464
-314.481
-324.633
-334.218
-343.237
-351.78
-360.045
-368.214
-376.007
-383.191
-389.821
-395.918
-401.424
-406.593
-411.292
-415.439
-418.855
-421.263
-422.281
-421.744
-420.008
-416.785
-412.103
-405.974
-398.059
-388.352
-376.727
-362.811
-346.336
-327.746
-306.907
-283.124
-256.632
-228.225
-197.636
-164.992
-130.484
-94.2283
-56.3931
-17.099
23.4545
64.8801
107.45
151.004
194.83
238.816
282.683
325.766
367.554
407.133
443.753
476.775
505.439
529.172
547.667
560.755
568.331
570.265
566.32
556.893
542.12
522.326
498.048
469.64
437.678
402.756
365.405
326.309
286.006
245.145
204.552
164.708
126.093
89.1054
54.1801
21.6465
-8.25713
-35.6067
-60.4007
-83.0264
-103.31
-121.548
-138.032
-153.044
-166.831
-179.65
-191.581
-202.575
-212.931
-222.714
-231.954
-240.65
-248.767
-256.242
-262.986
-268.902
-273.876
-277.804
-280.587
-282.135
-282.415
-281.208
-278.582
-274.572
-269.154
-160.213
-187.68
-212.368
-235.884
-258.215
-277.673
-296.605
-313.621
-328.906
-342.399
-354.073
-363.953
-372.064
-378.477
-383.285
-386.616
-388.606
-389.311
-389.229
-388.167
-386.314
-383.772
-380.601
-376.883
-372.58
-367.693
-362.158
-355.742
-348.428
-340.214
-330.616
-319.608
-306.968
-291.872
-274.945
-256.074
-234.644
-210.811
-183.72
-154.553
-123.274
-89.1238
-52.9837
-15.1753
24.2731
65.3904
107.451
149.787
191.37
231.768
270.538
307.286
341.29
371.994
398.996
421.899
440.293
453.793
462.053
464.729
463.724
457.046
444.806
427.111
404.215
376.613
344.834
309.465
271.249
231.303
190.65
149.753
108.925
68.5072
28.6293
-10.4928
-48.7094
-86.4597
-123.646
-159.846
-195.694
-230.13
-262.609
-292.277
-318.819
-342.102
-362.436
-380.171
-395.563
-409.09
-421.298
-432.34
-442.201
-450.726
-457.691
-463.17
-467.095
-469.24
-469.654
-468.644
-465.613
-462.592
-458.084
-452.496
-445.811
-438.046
-429.194
-419.227
-408.254
-396.328
-383.409
-369.401
-354.301
-338.002
-320.495
-301.643
-281.432
-260.129
-237.887
-214.785
-190.561
-165.119
-138.377
-110.281
-80.9468
-50.2873
-18.5759
14.3248
47.8583
81.516
115.146
148.599
181.161
212.781
243
271.126
297.177
319.9
339.134
354.665
365.596
371.786
372.711
367.94
357.541
341.274
319.288
292.174
260.652
225.375
187.14
146.486
104.078
60.4985
16.3908
-27.4212
-70.1841
-111.02
-149.384
-185.403
-218.687
-248.946
-276.2
-300.756
-322.682
-342.049
-358.874
-373.072
-384.432
-393.182
-399.973
-405.058
-408.676
-411.121
-412.593
-413.088
-412.734
-411.343
-408.721
-405.158
-401.151
-396.937
-392.713
-388.118
-383.209
-378.057
-372.594
-367.026
-361.626
-356.525
-351.852
-347.346
-342.797
-337.771
-332.015
-325.663
-318.498
-310.112
-300.27
-289.26
-277.282
-264.741
-251.246
-236.633
-220.152
-201.852
-181.292
-158.334
-133.573
-106.536
-77.5958
-46.5594
-13.7293
20.7891
56.6107
93.3455
130.367
166.491
201.339
234.601
265.914
294.581
319.506
339.343
353.338
361.153
362.526
357.38
345.509
327.39
303.979
276.195
245.218
212.218
177.651
142.212
106.092
69.7575
33.2925
-2.87073
-38.2465
-71.8815
-103.452
-132.644
-159.36
-184.062
-206.264
-226.665
-245.615
-263.171
-278.994
-292.836
-304.933
-315.716
-325.666
-335.121
-344.041
-352.506
-360.725
-368.9
-376.703
-383.897
-390.549
-396.593
-402.114
-407.367
-412.224
-416.524
-420.082
-422.619
-423.73
-423.192
-421.457
-418.209
-413.51
-407.403
-399.53
-389.87
-378.266
-364.339
-347.811
-329.2
-308.38
-284.51
-257.865
-229.386
-198.729
-165.993
-131.419
-95.0797
-57.1731
-17.7918
22.8688
64.3863
107.113
150.948
195.067
239.434
283.774
327.415
369.841
410.063
447.316
480.935
510.105
534.24
553.039
566.335
574.012
575.936
571.873
562.199
547.071
526.835
502.038
473.047
440.45
404.881
366.872
327.112
286.139
244.639
203.482
163.143
124.101
86.7388
51.5473
18.8366
-11.129
-38.4657
-63.1503
-85.7025
-105.811
-123.846
-140.118
-154.923
-168.52
-181.191
-193.008
-203.858
-214.121
-223.846
-233.058
-241.756
-249.902
-257.427
-264.237
-270.23
-275.285
-279.295
-282.154
-283.77
-284.102
-282.959
-280.388
-276.428
-271.063
-161.463
-189.681
-214.328
-237.864
-260.153
-279.81
-298.934
-315.971
-331.238
-344.702
-356.33
-366.143
-374.168
-380.481
-385.175
-388.384
-390.26
-390.829
-390.657
-389.49
-387.563
-384.978
-381.784
-378.082
-373.825
-369.017
-363.598
-357.297
-350.18
-342.182
-332.818
-321.969
-309.648
-294.59
-277.752
-259.059
-237.694
-213.976
-186.684
-157.441
-126.138
-91.6954
-55.2673
-17.1745
22.6113
64.2475
106.909
149.921
192.098
233.098
272.474
309.861
344.468
375.706
403.204
426.565
445.346
459.16
467.646
470.452
469.437
462.651
450.2
432.157
408.803
380.655
348.218
312.147
273.225
232.587
191.302
149.917
108.77
68.1165
28.0775
-11.1553
-49.4064
-87.2305
-124.512
-160.803
-196.962
-231.707
-264.502
-294.402
-321.029
-344.105
-363.539
-379.534
-392.007
-401.546
-408.493
-412.75
-414.505
-413.52
-410.704
-407.646
-403.819
-401.163
-400.3
-400.438
-401.891
-404.169
-407.387
-410.365
-412.922
-414.711
-414.745
-412.555
-407.018
-397.581
-384.779
-370.737
-355.656
-339.396
-321.938
-303.107
-282.853
-261.525
-239.284
-216.237
-192.056
-166.624
-139.89
-111.742
-82.3348
-51.5225
-19.6673
13.4824
47.3449
81.3222
115.273
149.145
182.116
214.178
244.929
273.551
300.154
323.334
343.031
359.003
370.263
376.775
377.891
373.13
362.709
346.205
323.809
296.163
264.023
228.054
189.144
147.766
104.657
60.3755
15.5565
-28.9173
-72.2619
-113.519
-152.18
-188.459
-221.834
-252.068
-279.136
-303.423
-324.932
-343.728
-359.754
-372.801
-382.629
-389.638
-394.767
-398.541
-401.417
-403.648
-405.264
-406.331
-406.306
-405.189
-403.882
-402.583
-400.677
-397.174
-392.919
-388.32
-383.332
-378.129
-372.623
-367.022
-361.636
-356.601
-352.05
-347.723
-343.318
-338.462
-332.854
-326.609
-319.614
-311.381
-301.538
-290.649
-278.775
-266.378
-253.092
-238.706
-222.363
-204.207
-183.72
-160.704
-136.035
-108.949
-79.9479
-48.6664
-15.5442
19.3677
55.6566
92.9541
130.686
167.476
202.996
236.928
268.948
298.396
324.066
344.523
358.948
366.982
368.386
363.126
350.869
332.132
307.983
279.411
247.62
213.885
178.665
142.664
105.963
69.2547
32.2362
-4.32129
-40.1141
-73.9908
-105.735
-134.961
-161.63
-186.364
-208.359
-228.617
-247.488
-265.012
-280.783
-294.45
-306.307
-316.835
-326.576
-335.917
-344.779
-353.187
-361.364
-369.542
-377.341
-384.589
-391.177
-397.134
-402.078
-406.318
-409.841
-412.226
-413.359
-413.749
-413.697
-413.427
-413.059
-412.16
-410.205
-406.647
-400.53
-391.253
-379.627
-365.685
-349.106
-330.525
-309.803
-285.863
-259.066
-230.526
-199.804
-166.972
-132.344
-95.9254
-57.9563
-18.4974
22.2677
63.8553
106.738
150.85
195.285
239.961
284.836
329.069
372.167
413.066
450.982
485.231
514.928
539.482
558.598
572.112
579.898
581.81
577.623
567.693
552.195
531.499
506.16
476.562
443.301
407.061
368.371
327.923
286.25
244.083
202.342
161.493
122.01
84.2542
48.7901
15.8955
-14.1261
-41.4461
-65.9971
-88.4866
-108.402
-126.219
-142.268
-156.855
-170.25
-182.768
-194.475
-205.167
-215.334
-224.999
-234.184
-242.887
-251.062
-258.641
-265.52
-271.595
-276.737
-280.831
-283.772
-285.457
-285.837
-284.765
-282.251
-278.339
-273.028
-162.608
-191.852
-216.358
-239.901
-262.161
-281.987
-301.338
-318.39
-333.641
-347.075
-358.66
-368.405
-376.342
-382.551
-387.109
-390.118
-389.919
-388.709
-388.453
-385.258
-380.614
-375.384
-370.063
-364.779
-359.73
-354.433
-348.923
-343.823
-338.951
-334.277
-329.271
-322.721
-312.274
-297.209
-280.553
-262.116
-240.847
-217.342
-189.764
-160.435
-129.146
-94.3624
-57.6322
-19.2592
20.8504
63.0318
106.319
150.052
192.834
234.455
274.453
312.511
347.747
379.533
407.545
431.385
450.57
464.716
473.447
476.413
475.361
468.463
455.793
437.385
413.553
384.836
351.697
314.883
275.231
233.88
191.934
150.02
108.562
67.6747
27.4916
-11.8332
-50.1004
-88.0009
-125.377
-161.723
-197.921
-232.595
-264.834
-292.822
-314.263
-326.426
-326.373
-312.063
-285.149
-256.025
-227.87
-201.329
-176.964
-156.073
-139.255
-125.907
-116.891
-112.541
-112.605
-115.73
-121.949
-130.923
-142.677
-157.326
-174.677
-194.864
-217.524
-242.331
-267.099
-289.152
-304.629
-313.955
-319.716
-320.995
-316.273
-303.902
-284.235
-262.775
-240.565
-217.647
-193.542
-168.124
-141.401
-113.212
-83.73
-52.7783
-20.7604
12.6427
46.8297
81.1512
115.416
149.749
183.135
215.595
246.938
276.08
303.228
326.871
347.051
363.468
375.057
381.913
383.209
378.369
367.996
351.241
328.412
300.204
267.414
230.724
191.129
149.014
105.209
60.2438
14.7285
-30.3904
-74.3112
-115.909
-154.727
-191.084
-224.207
-253.778
-279.281
-300.406
-315.637
-323.513
-322.975
-314.234
-300.035
-285.234
-273.057
-264.166
-258.406
-255.608
-254.303
-254.674
-255.58
-257.764
-263.891
-273.483
-283.87
-293.391
-300.008
-304.535
-308.112
-311.146
-314.12
-317.025
-319.342
-321.051
-322.065
-322.502
-322.39
-321.913
-320.958
-318.865
-315.487
-310.249
-302.279
-291.864
-280.127
-267.862
-254.838
-240.703
-224.528
-206.501
-186.108
-163.01
-138.392
-111.311
-82.3049
-50.8241
-17.4291
17.9469
54.7052
92.5659
131.024
168.491
204.716
239.345
272.078
302.314
328.729
349.796
364.661
372.847
374.332
368.951
356.278
336.923
312.003
282.628
250.007
215.52
179.628
143.062
105.717
68.7388
31.1243
-5.70873
-41.8771
-75.9368
-107.828
-137.021
-163.579
-188.321
-209.921
-229.847
-248.33
-265.316
-280.243
-292.419
-302.114
-309.847
-315.963
-320.538
-322.567
-322.324
-320.026
-315.374
-308.745
-302.329
-296.338
-289.058
-281.043
-271.828
-262.297
-252.065
-242.275
-234.793
-230.968
-232.353
-236.833
-245.367
-256.787
-270.204
-285.095
-299.514
-309.883
-317.113
-321.198
-319.493
-308.82
-286.911
-259.886
-231.401
-200.807
-167.93
-133.253
-96.7464
-58.7288
-19.2013
21.6579
63.2984
106.313
150.72
195.455
240.484
285.889
330.728
374.536
416.141
454.75
489.663
519.909
544.898
564.345
578.093
585.993
587.893
583.575
573.377
557.494
536.32
510.415
480.185
446.23
409.295
369.903
328.74
286.337
243.473
201.127
159.753
119.818
81.6444
45.9045
12.8204
-17.2469
-44.5483
-68.9348
-91.3819
-111.083
-128.669
-144.481
-158.84
-172.021
-184.386
-195.989
-206.501
-216.569
-226.174
-235.33
-244.038
-252.246
-259.882
-266.834
-272.997
-278.23
-282.412
-285.438
-287.196
-287.619
-286.628
-284.173
-280.307
-275.05
-163.636
-194.13
-218.395
-241.978
-264.266
-281.241
-252.246
-206.756
-164.516
-127.082
-94.6131
-66.9829
-44.232
-26.4867
-13.4508
-4.67736
-0.829351
-0.308363
-1.49284
-6.5623
-14.0712
-23.3588
-34.0755
-45.8829
-58.7562
-72.9423
-88.5771
-105.915
-124.715
-145.316
-168.458
-195.225
-222.205
-243.075
-246.634
-241.571
-233.78
-219.778
-192.758
-163.459
-132.363
-97.1983
-60.0936
-21.4412
18.989
61.7481
105.685
150.184
193.574
235.836
276.472
315.236
351.128
383.476
412.018
436.358
455.966
470.462
479.458
482.653
481.496
474.485
461.591
442.794
418.467
389.157
355.27
317.676
277.264
235.177
192.549
150.086
108.308
67.1745
26.8454
-12.5678
-50.8223
-88.6249
-125.863
-161.81
-195.845
-223.49
-234.248
-212.018
-169.883
-128.292
-91.8235
-63.4774
-45.818
-34.0986
-24.8564
-17.5771
-12.1072
-8.26577
-5.82443
-4.28008
-3.47273
-3.13873
-3.08112
-3.2028
-3.50412
-4.05035
-4.76675
-5.88203
-7.48944
-9.84679
-13.5024
-19.0778
-27.8432
-41.2138
-61.2658
-86.5647
-115.092
-146.435
-178.768
-207.694
-224.523
-229.678
-227.145
-215.826
-194.938
-169.553
-142.83
-114.686
-85.1183
-54.0474
-21.9039
11.7705
46.2601
80.9321
115.503
150.333
184.173
216.975
248.968
278.697
306.4
330.511
351.187
368.07
380
387.217
388.703
383.81
373.474
356.44
333.166
304.382
270.928
233.499
193.234
150.365
105.844
60.2011
14.024
-31.6426
-76.0061
-117.796
-156.427
-191.393
-218.87
-233.171
-225.899
-195.096
-159.65
-126.022
-96.7287
-74.0471
-59.0132
-49.7266
-43.0336
-38.1314
-34.3532
-31.3147
-29.1215
-28.1354
-28.5062
-30.4284
-32.9257
-35.409
-38.4323
-43.0094
-49.5171
-57.6383
-67.1291
-77.2908
-88.0055
-98.881
-109.359
-118.986
-127.493
-135.249
-143.236
-151.937
-162.362
-173.72
-185.33
-197.512
-210.729
-220.666
-226.187
-229.316
-230.007
-227.375
-220.428
-207.694
-188.288
-165.149
-140.597
-113.577
-84.6132
-52.977
-19.4394
16.3903
53.6703
92.1361
131.343
169.459
206.385
241.746
275.267
306.36
333.519
355.205
370.517
378.802
380.369
374.855
361.769
341.79
316.077
285.937
252.481
217.211
180.679
143.557
105.598
68.4836
30.1773
-6.71984
-43.308
-77.4866
-109.453
-138.372
-164.28
-188.088
-206.82
-221.81
-231.296
-233.662
-227.899
-213.842
-196.783
-180.654
-165.172
-149.678
-134.404
-119.822
-105.448
-91.2114
-77.4964
-65.231
-54.1286
-45.0529
-37.4233
-30.6623
-24.8311
-20.5099
-17.9488
-16.5918
-16.0271
-16.4664
-17.4718
-19.4994
-22.8818
-28.0234
-36.3661
-49.3573
-69.1923
-95.5255
-128.5
-164.736
-198.697
-221.757
-227.904
-222.441
-201.346
-168.541
-133.883
-97.5312
-59.4995
-19.8901
21.0584
62.7148
105.85
150.55
195.588
240.994
286.915
332.381
376.94
419.284
458.621
494.234
525.05
550.492
570.282
584.278
592.298
594.193
589.729
579.252
562.968
541.3
514.803
483.918
449.234
411.582
371.466
329.565
286.396
242.803
199.833
157.921
117.529
78.9132
42.8932
9.60475
-20.5055
-47.792
-71.9799
-94.409
-113.855
-131.186
-146.742
-160.858
-173.804
-186.013
-197.525
-207.834
-217.808
-227.355
-236.488
-245.207
-253.454
-261.152
-268.179
-274.437
-279.768
-284.044
-287.16
-288.986
-288.832
-286.618
-283.224
-278.709
-273.201
-164.244
-178.784
-136.853
-94.0936
-53.8494
-15.8086
-3.80331
-1.80679
-0.881374
-0.255194
0.147608
0.296972
0.242026
0.193218
0.152035
0.121116
0.09188
0.0661321
0.0318165
-0.0160695
-0.0490923
-0.0745763
-0.0979824
-0.119384
-0.138467
-0.15557
-0.172087
-0.192004
-0.238689
-0.365677
-0.74294
-1.87625
-4.86383
-14.0729
-36.1405
-65.2408
-98.5605
-132.652
-153.255
-146.719
-131.134
-99.8766
-62.5945
-23.8528
16.9526
60.3808
105.009
150.333
194.324
237.245
278.526
318.031
354.612
387.531
416.621
441.484
461.534
476.399
485.677
489.134
487.835
480.724
467.604
448.396
423.557
393.626
358.946
320.533
279.333
236.487
193.169
150.129
107.979
66.5998
26.1197
-13.2309
-51.2304
-87.7226
-121.149
-143.568
-136.023
-101.494
-62.5362
-32.9369
-16.5288
-6.7158
-1.68963
-0.156383
-0.0860674
-0.0679859
-0.0554785
-0.0445021
-0.0347886
-0.027871
-0.019271
-0.0137952
-0.0111635
-0.0114351
-0.016159
-0.0238002
-0.0338198
-0.0456707
-0.0604842
-0.0823675
-0.112282
-0.154871
-0.223009
-0.325854
-0.499675
-0.774862
-1.24218
-2.07166
-3.57943
-6.42397
-11.9484
-22.8739
-43.1396
-69.7579
-98.153
-124.527
-141.094
-141.561
-133.023
-114.596
-86.3655
-55.1521
-23.0124
10.9434
45.7112
80.6923
115.535
150.884
185.225
218.291
250.96
281.323
309.619
334.24
355.41
372.737
385.087
392.707
394.379
389.446
379.162
361.836
338.112
308.721
274.537
236.292
195.333
151.671
106.469
60.1477
13.2426
-32.9501
-77.2717
-116.208
-141.62
-136.353
-105.712
-72.1422
-43.9289
-25.5346
-13.7996
-6.43132
-2.30825
-0.498713
-0.0310371
-0.0457232
-0.0580155
-0.0494167
-0.0280505
-0.0154555
-0.0333477
-0.100839
-0.260205
-0.458802
-0.626541
-0.736253
-0.818314
-0.898267
-1.01206
-1.22685
-1.52856
-1.903
-2.34061
-2.83301
-3.38791
-3.98127
-4.59292
-5.26665
-6.14896
-7.14281
-8.38402
-10.4251
-13.4248
-17.8453
-24.9202
-34.9652
-48.3396
-63.3216
-79.4487
-96.7926
-115.847
-132.968
-142.012
-140.742
-132.116
-114.082
-86.7285
-54.8444
-21.31
14.7589
52.4251
91.5015
131.538
170.356
207.961
244.004
278.307
310.378
338.349
360.705
376.502
384.924
386.534
380.893
367.396
346.755
320.184
289.247
254.923
218.865
181.779
144.009
105.48
68.2057
28.9073
-7.47206
-44.5226
-78.1534
-108.272
-131.425
-143.968
-141.641
-124.454
-104.341
-83.2783
-63.1935
-46.4218
-34.9622
-27.2873
-21.1917
-16.0314
-11.726
-8.49961
-6.06128
-4.23428
-3.03862
-2.39839
-1.9472
-1.53728
-1.17141
-0.853149
-0.581407
-0.347056
-0.174089
-0.130637
-0.143689
-0.162802
-0.192557
-0.225469
-0.265869
-0.32446
-0.408309
-0.566865
-0.817787
-1.2276
-2.11454
-3.99742
-8.27321
-17.9085
-40.0305
-73.8737
-109.712
-137.513
-140.814
-127.63
-98.1641
-60.0321
-20.4875
20.4474
62.0519
105.338
150.342
195.694
241.416
287.904
334.021
379.38
422.494
462.593
498.945
530.353
556.264
576.413
590.671
598.811
600.716
596.09
585.321
568.622
546.441
519.324
487.761
452.313
413.921
373.06
330.395
286.426
242.074
198.467
156.004
115.137
76.0311
39.7277
6.22985
-23.8482
-51.075
-75.0156
-97.4814
-116.651
-133.723
-149
-162.713
-174.653
-182.411
-174.618
-158.427
-141.921
-125.099
-108.646
-92.6717
-77.3553
-62.8895
-49.4457
-37.2206
-26.8766
-18.658
-12.7521
-9.39003
-8.93486
-11.5902
-16.917
-24.8534
-35.3241
-21.6336
-3.3193
-0.413116
0.484145
1.18019
1.01532
0.852035
0.692057
0.557127
0.445011
0.354941
0.289666
0.234537
0.186803
0.147246
0.115394
0.0889594
0.0625156
0.0288399
-0.0135516
-0.0451461
-0.0697159
-0.0920504
-0.11238
-0.13043
-0.146189
-0.159543
-0.16891
-0.176185
-0.185326
-0.195211
-0.208013
-0.224333
-0.235012
-0.264507
-0.380177
-0.941565
-3.10048
-12.3717
-33.4145
-55.4356
-67.5921
-52.7273
-25.0566
14.8275
58.8479
104.215
150.486
195.082
238.697
280.625
320.902
358.201
391.695
421.35
446.761
467.27
482.526
492.1
495.8
494.346
487.158
473.829
454.189
428.82
398.228
362.706
323.444
281.423
237.791
193.773
150.151
107.558
66.1081
25.8854
-12.0228
-44.2112
-60.4724
-51.9905
-34.2824
-16.6284
-6.25718
-1.07358
0.0694785
0.0647215
0.0535085
0.0519676
0.0680789
0.0640503
0.0557107
0.0502504
0.0476741
0.0464754
0.0459851
0.0462281
0.0463249
0.0462715
0.0457182
0.0442771
0.0423186
0.0400854
0.038758
0.0375529
0.0365738
0.0358597
0.0349161
0.0338242
0.0319754
0.0288824
0.0252433
0.0196565
0.0101282
-0.00797298
-0.0422227
-0.111929
-0.260042
-0.594164
-1.36024
-3.11231
-7.18605
-16.2423
-31.1508
-47.2036
-59.8888
-59.0419
-45.1929
-22.2954
10.2733
45.352
80.5122
115.575
151.438
186.304
219.595
252.975
283.878
312.8
337.992
359.695
377.395
390.189
398.297
400.164
395.075
384.926
367.231
343.035
312.987
278.025
238.91
197.216
152.647
106.721
59.7069
12.5388
-30.7925
-57.7546
-52.3157
-34.3138
-17.2807
-7.25353
-1.97126
-0.0809183
0.00314248
0.045327
0.0687651
0.0742564
0.0737229
0.0747551
0.0693381
0.0624968
0.0587693
0.0575689
0.0541352
0.0461455
0.0370271
0.0277385
0.0115678
-0.00460982
-0.00828321
-0.0065852
-0.00366939
-0.00227792
-0.0030776
-0.00767333
-0.0168692
-0.0263649
-0.0354363
-0.0436346
-0.0504528
-0.0545671
-0.0578547
-0.0655202
-0.0628867
-0.0503018
-0.0549545
-0.0934373
-0.160074
-0.261036
-0.416886
-0.662286
-1.06124
-1.70695
-2.87811
-5.19729
-9.80949
-19.0887
-33.0839
-47.8349
-59.9558
-59.5796
-45.2158
-21.1275
13.3205
51.3125
90.6591
131.481
171.084
209.471
246.208
281.175
314.174
343.005
366.105
382.462
390.926
392.658
386.93
372.998
351.622
324.164
292.505
257.248
220.247
182.56
143.949
104.912
67.7194
27.4414
-6.89889
-39.806
-58.0379
-56.0827
-44.9222
-31.9374
-19.3864
-12.272
-6.82317
-3.25289
-1.12657
-0.185966
-0.08471
-0.105914
-0.108417
-0.0852815
-0.0464412
-0.0123334
0.00566096
-0.00781652
-0.0382113
-0.0766447
-0.075309
-0.0617065
-0.0407177
-0.0171698
0.00567583
0.0263899
0.0424003
0.0482209
0.0487071
0.0486403
0.0479813
0.0462385
0.0413961
0.0341937
0.0273094
0.0204148
0.0147884
0.0104005
0.00260919
-0.0136272
-0.0724085
-0.273224
-0.663542
-1.69509
-4.49755
-13.2751
-32.2165
-52.5681
-61.6621
-47.6935
-19.8413
19.9636
61.4257
104.734
150.066
195.784
241.796
288.864
335.639
381.85
425.77
466.663
503.801
535.818
562.216
582.741
597.272
605.53
607.458
602.658
591.585
574.457
551.745
523.979
491.718
455.462
416.309
374.688
331.238
286.437
241.293
197.008
153.972
112.635
73.1414
36.6052
2.91066
-27.0201
-53.3365
-73.0099
-77.1488
-66.0454
-53.9114
-42.2012
-30.7072
-18.9885
-9.00991
-4.60173
-2.98198
-1.95257
-1.29717
-0.769915
-0.348378
-0.0238611
0.213385
0.336223
0.299504
0.259107
0.211653
0.155668
0.0910708
0.0112788
-0.0776079
-0.170513
-0.261501
-0.335204
1.97396
1.83262
1.62418
1.3661
1.16694
0.978428
0.815412
0.663393
0.534805
0.427872
0.342111
0.278637
0.225371
0.179622
0.14179
0.110264
0.0847727
0.0583817
0.0261743
-0.012285
-0.0424258
-0.0662923
-0.0877547
-0.107174
-0.124382
-0.139371
-0.152023
-0.161182
-0.16859
-0.177784
-0.186711
-0.198622
-0.207916
-0.206945
-0.206491
-0.206585
-0.211653
-0.22599
-0.231289
-0.226885
-0.238066
-0.123182
0.462754
5.18042
24.0443
59.164
103.435
150.545
195.764
240.123
282.746
323.862
361.916
395.976
426.205
452.188
473.176
488.842
498.722
502.621
500.999
493.769
480.253
460.158
434.231
402.954
366.554
326.422
283.521
239.095
194.412
150.235
107.461
67.1982
32.9238
13.1924
3.75474
0.323678
0.118607
0.060585
0.107168
0.0821432
0.0621498
0.0914634
0.0827835
0.0681068
0.0601235
0.0681999
0.0636368
0.0557386
0.0503446
0.0474247
0.0459466
0.045358
0.0453327
0.0452684
0.0451465
0.0446123
0.0433998
0.0420503
0.0399781
0.0388021
0.0378494
0.0372441
0.0370211
0.0367405
0.0367336
0.0366423
0.0365303
0.0371742
0.0385596
0.0408101
0.0429558
0.0449874
0.0462782
0.0466469
0.0473389
0.0502616
0.0547234
0.0544889
0.0527354
0.065237
0.119818
0.29453
0.792525
2.30666
7.47495
23.6166
49.5736
80.7916
115.757
152.138
187.394
220.927
255.181
286.478
316.031
341.787
364.035
382.117
395.322
403.896
405.943
400.465
390.62
372.518
347.836
317.069
281.251
241.151
198.676
153.195
106.851
60.9693
24.3226
7.66076
1.14129
0.300659
0.188455
0.14493
0.130643
0.128138
0.116664
0.100283
0.107172
0.0991652
0.0876874
0.0792066
0.0763015
0.070958
0.0646998
0.0607845
0.0585883
0.05349
0.0445557
0.0358502
0.0288564
0.0223571
0.0165018
0.0150244
0.016052
0.0169219
0.0171489
0.016041
0.014422
0.0118637
0.00962708
0.0079941
0.00739538
0.00806011
0.010747
0.015351
0.0203917
0.0277787
0.0351212
0.0393526
0.0402966
0.039061
0.0369477
0.0368257
0.0386178
0.0446547
0.0527832
0.0575018
0.0594899
0.0588759
0.0583041
0.0783594
0.127131
0.238879
0.587844
2.00674
7.65041
25.4514
54.1574
90.1304
131.39
171.709
210.921
248.408
284.098
317.924
347.49
371.312
388.267
396.531
398.5
392.671
378.297
356.151
327.792
295.526
259.187
221.154
182.87
143.469
104.287
68.7554
33.6612
15.662
5.18182
1.03608
0.359064
0.265346
0.150071
0.115771
0.110147
0.104612
0.108423
0.0913261
0.0518277
0.00566721
-0.00436609
0.0120212
0.0323569
0.0440937
0.0474491
0.040903
0.0304894
0.0185474
0.0054277
-0.00076463
-0.00263776
0.00024162
0.00751212
0.0185642
0.0320307
0.0431744
0.0474313
0.0478104
0.0480069
0.0480355
0.0470849
0.0430827
0.0370069
0.031719
0.0282198
0.0278406
0.0302393
0.0350447
0.0351613
0.0368101
0.0475996
0.0592238
0.0605886
0.0655055
0.078748
0.12458
0.227635
0.577848
2.11989
8.71015
30.3951
62.7055
104.007
149.731
195.786
242.084
289.799
337.227
384.344
429.107
470.82
508.798
541.447
568.351
589.268
604.08
612.456
614.416
609.435
598.044
580.476
557.217
528.765
495.789
458.681
418.75
376.369
332.099
286.417
240.434
195.491
152.07
110.344
70.5961
35.4955
11.328
4.78613
1.70198
0.720446
0.656304
0.589818
0.543855
0.506541
0.500826
0.496073
0.459309
0.441455
0.434749
0.415588
0.40076
0.387997
0.374961
0.360347
0.343633
0.322523
0.28662
0.246952
0.201063
0.147546
0.0859185
0.0110715
-0.0719105
-0.158179
-0.241252
-0.305356
1.83308
1.72077
1.53044
1.29804
1.10951
0.932278
0.777015
0.633878
0.51207
0.410545
0.328874
0.267293
0.215996
0.172254
0.136035
0.10528
0.0806731
0.0547067
0.0240057
-0.0110001
-0.0395636
-0.0625484
-0.0830664
-0.10155
-0.117912
-0.132167
-0.14417
-0.153108
-0.160401
-0.169037
-0.177975
-0.188191
-0.19797
-0.197383
-0.198214
-0.198583
-0.203445
-0.214943
-0.215616
-0.211519
-0.220863
-0.137741
0.424566
4.10975
25.6351
59.39
103.318
150.861
196.465
241.324
284.606
326.808
365.715
400.365
431.185
457.776
479.253
495.349
505.547
509.562
507.802
500.561
486.87
466.288
439.791
407.821
370.474
329.453
285.644
240.387
194.969
149.972
106.674
66.1322
32.05
12.756
3.64926
0.322229
0.119047
0.0745276
0.0986563
0.079172
0.0633893
0.083963
0.0777702
0.0656166
0.0589138
0.0640788
0.0602127
0.0533428
0.0483708
0.0455658
0.0440354
0.0434158
0.0433134
0.0431816
0.0430315
0.042491
0.0414374
0.0401109
0.0382976
0.0371615
0.0362038
0.0356454
0.0354121
0.0351504
0.0351375
0.0351361
0.0352257
0.0358743
0.0372538
0.0394527
0.0414282
0.0432977
0.0448354
0.045421
0.0460991
0.0488105
0.0521601
0.0521745
0.0520111
0.0642843
0.115512
0.286034
0.754952
2.26647
7.32027
23.4719
49.3858
80.3869
115.647
152.858
188.451
222.189
257.369
289.112
319.398
345.677
368.367
386.949
400.613
409.579
411.804
406.19
396.466
377.935
352.677
321.079
284.291
243.144
199.928
153.516
106.379
60.0114
23.6087
7.32326
1.11791
0.318649
0.20559
0.146438
0.129373
0.124743
0.112562
0.0989301
0.102214
0.0951263
0.0847748
0.0767166
0.0730983
0.0680217
0.0623583
0.0587524
0.0569735
0.0520668
0.0432011
0.0345508
0.02795
0.0217294
0.0160934
0.0145062
0.0156167
0.0166406
0.0169705
0.0160909
0.0146542
0.0122795
0.0100274
0.0083651
0.0078136
0.0083392
0.0109851
0.0153323
0.0204102
0.0276728
0.0348927
0.0387386
0.039262
0.0377162
0.0357828
0.0359918
0.0382214
0.0442021
0.0517008
0.0560371
0.0581589
0.0577513
0.0595976
0.076103
0.117568
0.215522
0.537907
1.87472
7.16911
24.4833
53.0146
89.162
131.122
172.237
212.205
250.466
286.939
321.693
351.975
376.476
393.957
402.12
404.197
398.211
383.4
360.398
331.068
298.203
260.713
221.794
183.056
142.991
103.481
68.7549
33.4464
15.2872
5.35828
1.03423
0.374248
0.268891
0.158709
0.119887
0.106202
0.107854
0.105309
0.0902597
0.0500931
0.00560484
-0.00678986
0.0105871
0.0315874
0.043559
0.0471289
0.0399943
0.0300748
0.018083
0.00547846
-0.000484428
-0.00185576
8.39602e-05
0.00726533
0.0182196
0.0312156
0.0418579
0.0460566
0.0463528
0.046328
0.0462492
0.0455926
0.0418314
0.0357441
0.030369
0.0269709
0.0265943
0.0288937
0.0328922
0.0321508
0.0321352
0.04422
0.0563475
0.0582708
0.0629613
0.0756234
0.117898
0.211629
0.552881
2.00487
8.21623
30.0473
62.4045
103.518
149.344
195.263
242.145
290.561
338.73
386.883
432.525
475.063
513.931
547.231
574.664
595.997
611.089
619.581
621.572
616.426
604.692
586.68
562.856
533.682
499.989
461.975
421.249
378.094
332.934
286.449
239.793
194.198
150.048
106.572
67.0214
34.4623
12.4719
5.71323
1.86142
0.726327
0.634791
0.568784
0.525048
0.491489
0.480703
0.467631
0.436951
0.421337
0.412563
0.395661
0.381407
0.368985
0.35635
0.342236
0.326101
0.305253
0.271819
0.234117
0.190402
0.139497
0.0808057
0.0105729
-0.0668964
-0.146888
-0.222554
-0.278396
1.71504
1.61193
1.44045
1.23039
1.05235
0.885732
0.738557
0.603918
0.488795
0.392626
0.315042
0.255645
0.206421
0.164683
0.130035
0.100292
0.076465
0.051186
0.0220398
-0.00998447
-0.0369538
-0.0589876
-0.0785571
-0.0961192
-0.111647
-0.125167
-0.136552
-0.145233
-0.152456
-0.160738
-0.16888
-0.178539
-0.186706
-0.186909
-0.187938
-0.189037
-0.194023
-0.20439
-0.206743
-0.209714
-0.221432
-0.213795
-0.209124
-0.127463
0.603914
5.02563
36.6584
110.503
183.724
240.135
286.557
329.63
369.357
404.696
436.192
463.501
485.496
502.044
512.581
516.63
514.766
507.553
493.677
472.561
445.497
412.795
374.41
332.441
287.211
238.066
177.225
103.842
43.8493
14.8209
2.1728
0.289233
0.14378
0.119256
0.0847324
0.0640727
0.0864937
0.0740967
0.063002
0.0775853
0.0729185
0.0627893
0.0570877
0.0602197
0.0568813
0.0508325
0.0462519
0.0435698
0.0420047
0.0413487
0.0411766
0.0409981
0.0408244
0.0402642
0.0393325
0.0380599
0.0364717
0.0353816
0.034461
0.03395
0.0336878
0.0334569
0.033453
0.0335101
0.0337017
0.0343492
0.0356816
0.0377282
0.0395306
0.0412649
0.0428623
0.0435907
0.0442207
0.0464784
0.0490065
0.0476354
0.0423423
0.0375778
0.0389203
0.0566828
0.0931048
0.172667
0.397679
1.27955
4.89144
18.9137
57.8571
113.568
169.11
215.412
257.704
291.769
322.489
349.619
372.565
391.777
405.966
415.293
417.858
412.779
402.658
383.599
357.669
325.162
287.1
242.349
185.975
110.974
45.5815
13.6481
1.84165
0.566637
0.281623
0.134709
0.112466
0.116696
0.114776
0.114587
0.106508
0.0955681
0.0968626
0.0907972
0.0815413
0.0739597
0.0698446
0.0649618
0.0597805
0.0565644
0.0546738
0.0496945
0.0415582
0.0332611
0.0268744
0.0208033
0.0152929
0.0136765
0.014897
0.0164831
0.0169815
0.0161666
0.014505
0.0124085
0.0101339
0.0084866
0.0079001
0.00842779
0.0108921
0.0150084
0.0202161
0.0274115
0.0344794
0.0377227
0.0381034
0.03635
0.0344556
0.0347636
0.0370446
0.042679
0.04908
0.0522866
0.0529611
0.050021
0.0465303
0.0489671
0.0542388
0.056184
0.063825
0.121289
0.350749
1.28066
5.65901
26.0883
79.2775
143.515
201.958
249.511
289.234
325.097
356.189
381.5
399.583
408.067
409.966
403.831
388.623
364.667
334.389
300.859
261.157
215.328
158.527
94.2671
42.477
17.615
4.21938
0.786936
0.76628
0.296295
0.143278
0.111164
0.09683
0.0942225
0.0954371
0.0988671
0.0990423
0.0870243
0.0471155
0.00456193
-0.00883251
0.00859106
0.0304416
0.0428364
0.0468309
0.0396248
0.0298874
0.0177136
0.00534981
-0.00100584
-0.00273391
-0.00077355
0.00611946
0.0169816
0.030177
0.0408497
0.0443415
0.0445226
0.0443964
0.0442403
0.0437147
0.0403592
0.0345264
0.0290436
0.0256768
0.0252799
0.0277014
0.0309814
0.0285713
0.0281225
0.0371362
0.0456389
0.0480875
0.0493153
0.0513887
0.0576611
0.06669
0.0930328
0.183337
0.499266
1.97941
8.49613
40.354
106.459
178.04
238.38
290.656
339.94
389.326
435.929
479.381
519.216
553.182
581.169
602.928
618.296
626.902
628.889
623.637
611.52
593.074
568.682
538.732
504.325
465.303
423.755
380.069
334.034
286.662
237.702
174.621
99.3634
35.7561
11.893
2.00413
0.865813
0.721104
0.635083
0.618688
0.573824
0.52747
0.49248
0.464164
0.455839
0.442377
0.416886
0.400924
0.391241
0.376022
0.362385
0.350331
0.338069
0.324369
0.308665
0.28822
0.257088
0.221371
0.179869
0.131602
0.0759441
0.0101705
-0.0620054
-0.136014
-0.204858
-0.253749
1.60197
1.50907
1.35283
1.16254
0.99518
0.838984
0.699959
0.573542
0.465037
0.374199
0.300686
0.243703
0.196645
0.156923
0.123853
0.0953009
0.0722473
0.0478516
0.0203189
-0.00908609
-0.0344479
-0.0554572
-0.0740539
-0.0906931
-0.105392
-0.118186
-0.128976
-0.137361
-0.144418
-0.152298
-0.16006
-0.168894
-0.176252
-0.177151
-0.1783
-0.179305
-0.184006
-0.192722
-0.196229
-0.198521
-0.210197
-0.206913
-0.219052
-0.207866
-0.193445
-0.14044
0.449994
7.4448
50.9508
154.9
258.629
325.335
373.178
409.155
441.204
469.268
491.828
508.863
519.813
523.9
521.898
514.766
500.616
478.868
451.234
417.599
377.177
328.074
249.603
141.532
53.8367
14.3634
1.06918
0.366806
0.183979
0.111998
0.0822153
0.0931475
0.0758813
0.0625131
0.0789699
0.0699641
0.0619514
0.0720091
0.0682778
0.0598079
0.0548977
0.0564998
0.053516
0.0482165
0.04403
0.0414624
0.0399134
0.0392365
0.0389984
0.0387867
0.0385904
0.0380318
0.0371558
0.0359785
0.0345743
0.0335379
0.0326647
0.0321877
0.0318953
0.0316903
0.0316817
0.0317579
0.0320065
0.0326183
0.0338924
0.0357483
0.037382
0.0390175
0.040563
0.0413412
0.042095
0.0442793
0.0466522
0.0453065
0.0400063
0.0339135
0.0312121
0.0331132
0.0391324
0.0440429
0.0513227
0.0858189
0.215471
0.654195
2.50499
11.4124
43.4895
109.425
191.688
261.089
311.684
350.076
376.566
395.958
411.119
420.672
423.504
417.934
408.318
388.384
360.125
318.918
250.49
152.938
66.2226
20.6673
3.07023
0.908134
0.400385
0.147189
0.10712
0.0891611
0.093285
0.106323
0.108112
0.108034
0.101301
0.092264
0.0919491
0.0862393
0.0778503
0.0707505
0.0663743
0.0616729
0.0568468
0.0538005
0.051823
0.0471073
0.0392988
0.0315014
0.0255431
0.0197641
0.0146451
0.0131091
0.0142357
0.0158802
0.0163868
0.0156518
0.0140589
0.0121917
0.0100083
0.00845866
0.00783511
0.00839648
0.0106991
0.0145399
0.0195983
0.0264307
0.0330483
0.0359705
0.036284
0.0348332
0.0332338
0.0336062
0.0358042
0.0413355
0.0470982
0.0500527
0.0505145
0.0475755
0.0444461
0.0454838
0.0472435
0.0430507
0.0340315
0.0330494
0.0504375
0.105761
0.284054
0.98872
4.69759
24.089
87.8184
175.48
255.783
315.304
356.951
385.191
404.127
412.77
414.97
408.783
392.96
367.054
330.168
277.761
191.41
101.913
43.8542
14.2309
2.79786
1.31807
0.899953
0.288618
0.20691
0.1325
0.0882416
0.0820286
0.0835719
0.0878007
0.0918959
0.0951283
0.0947226
0.0824526
0.0440351
0.00277889
-0.0102046
0.00646511
0.0290125
0.0424595
0.046238
0.0387896
0.029184
0.0172717
0.00507791
-0.00127538
-0.00292363
-0.00117665
0.00521507
0.0158831
0.0286289
0.0385102
0.0421372
0.0424852
0.042294
0.0420597
0.0414367
0.0382972
0.0329899
0.0278808
0.0245675
0.0240312
0.0263921
0.0292769
0.0255716
0.0249687
0.0339432
0.042368
0.0436343
0.0453566
0.0469855
0.0496574
0.0506557
0.050946
0.0526155
0.0705459
0.150628
0.343733
1.41186
8.77638
48.3974
148.556
258.237
335.037
391.125
438.976
483.526
524.561
559.26
587.859
610.074
625.699
634.419
636.309
631.085
618.52
599.663
574.694
543.865
508.778
468.73
426.509
381.989
330.037
247.836
130.546
39.0148
9.44558
1.3286
0.909481
0.732074
0.664588
0.615284
0.579055
0.574869
0.540112
0.499706
0.467684
0.441371
0.431834
0.41769
0.395473
0.380409
0.370095
0.356163
0.343267
0.331639
0.319799
0.306583
0.291378
0.27152
0.242493
0.208754
0.169475
0.123845
0.0712653
0.00979956
-0.0572935
-0.125603
-0.188159
-0.231141
1.49291
1.40916
1.26706
1.0945
0.938017
0.791995
0.661207
0.542788
0.440832
0.355298
0.285857
0.231475
0.18667
0.148982
0.117514
0.0902673
0.0680292
0.0446579
0.0187525
-0.00830162
-0.032067
-0.0520009
-0.0696095
-0.0853262
-0.0991994
-0.111271
-0.121472
-0.129526
-0.136382
-0.143848
-0.151119
-0.159208
-0.16587
-0.167447
-0.168531
-0.169897
-0.174226
-0.181881
-0.185467
-0.188311
-0.196814
-0.19559
-0.205776
-0.201382
-0.206461
-0.221723
-0.222738
-0.0351967
0.660766
7.69098
62.0968
188.059
315.033
392.6
442.885
475.311
498.353
515.813
527.207
530.371
529.035
521.972
507.237
484.245
453.638
406.906
313.33
179.647
67.3448
16.111
1.03127
0.401398
0.21139
0.124847
0.100359
0.0823865
0.0722159
0.0836384
0.0713594
0.0614323
0.0727384
0.0659227
0.0600812
0.0668553
0.0637678
0.0566844
0.0524048
0.0529338
0.0502022
0.0455506
0.0417393
0.0392965
0.0377865
0.037099
0.0368063
0.0365717
0.0363548
0.0357911
0.0349668
0.0338852
0.0326315
0.0316635
0.0308329
0.030395
0.0300726
0.0299015
0.0298852
0.0299628
0.0302404
0.0308152
0.0320289
0.0336906
0.0351844
0.0367017
0.0381365
0.0389283
0.0397283
0.0416181
0.0434434
0.0420591
0.0372688
0.0319958
0.0288786
0.0298457
0.0338245
0.0350079
0.031857
0.0280517
0.0288696
0.0380037
0.0957393
0.356182
1.29175
5.1626
23.6092
77.701
162.53
249.955
315.68
357.156
388.694
407.149
414.198
412.209
393.027
346.534
268.755
166.458
76.5193
25.4322
4.35508
1.34514
0.566739
0.160148
0.0918069
0.071093
0.0781704
0.0796311
0.0878949
0.100041
0.102421
0.101945
0.0959302
0.0881997
0.0867301
0.0813869
0.0738079
0.0672248
0.0627809
0.0582927
0.0538382
0.0509255
0.0488575
0.0443694
0.0373642
0.0302365
0.0244002
0.0188279
0.0141666
0.012663
0.0136113
0.0150696
0.0156319
0.0149216
0.0134671
0.011693
0.00967875
0.00822984
0.00764812
0.00818471
0.0103505
0.0139629
0.018772
0.025127
0.0312043
0.0340051
0.0341762
0.0329628
0.0315482
0.0318596
0.0341925
0.0393056
0.0446467
0.0474595
0.0479062
0.0451304
0.0426522
0.0431456
0.0443034
0.0398225
0.0302641
0.0254859
0.0286277
0.0378955
0.0530114
0.0784057
0.194931
0.726328
3.36642
17.0098
72.3157
172.601
268.32
339.957
381.456
398.796
400.557
388.905
353.285
283.586
187.194
99.3759
41.195
11.1992
2.82563
1.85735
0.787557
0.307956
0.21521
0.128547
0.111456
0.1007
0.0796383
0.0763074
0.0793611
0.0840607
0.0882839
0.0910991
0.0902386
0.0775563
0.0411796
0.0011976
-0.0115167
0.00434506
0.0269692
0.041578
0.0448302
0.0374631
0.0280859
0.0167335
0.00497621
-0.00153825
-0.00326078
-0.00138958
0.00458591
0.0146507
0.0267508
0.0360669
0.0397822
0.0403105
0.0401169
0.0398322
0.0391397
0.0362089
0.0313153
0.026608
0.0235293
0.0229709
0.0250649
0.0274948
0.0238844
0.0228823
0.0318768
0.0404
0.041029
0.042772
0.0443282
0.0474601
0.0480132
0.0467603
0.0428531
0.0400939
0.0397115
0.0391263
0.0681371
0.296557
1.26641
8.81079
64.8401
207.689
351.585
436.204
487.322
529.72
565.219
594.545
617.378
633.276
642.129
643.749
638.764
625.656
606.404
580.94
549.168
513.41
471.371
421.132
322.377
164.784
50.6999
9.48341
1.43281
0.925157
0.757656
0.669282
0.624031
0.60584
0.574381
0.546067
0.539326
0.508957
0.472451
0.442631
0.418278
0.407865
0.393596
0.374002
0.359697
0.349116
0.33628
0.324132
0.312969
0.301584
0.288893
0.274211
0.255082
0.228017
0.196251
0.159208
0.116218
0.0667411
0.00944748
-0.0527624
-0.115654
-0.172416
-0.210329
1.38737
1.31191
1.18294
1.02645
0.880878
0.744811
0.622293
0.511691
0.416217
0.33596
0.270598
0.218974
0.176502
0.14087
0.11104
0.0851819
0.0638283
0.0415864
0.0173138
-0.00759539
-0.0297833
-0.0486015
-0.0652066
-0.0799995
-0.093049
-0.104402
-0.114014
-0.121715
-0.128322
-0.135379
-0.142216
-0.149582
-0.155674
-0.157533
-0.15885
-0.160614
-0.164379
-0.171052
-0.174475
-0.177798
-0.184732
-0.183474
-0.192996
-0.190615
-0.195932
-0.212136
-0.224258
-0.224787
-0.219928
-0.0971218
0.966684
7.63685
52.0935
174.088
305.79
412.747
470.916
506.516
527.422
533.286
530.596
519.455
491.689
430.41
324.878
188.383
74.9799
18.5855
1.147
0.527014
0.222663
0.100782
0.0998625
0.0839295
0.0831839
0.0746616
0.0686338
0.076815
0.0672331
0.0595722
0.0671208
0.0618948
0.0575728
0.0620466
0.0594092
0.0534685
0.0496965
0.0494879
0.0469602
0.0428559
0.0393942
0.037088
0.0356307
0.0349401
0.0346074
0.0343578
0.034122
0.0335628
0.032781
0.0317784
0.0306681
0.0297637
0.0289918
0.0285837
0.0282484
0.0281061
0.0280657
0.0281458
0.0284443
0.0289848
0.0301228
0.0316081
0.0329805
0.0343888
0.0357064
0.036498
0.0373385
0.0389537
0.0403418
0.0390727
0.0346738
0.0298996
0.0267642
0.0280253
0.0319668
0.0326467
0.0292764
0.0245338
0.0197035
0.0112861
0.00204323
0.00189806
0.0203211
0.147522
0.684203
2.62358
8.75726
30.5678
72.7738
123.356
184.321
218.85
223.125
217.762
171.042
110.429
59.5933
22.4723
4.84209
1.77067
0.693202
0.167141
0.0570177
0.0314299
0.04689
0.0578286
0.0704504
0.075318
0.0836665
0.0939232
0.09639
0.0956704
0.0903367
0.0836562
0.0814476
0.0764478
0.0696074
0.0635291
0.0591398
0.0548909
0.050772
0.0479925
0.0458562
0.0415936
0.0351539
0.0285952
0.0230591
0.0178876
0.0136762
0.0122105
0.012981
0.014224
0.0147382
0.0141423
0.0127866
0.0111497
0.00927849
0.00791276
0.00739654
0.00790995
0.0099632
0.0133089
0.0178557
0.0237508
0.0293453
0.0319798
0.0320648
0.0310327
0.0298248
0.0301278
0.0324001
0.0369214
0.0416789
0.0440527
0.0445814
0.0422048
0.0405945
0.0405317
0.0413161
0.0370852
0.0278216
0.0227655
0.0248143
0.0311042
0.037015
0.0318595
0.0238304
0.026106
0.0861619
0.43325
2.15223
10.1075
35.3629
87.3209
149.595
181.476
185.535
164.268
116.271
67.8216
29.0202
8.10914
3.93539
1.99798
0.729195
0.316737
0.156886
0.0966647
0.0978782
0.0983352
0.096697
0.0931605
0.0772383
0.0730652
0.0755207
0.0798011
0.083929
0.086629
0.0851508
0.0725511
0.0388005
0.000123099
-0.0121161
0.00273887
0.0246557
0.0393146
0.0423931
0.0359461
0.0269298
0.0160764
0.0049485
-0.00139481
-0.0032166
-0.00142343
0.00423389
0.0137369
0.0249579
0.0336153
0.0373251
0.0380903
0.0378903
0.0375255
0.0367525
0.034045
0.0296021
0.02531
0.0225124
0.0219491
0.0237467
0.0256977
0.0224573
0.0211664
0.0300734
0.0382225
0.0394364
0.040398
0.0417942
0.0451665
0.0462818
0.0443854
0.0412985
0.0372766
0.0328077
0.0242081
0.0132886
0.00596435
0.0106678
0.187906
1.51624
12.3403
100.628
283.959
439.364
525.349
571.282
601.291
624.742
640.969
650.001
651.244
646.628
632.895
613.23
586.866
552.064
501.117
374.473
200.032
62.8676
10.8267
1.73625
1.0041
0.716914
0.628308
0.633153
0.603443
0.580316
0.566143
0.539582
0.515072
0.505348
0.47822
0.445139
0.417407
0.394807
0.383843
0.36981
0.352348
0.338796
0.328223
0.316362
0.304925
0.294271
0.283382
0.271254
0.257164
0.238872
0.213662
0.183859
0.149059
0.10871
0.0623445
0.00909877
-0.0484161
-0.106158
-0.157581
-0.191103
1.28501
1.21709
1.10031
0.958529
0.823774
0.697467
0.583217
0.480279
0.391224
0.316221
0.254951
0.206213
0.166147
0.132599
0.104449
0.0800391
0.0596491
0.0386197
0.0159704
-0.00695146
-0.0275863
-0.0452593
-0.0608485
-0.0747159
-0.086943
-0.0975803
-0.106607
-0.113923
-0.120246
-0.126881
-0.133272
-0.139984
-0.145553
-0.147458
-0.149068
-0.151155
-0.154494
-0.160393
-0.163494
-0.166906
-0.173092
-0.172137
-0.18103
-0.179658
-0.184971
-0.200009
-0.210972
-0.215257
-0.221581
-0.207081
-0.198585
-0.132134
0.486897
3.78362
20.2689
78.8283
177.069
260.58
314.615
331.798
319.983
278.906
205.321
116.227
55.578
14.1892
1.34524
0.735285
0.243334
0.0676951
0.0629354
0.0527505
0.0768571
0.0739575
0.0759645
0.0697463
0.0652673
0.0706793
0.0630668
0.0570569
0.0619574
0.0579032
0.0546381
0.0574933
0.0551888
0.050185
0.0468259
0.0461256
0.0437756
0.0401416
0.0370067
0.0348441
0.0334489
0.0327635
0.0324045
0.032145
0.0318945
0.0313863
0.0306344
0.0297046
0.0287182
0.0278689
0.027166
0.0267612
0.02645
0.0263166
0.0262615
0.0263637
0.0266582
0.0271794
0.0282273
0.0295598
0.0308212
0.0321126
0.0333305
0.03409
0.0349159
0.0362736
0.0373541
0.0361035
0.0322175
0.0278822
0.0249659
0.0255959
0.0291971
0.0299138
0.0272225
0.0231823
0.0180834
0.00904293
-0.00218533
-0.0120976
-0.0289216
-0.0355584
-0.0278168
0.0397106
0.222871
0.99296
2.93817
5.10292
13.071
19.4516
20.7879
20.9192
13.3778
4.97189
2.46845
1.65386
0.681403
0.148083
0.000895438
-0.0266483
-0.0057565
0.0134292
0.0383532
0.0529189
0.0651097
0.0709665
0.0789248
0.0876878
0.0901341
0.0893198
0.0846325
0.0788037
0.0761715
0.0714986
0.0653188
0.059722
0.0554684
0.0514684
0.0476624
0.0450279
0.04283
0.038808
0.0329261
0.0268882
0.021693
0.0168143
0.0131171
0.0117058
0.012308
0.0133277
0.0138027
0.0132755
0.0120522
0.0105392
0.0088346
0.00758351
0.00712037
0.00762338
0.00955339
0.0126618
0.0169325
0.0223234
0.0273961
0.0298111
0.0299255
0.0290167
0.0279651
0.0283706
0.0303863
0.0344781
0.0385769
0.0407212
0.0411192
0.0391021
0.0376438
0.0372254
0.0376507
0.0340911
0.0255761
0.0203602
0.0219301
0.0281675
0.0331873
0.0273903
0.0148555
-0.00301514
-0.0252849
-0.0359569
0.0251535
0.408721
1.29521
2.65852
5.17968
8.38928
10.7609
8.59963
5.05922
4.0139
3.06559
1.42342
0.647003
0.235007
0.0581834
0.0284035
0.0434207
0.0620563
0.0793346
0.0907558
0.091252
0.0877942
0.0743734
0.0696628
0.0714902
0.0752585
0.0791863
0.0818395
0.0797573
0.0674156
0.0365785
0.000383852
-0.0114446
0.00210614
0.0223885
0.0364559
0.0396542
0.0340875
0.0255957
0.0153384
0.00491456
-0.00124772
-0.00309635
-0.00144809
0.00398739
0.0128811
0.0231742
0.0311
0.0347457
0.0355835
0.0354641
0.0350802
0.034266
0.0317769
0.0277817
0.0238913
0.0213513
0.020774
0.0222655
0.0238318
0.0209164
0.0198086
0.0279305
0.0354767
0.0369231
0.0378961
0.0394451
0.042914
0.0443873
0.0422395
0.0395389
0.0357259
0.0316914
0.022669
0.0113827
-0.00458896
-0.0279312
-0.0321218
-0.0209155
0.168394
2.21522
18.8213
124.16
324.984
489.995
575.001
622.66
646.988
656.936
658.285
652.959
635.674
606.404
536.766
380.581
200.717
64.3825
11.9703
1.72588
0.968541
0.720448
0.611472
0.573762
0.55622
0.579146
0.560391
0.543741
0.529321
0.505514
0.483745
0.472031
0.447561
0.417605
0.391929
0.371011
0.359825
0.346179
0.330481
0.317741
0.307381
0.296384
0.285666
0.275558
0.265199
0.253669
0.240227
0.222859
0.199424
0.171574
0.139021
0.101309
0.0580527
0.00874105
-0.0442556
-0.0971049
-0.143597
-0.173281
1.18549
1.12449
1.01905
0.890831
0.766724
0.649994
0.543983
0.44858
0.365887
0.296113
0.238951
0.193207
0.155614
0.12418
0.0977518
0.0748376
0.0554932
0.0357395
0.0147009
-0.00635513
-0.0254631
-0.0419691
-0.0565316
-0.0694716
-0.080877
-0.0908004
-0.0992394
-0.106151
-0.11216
-0.118371
-0.124323
-0.130436
-0.135519
-0.137425
-0.13923
-0.141289
-0.144547
-0.149729
-0.152649
-0.156029
-0.161037
-0.161163
-0.168493
-0.168563
-0.173342
-0.18876
-0.197132
-0.198747
-0.206949
-0.196312
-0.207964
-0.215589
-0.194403
-0.147616
0.0319236
0.743957
3.16646
8.81889
18.0772
27.2433
29.2386
22.6447
9.12652
1.41438
0.898272
0.610989
0.141795
0.0153346
0.0195009
0.0118782
0.038872
0.0444438
0.0675186
0.0681716
0.0700477
0.065064
0.061551
0.0649733
0.0588658
0.0540746
0.0571225
0.0539402
0.0514092
0.0531316
0.0510849
0.0468483
0.043836
0.0428247
0.0406369
0.0374115
0.0345826
0.032567
0.0312436
0.0305717
0.0301975
0.0299325
0.0296741
0.0291948
0.0284983
0.0276462
0.0267578
0.0259732
0.0253241
0.024938
0.0246403
0.0245138
0.0244626
0.0245671
0.0248443
0.0253397
0.0262926
0.0274872
0.0286398
0.0298231
0.0309246
0.0316497
0.0324159
0.0335496
0.0343517
0.0331159
0.0296922
0.0257718
0.0231119
0.0236936
0.0266293
0.0271289
0.0247054
0.0206339
0.0158558
0.00760739
-0.00240323
-0.0125318
-0.0300671
-0.0422166
-0.0547169
-0.069165
-0.0820878
-0.0963229
-0.103193
-0.0773457
-0.0330083
0.051885
0.203109
0.157817
0.304396
0.178836
0.0810664
-0.0148036
-0.0705126
-0.0882259
-0.0677537
-0.0450947
-0.0128496
0.0105944
0.0342492
0.0485779
0.0600118
0.0663397
0.0738298
0.0814076
0.0837607
0.0829585
0.0788514
0.0737447
0.0709089
0.0665473
0.0609674
0.0558223
0.0517648
0.0480171
0.0445134
0.0420168
0.0397996
0.0360341
0.0306808
0.0251592
0.020317
0.015848
0.0125023
0.0111485
0.0115938
0.0124011
0.0127861
0.0123303
0.0112405
0.00984918
0.00831407
0.00719462
0.00678795
0.00728575
0.00907059
0.0119367
0.0159124
0.0207624
0.0252667
0.0274858
0.0276814
0.0269624
0.0260608
0.0265487
0.0282589
0.0320046
0.0354061
0.0375118
0.0376308
0.0360901
0.0345825
0.0341524
0.0339289
0.0304293
0.0228852
0.0181068
0.0195362
0.0255281
0.0299363
0.0250869
0.0132519
-0.00543301
-0.0299784
-0.0550719
-0.0795608
-0.0927288
-0.0702504
-0.051239
-0.112717
-0.157791
-0.148276
-0.053805
0.116379
0.224684
0.245878
0.0734988
-0.0198273
-0.0625991
-0.0537336
-0.0149968
0.0251091
0.0543577
0.0733859
0.0849068
0.0858424
0.0821509
0.0707577
0.0660212
0.0673057
0.070617
0.0743602
0.0766046
0.0741784
0.0622514
0.0343396
0.00160243
-0.00963147
0.00215189
0.0204158
0.033639
0.0367572
0.0319572
0.0240643
0.0145221
0.00493702
-0.000994436
-0.00280936
-0.00127728
0.00384949
0.0120585
0.0213646
0.0285902
0.032116
0.0329848
0.0330078
0.0326179
0.0317763
0.0294957
0.0259066
0.0224095
0.0200856
0.0195029
0.0207167
0.0219533
0.0193403
0.0185955
0.0258959
0.0327747
0.0343364
0.0352737
0.0367808
0.0405455
0.0417489
0.0400448
0.0376694
0.0344491
0.0307498
0.0219753
0.0107863
-0.00401065
-0.0260362
-0.0375093
-0.0630976
-0.0860591
-0.0676724
0.157863
2.0309
17.6448
91.1371
246.223
386.087
481.418
526.951
527.288
482.531
385.302
265.8
130.918
50.2106
8.61055
1.35153
0.834082
0.60107
0.513762
0.521791
0.518287
0.519655
0.516161
0.535934
0.520894
0.50763
0.493024
0.471533
0.451994
0.439175
0.416984
0.389893
0.366197
0.346914
0.33572
0.322657
0.308465
0.296556
0.286562
0.276362
0.266362
0.256829
0.247033
0.236134
0.223394
0.207018
0.185298
0.15939
0.129083
0.094005
0.0538469
0.00836421
-0.0402798
-0.0884769
-0.130406
-0.156704
1.08853
1.0339
0.939045
0.823413
0.709745
0.602421
0.504601
0.416622
0.340234
0.27567
0.222632
0.179972
0.144912
0.115624
0.0909594
0.0695794
0.0513595
0.0329236
0.0134881
-0.00579632
-0.0234037
-0.0387272
-0.0522542
-0.0642647
-0.0748485
-0.0840593
-0.0919096
-0.0983957
-0.104063
-0.109845
-0.115362
-0.12092
-0.125556
-0.127484
-0.129349
-0.131422
-0.134521
-0.139085
-0.141837
-0.145158
-0.148218
-0.150078
-0.155577
-0.157248
-0.162498
-0.17713
-0.182838
-0.183078
-0.192534
-0.183957
-0.191915
-0.201026
-0.191882
-0.189645
-0.190553
-0.186917
-0.176748
-0.161778
-0.154645
-0.144879
-0.133917
-0.103578
-0.00174703
0.0102676
-0.0365245
-0.0422317
-0.0419597
-0.0338878
-0.00335802
0.00546082
0.032204
0.0414395
0.0605631
0.0627408
0.0643875
0.0603819
0.0575645
0.0595903
0.0546386
0.0507599
0.0525221
0.0499897
0.0479743
0.0489118
0.0470739
0.0434677
0.0407655
0.0395763
0.0375403
0.0346729
0.032127
0.0302609
0.029018
0.0283675
0.0279858
0.0277206
0.0274621
0.0270028
0.026371
0.025592
0.0247895
0.0240703
0.0234714
0.0231121
0.0228215
0.0227046
0.0226554
0.0227483
0.0230127
0.0234723
0.0243345
0.0253931
0.0264267
0.0274906
0.0284725
0.0291447
0.0298324
0.0307641
0.0312964
0.0301063
0.0270329
0.0235583
0.0211648
0.0215874
0.0240497
0.0242466
0.0221513
0.0184371
0.0138046
0.00595018
-0.00332843
-0.013433
-0.0289974
-0.0406747
-0.0525568
-0.0665868
-0.0805877
-0.0962564
-0.106793
-0.110127
-0.121363
-0.128812
-0.13186
-0.139669
-0.143443
-0.142147
-0.138657
-0.133702
-0.119566
-0.10214
-0.0707013
-0.0441926
-0.0138774
0.00890364
0.0305986
0.044395
0.0550771
0.0615732
0.0685235
0.0750984
0.0773525
0.0766121
0.0730197
0.06856
0.0656599
0.061599
0.0565744
0.0518615
0.0480377
0.0445474
0.0413322
0.0389794
0.0367837
0.0332781
0.0284212
0.023385
0.0188674
0.0148339
0.0118177
0.0105379
0.0108423
0.0114568
0.0117387
0.0113516
0.0103673
0.00911969
0.00774118
0.00673718
0.00638117
0.00686621
0.00850851
0.0111245
0.014797
0.0191481
0.0231107
0.025159
0.0253527
0.0247941
0.0240161
0.0244759
0.0260278
0.0293143
0.0322563
0.0341837
0.0342495
0.0329838
0.0315595
0.031132
0.0304778
0.027206
0.020804
0.0164205
0.0176332
0.0229644
0.0268321
0.0226704
0.0114292
-0.00643513
-0.0294877
-0.0538035
-0.0804475
-0.108478
-0.131272
-0.148542
-0.160043
-0.157783
-0.153243
-0.149132
-0.139904
-0.120247
-0.106504
-0.10634
-0.101032
-0.0922165
-0.0647189
-0.0214895
0.0195263
0.0494284
0.0681562
0.0788067
0.0798961
0.0762387
0.0665878
0.0620817
0.0629213
0.0658689
0.0693101
0.071111
0.0684641
0.0571333
0.0321223
0.0029706
-0.00734958
0.00262811
0.0187478
0.0307743
0.0336777
0.0293764
0.0223746
0.0136237
0.00492274
-0.00063234
-0.00235108
-0.000948244
0.00379385
0.0112814
0.0196049
0.0261474
0.0295285
0.0308764
0.0305637
0.0301588
0.0293059
0.0271994
0.0239728
0.0208426
0.0187411
0.0181883
0.0191517
0.0200928
0.017936
0.0174285
0.0238646
0.0300751
0.0317104
0.032697
0.0341003
0.0374736
0.0387192
0.0375051
0.0355878
0.0324856
0.0290959
0.0216745
0.0105972
-0.00306195
-0.0228917
-0.0358598
-0.0595912
-0.0862594
-0.116006
-0.158516
-0.174025
-0.0562458
0.550467
3.07701
10.2995
23.608
39.8538
58.2217
59.0265
39.7871
13.4456
1.72941
1.07677
0.524951
0.394407
0.384018
0.399373
0.416592
0.457511
0.473184
0.479111
0.480265
0.49484
0.482263
0.471232
0.45697
0.437538
0.419912
0.406652
0.386479
0.362031
0.340273
0.322554
0.311544
0.299196
0.286328
0.275261
0.265747
0.256304
0.247019
0.238087
0.228883
0.218646
0.206657
0.191326
0.171276
0.147301
0.119239
0.0867879
0.0497109
0.00796034
-0.0364851
-0.0802538
-0.117947
-0.14123
0.993872
0.945143
0.860179
0.756313
0.652851
0.554767
0.465079
0.384428
0.314295
0.254921
0.206024
0.166524
0.134051
0.106942
0.0840803
0.0642679
0.0472454
0.0301595
0.012319
-0.00526731
-0.021399
-0.0355293
-0.0480134
-0.0590924
-0.0688546
-0.0773533
-0.0846124
-0.0906565
-0.0959606
-0.101311
-0.106396
-0.111437
-0.115653
-0.117569
-0.119437
-0.121653
-0.124424
-0.128452
-0.131004
-0.134199
-0.136255
-0.1389
-0.143536
-0.145754
-0.151698
-0.164096
-0.168929
-0.169327
-0.17814
-0.171513
-0.17725
-0.185656
-0.177565
-0.175917
-0.176268
-0.172809
-0.163801
-0.150716
-0.143819
-0.133908
-0.124589
-0.126527
-0.111106
-0.0867543
-0.0798503
-0.0705596
-0.0522453
-0.035695
-0.00655991
0.00565871
0.0282707
0.0385336
0.0543987
0.0574198
0.0588981
0.0556958
0.0533879
0.0544444
0.050391
0.0472056
0.0480885
0.0460413
0.0443971
0.0447982
0.0431379
0.0400593
0.0376391
0.0363638
0.034478
0.031928
0.0296444
0.0279306
0.0267733
0.0261512
0.02577
0.0255115
0.025256
0.0248386
0.0242786
0.0235452
0.022823
0.0221678
0.0216197
0.0212811
0.0210056
0.0208941
0.0208479
0.0209335
0.0211784
0.0216052
0.0223713
0.0233047
0.0242248
0.0251688
0.0260302
0.0266275
0.0272269
0.0279626
0.0282659
0.0271012
0.0243404
0.0212396
0.0191233
0.0193113
0.0213102
0.0213111
0.0193504
0.0159897
0.0115324
0.00417804
-0.00443723
-0.0137985
-0.0280609
-0.0392951
-0.050142
-0.0633601
-0.0766702
-0.0911103
-0.101074
-0.106726
-0.120613
-0.130159
-0.138931
-0.146301
-0.152041
-0.147155
-0.139517
-0.131373
-0.114968
-0.095981
-0.067116
-0.0417161
-0.0141205
0.00750983
0.0272872
0.0403467
0.0502431
0.0566731
0.0630686
0.0688026
0.0709269
0.0702759
0.0671606
0.0632592
0.0604028
0.0566563
0.052138
0.0478564
0.0442924
0.0410735
0.0381327
0.035925
0.0337856
0.030542
0.0261547
0.0215866
0.0174512
0.013792
0.0110746
0.00987195
0.0100608
0.0105207
0.0107585
0.010404
0.00952893
0.00840721
0.00717901
0.0062869
0.0059776
0.00644606
0.00794049
0.0103378
0.01368
0.0175651
0.0210499
0.02289
0.0230926
0.0226114
0.0219543
0.0223552
0.0237388
0.0265759
0.0291033
0.0307302
0.0307379
0.0296818
0.028434
0.0279111
0.0270935
0.0241969
0.0186962
0.0150045
0.0158491
0.0202311
0.0232196
0.019302
0.00865053
-0.00825351
-0.0296591
-0.0521426
-0.0769477
-0.103764
-0.127104
-0.145882
-0.156041
-0.153883
-0.149592
-0.145079
-0.142185
-0.13457
-0.124499
-0.115565
-0.10317
-0.0901741
-0.0636045
-0.0231325
0.0157879
0.0447672
0.0626658
0.0724575
0.0736159
0.0701925
0.0620507
0.0578734
0.0583504
0.0609781
0.0640727
0.0655085
0.0627301
0.0520721
0.0298532
0.00416973
-0.00509774
0.0031703
0.0172045
0.0278181
0.0305391
0.0269184
0.0206252
0.0126887
0.00484184
-0.000253524
-0.00187638
-0.000593512
0.00372901
0.0104917
0.0179087
0.0237717
0.0269759
0.0282667
0.0280725
0.0276976
0.0268598
0.0249266
0.0220173
0.0192173
0.0173316
0.0168092
0.0175538
0.0182814
0.0165337
0.0163007
0.0219834
0.0274274
0.0290757
0.0301764
0.031498
0.0346013
0.0356476
0.034656
0.0329881
0.0301507
0.0268433
0.0202159
0.00967671
-0.0027398
-0.0206818
-0.0340973
-0.0557408
-0.0815189
-0.109295
-0.148876
-0.182713
-0.203008
-0.216286
-0.200525
-0.184992
-0.167976
-0.155241
-0.132191
-0.0555455
0.133906
0.122048
0.164414
0.176554
0.206543
0.245881
0.296485
0.342057
0.376221
0.413936
0.433348
0.440923
0.444344
0.454557
0.444043
0.434648
0.421079
0.403528
0.387586
0.374377
0.356039
0.334038
0.314172
0.297961
0.287307
0.275761
0.264093
0.253873
0.244924
0.236215
0.227643
0.219333
0.210749
0.201203
0.190007
0.175764
0.157353
0.135301
0.109481
0.0796479
0.045631
0.00752348
-0.0328658
-0.0724123
-0.106159
-0.126734
0.901256
0.858021
0.782349
0.689548
0.59605
0.507052
0.425431
0.352022
0.288097
0.233897
0.189156
0.152879
0.123043
0.0981438
0.0771223
0.0589075
0.043148
0.0274424
0.0111837
-0.0047623
-0.0194414
-0.0323713
-0.0438066
-0.0539523
-0.0628924
-0.0706791
-0.0773442
-0.0829312
-0.0878524
-0.0927696
-0.0974267
-0.101981
-0.105803
-0.107676
-0.109503
-0.111917
-0.114241
-0.117833
-0.120216
-0.122997
-0.125513
-0.127707
-0.131495
-0.134126
-0.139523
-0.149437
-0.155175
-0.157171
-0.163954
-0.158732
-0.163422
-0.170728
-0.162819
-0.161307
-0.160902
-0.157485
-0.149709
-0.138717
-0.132246
-0.123288
-0.115115
-0.116238
-0.104382
-0.0844971
-0.0764791
-0.0660794
-0.0489348
-0.031738
-0.00698578
0.00598347
0.0251087
0.0355337
0.0488046
0.0522084
0.053546
0.0509973
0.0490751
0.0494733
0.0461266
0.0434756
0.0437726
0.0420924
0.0407233
0.0407657
0.0392635
0.0366338
0.0344698
0.0331742
0.0314383
0.029177
0.0271393
0.0255792
0.0245112
0.0239239
0.0235505
0.0233022
0.0230563
0.0226694
0.0221603
0.0215006
0.0208493
0.0202548
0.0197575
0.0194411
0.0191825
0.019076
0.0190353
0.0191096
0.0193283
0.0197173
0.0203892
0.0212108
0.0220212
0.02285
0.0235931
0.0241099
0.0246093
0.0251613
0.025284
0.0241342
0.0216627
0.0188917
0.016976
0.0170266
0.0185976
0.0184327
0.0166014
0.0133638
0.00918352
0.00248823
-0.00547481
-0.01434
-0.0269501
-0.0373877
-0.0475307
-0.0596096
-0.0717512
-0.0849304
-0.0941808
-0.100152
-0.112892
-0.121125
-0.129875
-0.137287
-0.141614
-0.13755
-0.129869
-0.121367
-0.106295
-0.0882446
-0.0624673
-0.0387156
-0.013769
0.00632824
0.0242142
0.0363676
0.0455006
0.0516869
0.0575388
0.0625681
0.0645331
0.0639903
0.0613059
0.0578911
0.0551547
0.0517273
0.0476778
0.0438067
0.0405232
0.0375691
0.0348993
0.0328479
0.0308035
0.0278304
0.0238865
0.0197677
0.0160096
0.0127144
0.0102757
0.00915746
0.00925668
0.00959141
0.0097842
0.00946888
0.00868866
0.0076737
0.0065925
0.00580741
0.00553761
0.00598563
0.0073404
0.00951031
0.012526
0.0159496
0.0190031
0.0206322
0.0208409
0.0204142
0.0198551
0.0201954
0.0213777
0.0238253
0.0259441
0.027349
0.0272719
0.0263954
0.0251892
0.0246061
0.0236521
0.021014
0.0163701
0.0131259
0.0136679
0.0173275
0.0196196
0.0159269
0.0059359
-0.00986675
-0.0296285
-0.050414
-0.0732603
-0.0979195
-0.120001
-0.138254
-0.14826
-0.147329
-0.143548
-0.138729
-0.135303
-0.12742
-0.118121
-0.108782
-0.0970923
-0.0845234
-0.0602539
-0.0232279
0.01284
0.0401574
0.0569114
0.0659246
0.0671629
0.0640969
0.0572182
0.0534247
0.0536561
0.0559796
0.0587289
0.0598556
0.0570331
0.0471537
0.0275744
0.00509709
-0.00306837
0.00362299
0.0157038
0.0249196
0.0274621
0.024434
0.0188097
0.0116955
0.00470543
0.000114481
-0.00140645
-0.000251549
0.00363455
0.0096879
0.0162546
0.0214802
0.0244623
0.0257513
0.0256603
0.0252841
0.0244536
0.0226827
0.0200642
0.0175592
0.0158835
0.0153988
0.0159548
0.016506
0.0151109
0.0151042
0.0200294
0.0247963
0.0264536
0.0275827
0.028786
0.0316508
0.0324813
0.0317389
0.0303104
0.0276414
0.0245825
0.0183651
0.00858434
-0.00285785
-0.0191288
-0.0322468
-0.0523285
-0.0761884
-0.101825
-0.137117
-0.167593
-0.186677
-0.198667
-0.185617
-0.171893
-0.155054
-0.140535
-0.118564
-0.0809645
-0.0584182
-0.0291271
0.050734
0.103406
0.153412
0.208537
0.262684
0.308163
0.343467
0.374768
0.393111
0.403553
0.40816
0.414918
0.406105
0.397948
0.385297
0.369498
0.355081
0.342282
0.325653
0.305935
0.287914
0.273165
0.263014
0.252331
0.241775
0.232407
0.224086
0.216098
0.208238
0.20057
0.19263
0.183801
0.173437
0.160317
0.14352
0.123382
0.0997993
0.072576
0.0415957
0.00704952
-0.0294144
-0.0649267
-0.0949825
-0.113103
0.810458
0.772368
0.705457
0.623121
0.539349
0.459292
0.385668
0.319426
0.261667
0.212625
0.172056
0.139056
0.1119
0.0892409
0.0700928
0.0535027
0.0390642
0.0247652
0.0100746
-0.00427678
-0.017524
-0.0292492
-0.0396311
-0.0488415
-0.0569591
-0.0640335
-0.0701017
-0.0752185
-0.0797406
-0.084223
-0.0884563
-0.09255
-0.0959963
-0.0977977
-0.0995386
-0.10197
-0.103812
-0.107212
-0.109307
-0.111717
-0.114492
-0.116644
-0.119459
-0.122553
-0.127171
-0.134795
-0.14156
-0.144411
-0.150206
-0.145781
-0.149693
-0.155731
-0.148665
-0.14723
-0.146421
-0.142695
-0.13569
-0.126144
-0.119981
-0.111856
-0.104986
-0.104915
-0.0940727
-0.0776953
-0.0696984
-0.0593527
-0.0443751
-0.0277419
-0.00659656
0.00619873
0.0224455
0.0324487
0.0435997
0.0470882
0.0483072
0.0462887
0.0446674
0.04463
0.0418475
0.0396196
0.0395397
0.0381404
0.0369805
0.0367842
0.0354375
0.0331896
0.0312666
0.0299973
0.0284144
0.0264225
0.0246157
0.023208
0.022233
0.0216859
0.0213266
0.0210919
0.0208565
0.0204965
0.0200376
0.0194486
0.0188689
0.0183315
0.0178867
0.0175897
0.017354
0.0172483
0.0172105
0.0172739
0.0174646
0.0178162
0.0183972
0.0191108
0.0198136
0.0205275
0.0211559
0.0215882
0.021984
0.022369
0.0223331
0.0211947
0.018961
0.0164909
0.0147756
0.0147146
0.0158626
0.0155601
0.013842
0.0107857
0.00683617
0.000698005
-0.00656329
-0.0148659
-0.025945
-0.035349
-0.0448646
-0.0555495
-0.0664278
-0.0781495
-0.0864674
-0.0924208
-0.103654
-0.110992
-0.119189
-0.126132
-0.129324
-0.125846
-0.118753
-0.110446
-0.0967931
-0.0800122
-0.0571315
-0.0353773
-0.0130557
0.00530345
0.0213531
0.0325113
0.040878
0.0467164
0.0520178
0.0564174
0.0582161
0.0577723
0.0554656
0.0524854
0.0499201
0.0468077
0.0432016
0.0397238
0.0367314
0.0340468
0.0316401
0.0297621
0.027839
0.0251378
0.0216169
0.0179313
0.0145475
0.0116017
0.00942764
0.00839911
0.00842601
0.00863596
0.00879909
0.00852227
0.00782317
0.00692845
0.00597148
0.00528056
0.00504987
0.00546638
0.00668421
0.00862392
0.0113206
0.0143182
0.0169564
0.0183773
0.0185697
0.0181909
0.0176927
0.0179704
0.018958
0.0210341
0.0227833
0.023969
0.0238732
0.0230693
0.0219871
0.0213473
0.0203078
0.0178541
0.0138606
0.0109894
0.0113938
0.0144488
0.016081
0.0126259
0.00354562
-0.0108626
-0.0288146
-0.0478913
-0.0687037
-0.0911172
-0.11159
-0.128845
-0.138594
-0.138528
-0.135162
-0.130337
-0.126014
-0.11803
-0.109144
-0.100079
-0.0893197
-0.077551
-0.0556566
-0.0223307
0.0104165
0.035629
0.0510454
0.0593401
0.0606282
0.0579455
0.0521689
0.0488043
0.0488944
0.0509164
0.0533169
0.0541725
0.0513651
0.0423165
0.025282
0.00567303
-0.00136965
0.00400755
0.0142185
0.0221522
0.0244666
0.0219279
0.0169616
0.0106548
0.00448265
0.000423002
-0.000975367
4.76771e-05
0.00347432
0.00884765
0.0146321
0.0192412
0.0219774
0.0231721
0.023147
0.0228259
0.0220502
0.0204367
0.0181005
0.0158664
0.0143961
0.0139359
0.0143538
0.0147776
0.0136785
0.013835
0.0181189
0.0222301
0.0238386
0.0250177
0.0260796
0.0285349
0.029333
0.0287717
0.0275533
0.0250129
0.0221844
0.0163932
0.00738902
-0.00304305
-0.0178367
-0.0303508
-0.0487624
-0.0705207
-0.0933603
-0.125454
-0.15285
-0.169884
-0.179587
-0.169415
-0.157643
-0.143821
-0.13104
-0.109238
-0.0787472
-0.0603189
-0.0325994
0.0362322
0.0870234
0.135053
0.186871
0.2353
0.277165
0.309713
0.338411
0.355397
0.366733
0.371769
0.375757
0.368366
0.361199
0.349595
0.335443
0.322443
0.310319
0.295314
0.277737
0.261517
0.248194
0.23867
0.228891
0.219389
0.210873
0.203226
0.195956
0.188808
0.181799
0.174525
0.166438
0.156939
0.14497
0.129769
0.111537
0.0901876
0.0655637
0.0375952
0.00653604
-0.0261216
-0.0577696
-0.0843579
-0.100234
0.721261
0.688018
0.629406
0.557026
0.482752
0.411498
0.345803
0.286661
0.23503
0.191132
0.154748
0.12507
0.100633
0.0802432
0.0629988
0.0480582
0.0349913
0.0221205
0.00898558
-0.00380731
-0.0156411
-0.0261591
-0.0354838
-0.0437576
-0.0510519
-0.0574135
-0.0628816
-0.0675171
-0.0716264
-0.0756728
-0.0794861
-0.0831401
-0.0862275
-0.0879311
-0.0895511
-0.0914804
-0.0934012
-0.0966077
-0.0984776
-0.100689
-0.102859
-0.105492
-0.108154
-0.111085
-0.115539
-0.121687
-0.128143
-0.129617
-0.135903
-0.132627
-0.135946
-0.140844
-0.13486
-0.133436
-0.132235
-0.128391
-0.121627
-0.113268
-0.107512
-0.10013
-0.094293
-0.0933724
-0.083676
-0.0700678
-0.0623163
-0.0529908
-0.0401149
-0.0245083
-0.00569491
0.00627642
0.0200776
0.0293221
0.0387052
0.0420695
0.0431722
0.041576
0.040194
0.0398811
0.0375563
0.0356726
0.0353618
0.0341821
0.0331822
0.0328336
0.0316435
0.0297237
0.028031
0.0268305
0.0254043
0.0236631
0.0220748
0.0208176
0.0199395
0.0194361
0.0190978
0.0188801
0.0186582
0.0183343
0.0179197
0.017398
0.0168873
0.0164064
0.0160115
0.0157356
0.0155237
0.0154194
0.0153841
0.0154362
0.015599
0.0159102
0.0164041
0.0170144
0.0176128
0.0182162
0.0187303
0.0190759
0.0193658
0.0195955
0.019423
0.0182973
0.0162604
0.0140304
0.0124888
0.0123367
0.013086
0.0126996
0.0110793
0.0082089
0.00449659
-0.0010853
-0.00768461
-0.0152836
-0.025018
-0.0334529
-0.0421054
-0.0515253
-0.0610094
-0.0713597
-0.0786425
-0.084243
-0.0938197
-0.100343
-0.107678
-0.113658
-0.116197
-0.113198
-0.10682
-0.0990119
-0.0867844
-0.071519
-0.0514079
-0.0318431
-0.012077
0.00442693
0.018678
0.0287791
0.0363482
0.0417514
0.0464982
0.0503294
0.0519515
0.0515929
0.0496209
0.0470289
0.0446735
0.0418824
0.0386953
0.0356094
0.0329196
0.0305178
0.0283681
0.026661
0.0248862
0.0224593
0.0193461
0.0160816
0.0130704
0.0104605
0.00854341
0.00760328
0.0075831
0.0077124
0.00784873
0.00759357
0.00697938
0.00619218
0.00535161
0.00475096
0.00455101
0.00492993
0.00600575
0.00772461
0.0101011
0.0126997
0.0149604
0.016173
0.016332
0.0159765
0.0155152
0.0157204
0.0165087
0.0182402
0.0196356
0.0206032
0.0204402
0.0196913
0.0186837
0.0180116
0.0169136
0.0146901
0.0112405
0.00883259
0.00912731
0.0115447
0.0125484
0.0092151
0.000914817
-0.0121153
-0.0281695
-0.0453452
-0.0639309
-0.0838667
-0.102403
-0.118226
-0.127415
-0.127902
-0.124867
-0.120144
-0.115193
-0.107433
-0.0990377
-0.0904408
-0.0806911
-0.0698386
-0.0502834
-0.0207274
0.0084837
0.0312616
0.0452642
0.0527997
0.0540912
0.0518131
0.0469993
0.044065
0.0440536
0.0457548
0.0478301
0.0484415
0.045737
0.037523
0.0228374
0.0059906
-5.81685e-05
0.00422365
0.0127464
0.0194867
0.0215695
0.0194731
0.015133
0.00959691
0.00420388
0.000646328
-0.000610611
0.000279426
0.00328539
0.00794457
0.0130339
0.0170617
0.0195384
0.0206392
0.0206849
0.020391
0.0196661
0.0182117
0.0161426
0.0141654
0.0128786
0.0124319
0.0127198
0.0130184
0.0121956
0.012503
0.0161971
0.0197521
0.0212519
0.0223646
0.0233322
0.0254488
0.0261974
0.0257702
0.0246389
0.0223225
0.0196937
0.0143527
0.00627609
-0.00310732
-0.0164577
-0.0282709
-0.0451373
-0.0648677
-0.0854406
-0.114307
-0.138344
-0.152915
-0.160582
-0.15193
-0.141756
-0.12943
-0.11735
-0.096542
-0.0712889
-0.054543
-0.0270622
0.0313334
0.0771788
0.120545
0.165916
0.209824
0.247323
0.277548
0.302324
0.318705
0.330279
0.335259
0.336981
0.33078
0.324448
0.313956
0.301367
0.289712
0.278451
0.265011
0.24946
0.234997
0.223072
0.214278
0.205433
0.196944
0.189282
0.182344
0.175792
0.169357
0.163021
0.156432
0.149108
0.140505
0.12971
0.116092
0.0997603
0.0806379
0.0586032
0.0336216
0.00598214
-0.0229766
-0.0509125
-0.0742275
-0.0880329
0.633462
0.604816
0.554104
0.491246
0.426258
0.363682
0.305848
0.253748
0.20821
0.169444
0.137256
0.110939
0.0892551
0.0711607
0.0558471
0.0425786
0.0309267
0.0195025
0.00791208
-0.00335099
-0.0137873
-0.0230971
-0.0313617
-0.0386973
-0.0451678
-0.0508158
-0.0556809
-0.0598253
-0.0635102
-0.0671198
-0.0705164
-0.0737478
-0.0764895
-0.078074
-0.0795553
-0.0809631
-0.0830748
-0.0860488
-0.0882034
-0.08988
-0.0917632
-0.0942565
-0.0969699
-0.0997791
-0.103592
-0.109672
-0.114828
-0.114754
-0.121309
-0.119368
-0.122282
-0.126247
-0.121233
-0.119807
-0.118202
-0.114414
-0.10799
-0.100552
-0.0951245
-0.0884268
-0.0833574
-0.0818432
-0.0733588
-0.0620081
-0.0546664
-0.0472206
-0.0363331
-0.0223508
-0.00502022
0.00621329
0.0178924
0.0261687
0.0340367
0.0371334
0.0381173
0.0368567
0.0356728
0.0351998
0.0332544
0.0316582
0.0312179
0.0302172
0.0293485
0.0289243
0.027874
0.0262415
0.0247697
0.0236761
0.0224062
0.0208981
0.0195176
0.0184095
0.0176305
0.0171757
0.0168645
0.0166664
0.0164647
0.0161786
0.0158087
0.0153524
0.0149041
0.0144789
0.0141306
0.0138797
0.01369
0.0135889
0.0135539
0.0135955
0.0137299
0.0139984
0.0144091
0.0149194
0.0154154
0.0159103
0.016314
0.0165682
0.0167505
0.0168375
0.0165462
0.0154438
0.0135984
0.0115677
0.0101431
0.00993668
0.0103794
0.00990375
0.00835342
0.00565726
0.00220324
-0.0028465
-0.00879586
-0.0156775
-0.0240926
-0.031516
-0.0392454
-0.0473491
-0.0555224
-0.064429
-0.0706302
-0.0757062
-0.0837207
-0.089338
-0.0956853
-0.100614
-0.102659
-0.100043
-0.0944298
-0.0873236
-0.07654
-0.0629347
-0.0454687
-0.0281874
-0.0109093
0.00365781
0.0161521
0.0251403
0.0318908
0.0367823
0.0409789
0.0442928
0.0457322
0.0454513
0.0437796
0.0415463
0.0394276
0.0369603
0.0341762
0.0314712
0.0290882
0.026961
0.0250704
0.0235438
0.0219424
0.0197958
0.0170764
0.0142206
0.0115765
0.00929312
0.00762036
0.00677798
0.00672575
0.00677268
0.00691464
0.00667826
0.00613778
0.00545018
0.00472215
0.00420406
0.00403336
0.00437197
0.0053098
0.00681265
0.0088748
0.0110911
0.0129982
0.0140028
0.0141108
0.013761
0.0133141
0.0134378
0.0140326
0.0154392
0.0165201
0.0172688
0.0170156
0.0163285
0.0153239
0.0146034
0.0135253
0.0114986
0.00861917
0.00655333
0.00674156
0.0086074
0.00906963
0.00586315
-0.00161073
-0.0131676
-0.0273528
-0.042602
-0.0589296
-0.0763063
-0.0926557
-0.106725
-0.115039
-0.115751
-0.113002
-0.108444
-0.103262
-0.0959627
-0.0882212
-0.0803023
-0.0716069
-0.0617285
-0.0444617
-0.0186429
0.00692834
0.0270637
0.0396148
0.0463308
0.0476071
0.0457089
0.0417061
0.0391768
0.0390994
0.0405175
0.0423022
0.0427321
0.0401897
0.0328871
0.0202623
0.00605897
0.000854036
0.00422972
0.0112658
0.0169389
0.0187876
0.0170609
0.0133107
0.00851011
0.00386299
0.000783277
-0.000329106
0.000443371
0.00304953
0.00704445
0.0114631
0.0149398
0.0171413
0.0181259
0.0182263
0.0179696
0.0173087
0.0160117
0.0141885
0.0124629
0.0113253
0.0108935
0.0110994
0.011317
0.0106758
0.0111178
0.0142623
0.0172795
0.0186775
0.0197531
0.0205588
0.0223331
0.0229703
0.0226887
0.0217341
0.0196079
0.017206
0.0123085
0.00508348
-0.00335155
-0.0153362
-0.026137
-0.0414492
-0.0592007
-0.0774062
-0.103271
-0.124033
-0.136488
-0.142462
-0.134426
-0.125488
-0.114415
-0.103177
-0.0833842
-0.0627174
-0.0475938
-0.0216464
0.027453
0.0677128
0.107847
0.146081
0.186667
0.219504
0.247122
0.2673
0.283356
0.294065
0.298669
0.298483
0.2933
0.287712
0.278357
0.267263
0.256906
0.246648
0.234736
0.221112
0.208368
0.197819
0.189841
0.181951
0.174448
0.167642
0.161438
0.155607
0.149888
0.144236
0.13835
0.13181
0.124127
0.114525
0.102482
0.0880433
0.0711431
0.051687
0.0296684
0.00538828
-0.0199676
-0.0443259
-0.0645346
-0.0764132
0.546868
0.522611
0.479461
0.425758
0.369863
0.315852
0.265816
0.220706
0.181231
0.147586
0.119605
0.0966803
0.0777787
0.0620035
0.0486446
0.0370683
0.0268683
0.016906
0.00685014
-0.00290593
-0.0119586
-0.02006
-0.0272626
-0.0336589
-0.0393049
-0.0442387
-0.0484981
-0.0521433
-0.055394
-0.0585663
-0.0615493
-0.0643724
-0.0667792
-0.0682287
-0.0695703
-0.0708664
-0.0726702
-0.075484
-0.0776089
-0.0791223
-0.0810467
-0.0830399
-0.0855808
-0.0879332
-0.0908729
-0.0965891
-0.101781
-0.10158
-0.106929
-0.106288
-0.108734
-0.111781
-0.107631
-0.106199
-0.104252
-0.100491
-0.0946124
-0.0879431
-0.0828186
-0.0767659
-0.0721755
-0.07038
-0.0630947
-0.0537367
-0.0470904
-0.0409678
-0.0318863
-0.0202518
-0.00503181
0.00595808
0.0157986
0.0230436
0.0295767
0.0322968
0.0331464
0.0321434
0.031123
0.0305683
0.0289418
0.0275925
0.0270947
0.0262475
0.0255012
0.0250586
0.0241349
0.0227603
0.0214988
0.0205274
0.0194166
0.0181284
0.0169455
0.0159865
0.015309
0.0149065
0.0146288
0.0144534
0.0142747
0.0140339
0.0137176
0.0133097
0.0129189
0.0125477
0.012244
0.0120168
0.0118507
0.0117536
0.0117185
0.0117468
0.0118543
0.0120788
0.0124095
0.0128226
0.0132171
0.0136051
0.0139014
0.014063
0.0141399
0.0140982
0.0137057
0.0126203
0.0109402
0.00911695
0.00780275
0.00752487
0.00770753
0.00716741
0.00567112
0.00314716
-5.48958e-05
-0.00458831
-0.00991319
-0.015991
-0.0232296
-0.02961
-0.0363399
-0.0431365
-0.0499975
-0.0574752
-0.0625767
-0.0669279
-0.0734322
-0.0780932
-0.0833679
-0.0872847
-0.0889121
-0.0866583
-0.0818331
-0.0755481
-0.066209
-0.0543474
-0.0394121
-0.024457
-0.00961199
0.00297623
0.0137483
0.0215892
0.0274983
0.0318268
0.0354743
0.0383051
0.039562
0.0393492
0.0379481
0.0360521
0.034188
0.0320422
0.0296488
0.027315
0.025242
0.0233955
0.0217599
0.0204277
0.0190116
0.0171454
0.014807
0.012349
0.010067
0.00810397
0.00666694
0.00592675
0.0058591
0.00602087
0.00598118
0.00576934
0.00529806
0.00470549
0.00407965
0.00363638
0.00349115
0.00378701
0.00459049
0.0058823
0.00763739
0.0094881
0.0110569
0.0118515
0.0118932
0.0115308
0.0110798
0.0111169
0.0115208
0.0126184
0.013403
0.0139331
0.0136025
0.0129439
0.0119864
0.0112722
0.0102084
0.00840494
0.00597261
0.00426494
0.00433048
0.00567354
0.00574277
0.00267373
-0.00405483
-0.0141806
-0.0264888
-0.0397194
-0.053763
-0.0685635
-0.0825391
-0.0945669
-0.101697
-0.102352
-0.0998475
-0.0955788
-0.090517
-0.083887
-0.0769577
-0.069874
-0.0622459
-0.0534328
-0.0384411
-0.0162782
0.00561019
0.0230507
0.0340494
0.0399466
0.041158
0.039587
0.0363046
0.0341591
0.0340555
0.0352452
0.0367599
0.0370504
0.0347218
0.0283396
0.0176305
0.00583815
0.00141404
0.0040452
0.00978959
0.0144984
0.0161018
0.0146932
0.0115019
0.00740233
0.00345815
0.000840145
-0.000120956
0.00053478
0.00275167
0.0061406
0.00987832
0.0128554
0.0147784
0.0156288
0.0157602
0.0155432
0.0149605
0.0138238
0.0122359
0.0107534
0.00974864
0.00933408
0.00947646
0.00963645
0.00913454
0.0097131
0.0123348
0.014859
0.0161162
0.0170902
0.0177851
0.019329
0.0198797
0.0196944
0.018832
0.0169155
0.0147132
0.0102931
0.00392661
-0.00342371
-0.0141472
-0.0239717
-0.0378949
-0.0539124
-0.0698367
-0.0921204
-0.109734
-0.120132
-0.124673
-0.117421
-0.109509
-0.0995725
-0.0891869
-0.071581
-0.054037
-0.0406044
-0.0167194
0.0246338
0.0590799
0.0956456
0.128121
0.163579
0.191796
0.21617
0.233945
0.249338
0.256352
0.260516
0.260212
0.255922
0.251024
0.242808
0.233149
0.224058
0.2149
0.204487
0.192711
0.181649
0.172459
0.165366
0.158446
0.15191
0.145961
0.140511
0.135405
0.130403
0.125448
0.120279
0.114539
0.107799
0.0994045
0.0889295
0.0763792
0.0616958
0.0448085
0.0257303
0.00475609
-0.0170814
-0.0379794
-0.0552243
-0.0652937
0.461295
0.441259
0.405386
0.360533
0.313561
0.268013
0.225718
0.187553
0.154115
0.125581
0.101816
0.0823102
0.0662166
0.0527813
0.0413979
0.0315316
0.0228146
0.0143271
0.00579834
-0.0024688
-0.010149
-0.0170419
-0.0231807
-0.0286362
-0.0334567
-0.0376751
-0.041326
-0.0444647
-0.0472734
-0.050008
-0.05258
-0.0550062
-0.0570865
-0.0583842
-0.0595839
-0.0607179
-0.0622977
-0.0649192
-0.0664941
-0.0682589
-0.0703808
-0.0715808
-0.073786
-0.0758121
-0.0780298
-0.0824028
-0.0888859
-0.088272
-0.0930248
-0.0930182
-0.0950834
-0.09782
-0.094223
-0.0926591
-0.0904342
-0.086731
-0.0813287
-0.0753561
-0.0705778
-0.0651618
-0.0612607
-0.0591904
-0.0529424
-0.0453188
-0.0394917
-0.0337354
-0.0264258
-0.0171821
-0.00490982
0.00537702
0.0135666
0.0199111
0.0252389
0.02751
0.0282174
0.0274163
0.0265408
0.0259656
0.0246174
0.0234884
0.0229849
0.0222735
0.0216427
0.0212159
0.0204214
0.0192835
0.0182217
0.0173785
0.0164303
0.0153535
0.0143614
0.0135514
0.012977
0.0126293
0.0123882
0.0122357
0.0120802
0.0118791
0.0115962
0.0112534
0.0109238
0.0106068
0.0103474
0.0101464
0.0100003
0.00990712
0.00987114
0.00988492
0.00996126
0.0101378
0.0103875
0.0107057
0.0109987
0.0112789
0.0114672
0.011534
0.011506
0.0113444
0.010866
0.00979493
0.00824945
0.00662252
0.00543255
0.0050667
0.00504415
0.00445038
0.00301498
0.000675121
-0.00223042
-0.00627202
-0.010914
-0.0161986
-0.0223073
-0.0276309
-0.0333241
-0.0388513
-0.0444617
-0.0504917
-0.0545004
-0.0580515
-0.0630556
-0.0667385
-0.070893
-0.0738385
-0.0750777
-0.0731977
-0.0691503
-0.0637551
-0.0558619
-0.0458
-0.0333169
-0.0207101
-0.00825326
0.00236489
0.0114505
0.0181218
0.0231645
0.0268905
0.0299981
0.0323723
0.0334435
0.0332829
0.0321281
0.0305456
0.0289475
0.0271257
0.0251111
0.023145
0.0213883
0.0198256
0.0184428
0.0173051
0.016087
0.0145031
0.0125363
0.0104675
0.00854299
0.0068923
0.00568469
0.00505598
0.00498437
0.00512812
0.00505417
0.0048629
0.00445854
0.00395467
0.00342529
0.0030516
0.00292513
0.00317283
0.00383894
0.00491565
0.00636346
0.00786592
0.00911194
0.00970131
0.00966072
0.00927013
0.00879767
0.00873091
0.00894523
0.00974289
0.0102459
0.0105616
0.0101489
0.00950857
0.00862033
0.00792347
0.00688601
0.00531275
0.00333534
0.00191292
0.00190304
0.00279099
0.00248746
-0.000455419
-0.00646642
-0.0151556
-0.0255852
-0.0367406
-0.0484881
-0.0607124
-0.0722086
-0.0819787
-0.0876461
-0.0879722
-0.0856725
-0.0818249
-0.0771664
-0.0713806
-0.0653908
-0.0592534
-0.0527245
-0.0450833
-0.0323812
-0.0137753
0.0044827
0.0192157
0.0285818
0.0336481
0.034747
0.0334881
0.0308434
0.0290641
0.0289539
0.0299334
0.0311909
0.031374
0.0293131
0.0238708
0.0149627
0.00536034
0.00168063
0.00369881
0.00830472
0.0121414
0.0135022
0.0123702
0.00970784
0.00627832
0.00299579
0.000820137
2.09664e-05
0.000566268
0.00240948
0.00522429
0.00832713
0.0108174
0.0124507
0.0131891
0.0133284
0.0131427
0.0126351
0.0116481
0.0102853
0.00902294
0.00813377
0.00775264
0.007824
0.00793407
0.00755903
0.00817789
0.0103426
0.0124626
0.0135581
0.014404
0.0150177
0.0163284
0.0167187
0.0166054
0.0158911
0.0142329
0.0122915
0.00838689
0.00295828
-0.00347292
-0.0130003
-0.0218534
-0.0345047
-0.048868
-0.0625892
-0.080774
-0.0956017
-0.103893
-0.106994
-0.100735
-0.0937059
-0.0848597
-0.0754249
-0.0603435
-0.0457011
-0.0340287
-0.0128034
0.0216743
0.0508074
0.0822454
0.11008
0.139926
0.163923
0.184948
0.200743
0.212636
0.217711
0.221362
0.222105
0.21857
0.214341
0.207257
0.198986
0.191148
0.183164
0.174236
0.164247
0.154837
0.146997
0.140845
0.134908
0.129331
0.12424
0.11956
0.115184
0.110904
0.106654
0.102215
0.0972912
0.091512
0.0843388
0.0754272
0.0647606
0.0522892
0.0379613
0.0218028
0.00408822
-0.0143039
-0.0318424
-0.046243
-0.0545985
0.376567
0.360622
0.331794
0.29554
0.257344
0.220172
0.185569
0.15431
0.126885
0.103455
0.0839125
0.067847
0.0545823
0.0435047
0.0341139
0.0259726
0.0187632
0.0117604
0.00474972
-0.00204303
-0.00836087
-0.0140477
-0.0191229
-0.0236383
-0.027634
-0.0311374
-0.0341784
-0.0368054
-0.0391656
-0.0414616
-0.0436242
-0.0456615
-0.0474207
-0.0485543
-0.0496207
-0.0505094
-0.052091
-0.0542073
-0.0555457
-0.0570546
-0.0596404
-0.0604923
-0.0622423
-0.0649634
-0.0661599
-0.0695898
-0.0755561
-0.0749371
-0.080649
-0.079804
-0.0814259
-0.084062
-0.080801
-0.0791599
-0.0767698
-0.0730727
-0.0681087
-0.0627693
-0.0583648
-0.0535864
-0.0502461
-0.048318
-0.0431065
-0.0368942
-0.0319344
-0.0265219
-0.0208054
-0.0132654
-0.00425671
0.00454385
0.0112053
0.0166937
0.0209622
0.0228069
0.0233589
0.0227077
0.0219549
0.0213948
0.0202897
0.019358
0.0188833
0.0182943
0.0177698
0.0173817
0.0167188
0.0158016
0.014933
0.014228
0.0134456
0.0125727
0.0117661
0.0111042
0.0106329
0.0103425
0.0101396
0.0100109
0.00987783
0.00971114
0.00942658
0.00917336
0.0089143
0.00865641
0.00844277
0.00827261
0.0081447
0.00805776
0.00802015
0.00801986
0.00806365
0.00818787
0.00835925
0.00858267
0.00877428
0.00894594
0.00902503
0.00899135
0.00885438
0.00857707
0.0080161
0.00696396
0.00554787
0.00406647
0.00299711
0.0025909
0.0023965
0.00173363
0.000363466
-0.00179543
-0.00440789
-0.00798056
-0.011936
-0.0164382
-0.0213907
-0.0256823
-0.0302769
-0.0345218
-0.0389148
-0.0434962
-0.0464251
-0.0490989
-0.0526753
-0.0553449
-0.0583505
-0.0603862
-0.0612583
-0.0597326
-0.0564476
-0.0519911
-0.0455423
-0.0373032
-0.0272218
-0.0169596
-0.00684854
0.00184677
0.00925254
0.0147341
0.0188974
0.0219817
0.0245487
0.0264775
0.0273551
0.0272292
0.0263058
0.0250212
0.0236999
0.0222056
0.0205637
0.0189608
0.0175215
0.0162378
0.0151093
0.0141718
0.0131637
0.0118645
0.0102628
0.00857665
0.00700596
0.00566168
0.00467614
0.00416285
0.00408469
0.00411161
0.00410937
0.00395245
0.00361916
0.00320125
0.00276539
0.00245826
0.00234863
0.00254628
0.00307411
0.00393461
0.00508052
0.00624904
0.00718441
0.0075733
0.00744048
0.00701333
0.00651226
0.00633733
0.00636989
0.00687231
0.00710806
0.0072072
0.00670034
0.00604989
0.00518166
0.00445256
0.00352395
0.00221139
0.000634383
-0.000536472
-0.000598163
-0.000102059
-0.000720759
-0.00350206
-0.00874211
-0.0160329
-0.0245874
-0.0336737
-0.0430992
-0.0527591
-0.0617233
-0.0691115
-0.0731114
-0.0728856
-0.0707714
-0.0674507
-0.0634148
-0.0585893
-0.0536195
-0.0485111
-0.0431188
-0.0367419
-0.0263486
-0.0112088
0.00351747
0.0155364
0.023222
0.0274267
0.0283865
0.0274144
0.0253305
0.0239034
0.023802
0.0245857
0.0255945
0.0257069
0.0239557
0.0194688
0.0122537
0.00467016
0.00170048
0.00321499
0.00681298
0.00985519
0.0109704
0.0100811
0.00792208
0.00514007
0.00248986
0.000742533
0.000100134
0.000545774
0.00203481
0.00429833
0.00679519
0.00881006
0.0101492
0.0107419
0.0108902
0.0107398
0.0103118
0.00947439
0.00833244
0.00726114
0.0064707
0.00611551
0.0061266
0.00620823
0.00594712
0.00653477
0.00830271
0.0100188
0.0109649
0.0117225
0.0122312
0.0132862
0.0136616
0.0136069
0.0130282
0.0115426
0.00980451
0.00636611
0.00163723
-0.00406414
-0.0124903
-0.02045
-0.031188
-0.0434098
-0.0557702
-0.0697727
-0.0819413
-0.0879165
-0.0896251
-0.0841232
-0.077895
-0.0701258
-0.0617812
-0.0490813
-0.0372783
-0.0274384
-0.00940889
0.0184273
0.0425517
0.0687606
0.0918826
0.116455
0.136388
0.153928
0.167148
0.174009
0.180393
0.183482
0.184242
0.181326
0.17776
0.17179
0.164863
0.158265
0.151498
0.14404
0.135778
0.127991
0.121487
0.116318
0.111369
0.106739
0.102505
0.0986015
0.0949589
0.0914004
0.0878614
0.0841615
0.0800648
0.0752618
0.069319
0.0619672
0.0531804
0.0429164
0.0311394
0.0178825
0.00338816
-0.0116204
-0.0258838
-0.0375382
-0.0442554
0.29251
0.280565
0.258596
0.230741
0.201198
0.172328
0.145375
0.120987
0.0995567
0.0812224
0.065909
0.0533011
0.0428831
0.034179
0.0267965
0.0203947
0.0147157
0.00920829
0.00371878
-0.0016088
-0.00656939
-0.0110475
-0.0150522
-0.0186224
-0.0217891
-0.0245739
-0.0270015
-0.0291124
-0.0310217
-0.0328847
-0.0346477
-0.036314
-0.0377711
-0.0387526
-0.0396982
-0.0405055
-0.0419333
-0.0434587
-0.0446884
-0.0459552
-0.048491
-0.0495697
-0.0506348
-0.0538638
-0.054195
-0.0576001
-0.0614539
-0.0619396
-0.0676369
-0.0664641
-0.0673646
-0.0689516
-0.0663085
-0.0649718
-0.062823
-0.0594057
-0.0549634
-0.0502367
-0.0462382
-0.042085
-0.0398099
-0.0378052
-0.0336856
-0.0287238
-0.02462
-0.0201134
-0.0154942
-0.00938647
-0.00330575
0.00364271
0.00893311
0.0133184
0.0166219
0.0181184
0.018501
0.0179671
0.0173303
0.0168188
0.0159396
0.015196
0.0147793
0.0143072
0.0138848
0.0135527
0.0130234
0.0123151
0.0116356
0.0110766
0.0104625
0.00978695
0.00916176
0.00864678
0.00827902
0.0080483
0.00788813
0.00778686
0.00768268
0.00756057
0.00730175
0.00711715
0.0069197
0.00671786
0.00654828
0.00640704
0.00630092
0.00622185
0.00618203
0.00616811
0.00618377
0.0062581
0.00635704
0.00648804
0.00658318
0.00664979
0.00662433
0.00649135
0.00624728
0.00586046
0.00522076
0.00418132
0.00287512
0.00153598
0.000547814
0.000107397
-0.000233116
-0.000958773
-0.00228048
-0.00426287
-0.00659561
-0.00971012
-0.0130285
-0.0167639
-0.0205941
-0.0238345
-0.0273142
-0.0302786
-0.0334186
-0.0365585
-0.0383782
-0.0401141
-0.0423162
-0.0439396
-0.0458107
-0.0469727
-0.0475065
-0.0463231
-0.0437882
-0.0402983
-0.0352906
-0.0288912
-0.0211123
-0.0131554
-0.00534829
0.00140211
0.00713505
0.0113931
0.0146651
0.0170872
0.0191002
0.0205885
0.0212714
0.0211729
0.0204679
0.0194775
0.0184421
0.0172761
0.0160048
0.0147589
0.0136391
0.0126402
0.0117633
0.0110321
0.0102404
0.00922851
0.00798626
0.00667866
0.0054593
0.00441774
0.00365421
0.00325429
0.0031839
0.00317827
0.00317963
0.00305537
0.00278913
0.00245568
0.00210775
0.00186257
0.00176903
0.0019168
0.00231098
0.00296052
0.00381659
0.00466758
0.00530964
0.00550749
0.0052817
0.00481318
0.00428259
0.00400033
0.00386053
0.0040749
0.00405459
0.0039392
0.00332542
0.00264152
0.00177622
0.00106693
0.000204949
-0.000878629
-0.00211359
-0.0030272
-0.0031517
-0.00301556
-0.00387729
-0.00649668
-0.011011
-0.016974
-0.0236971
-0.0306633
-0.0377205
-0.0447904
-0.0511588
-0.0560616
-0.0582442
-0.0572914
-0.0553546
-0.0526631
-0.0494124
-0.0456249
-0.041732
-0.0377154
-0.0334982
-0.0284246
-0.0204266
-0.00863452
0.00266134
0.0119745
0.0179624
0.0212789
0.0220632
0.0213349
0.0197612
0.0186686
0.018582
0.019183
0.0199626
0.0200314
0.0186309
0.0151135
0.00954423
0.00380521
0.00152468
0.00261681
0.00530679
0.00761529
0.00848587
0.00782003
0.00615348
0.00399763
0.0019538
0.000618618
0.000132481
0.000476487
0.0016203
0.00335533
0.0052718
0.00682823
0.00787605
0.00835408
0.00847086
0.00835303
0.00800147
0.00731161
0.00637769
0.00548128
0.00480893
0.00449088
0.00443969
0.00449395
0.00433345
0.00484606
0.00627218
0.0076272
0.00840379
0.0089911
0.00937858
0.0102507
0.0105672
0.0104939
0.0100293
0.00882095
0.00735973
0.00442077
0.00030782
-0.00463356
-0.0115528
-0.0184437
-0.0265607
-0.0361807
-0.047833
-0.0579282
-0.0676846
-0.071934
-0.0726041
-0.0677259
-0.0622714
-0.0555939
-0.0484597
-0.0386501
-0.0293081
-0.0213405
-0.00674228
0.0148729
0.0339932
0.0550672
0.0734647
0.0928107
0.108632
0.122517
0.133042
0.137957
0.141992
0.144631
0.146042
0.143735
0.14082
0.135997
0.130435
0.125111
0.119631
0.113663
0.107121
0.100955
0.0957956
0.0916525
0.0877158
0.0840447
0.0806825
0.0775758
0.0746794
0.0718541
0.0690419
0.0661017
0.0628481
0.059035
0.0543312
0.0485384
0.0416299
0.0335703
0.0243373
0.0139667
0.00266025
-0.00901551
-0.0200725
-0.0290591
-0.0341956
0.208958
0.200959
0.185716
0.166112
0.145132
0.124512
0.105179
0.0876397
0.0721902
0.058947
0.0478658
0.0387261
0.0311647
0.0248411
0.019472
0.0148119
0.0106683
0.0066531
0.00265319
-0.0012272
-0.00485131
-0.00813252
-0.0110736
-0.0137058
-0.0160486
-0.0181174
-0.0199306
-0.0215184
-0.0229633
-0.0243756
-0.025716
-0.0269855
-0.0281066
-0.0288878
-0.0296485
-0.0303326
-0.0314079
-0.0327229
-0.0337283
-0.0349032
-0.0368638
-0.0377802
-0.038432
-0.0410824
-0.0413966
-0.0445508
-0.0471497
-0.0481249
-0.0525414
-0.052123
-0.0527415
-0.0533859
-0.0512972
-0.0501471
-0.0483666
-0.0455513
-0.0417078
-0.0375997
-0.0340695
-0.0305697
-0.0282285
-0.0270636
-0.0240632
-0.0204292
-0.0172622
-0.0138868
-0.0102915
-0.00600196
-0.00216406
0.0026743
0.00678278
0.009935
0.0122731
0.0134201
0.0136346
0.0132033
0.0126936
0.0122581
0.0115889
0.0110222
0.0106795
0.0103181
0.00999378
0.00972802
0.00933252
0.00882355
0.0083305
0.00792276
0.00747925
0.00699697
0.00655058
0.00618252
0.00591903
0.00575096
0.00563538
0.00556255
0.00548937
0.00541608
0.00520824
0.00508133
0.00493931
0.00479091
0.00466312
0.00455152
0.00446694
0.00439654
0.00435511
0.00432793
0.00431674
0.00434297
0.00437402
0.00441756
0.0044212
0.00438789
0.00426506
0.00403764
0.00369641
0.00321181
0.00250608
0.00147868
0.000266814
-0.000944969
-0.00185071
-0.00232615
-0.00278946
-0.00357398
-0.00485026
-0.00667127
-0.00872353
-0.0114022
-0.0141371
-0.0170923
-0.0198629
-0.0221314
-0.0244865
-0.0262054
-0.028093
-0.0298103
-0.0304647
-0.0311582
-0.0320148
-0.0325523
-0.0332951
-0.0335997
-0.0338288
-0.0329808
-0.0311828
-0.0286861
-0.0251161
-0.0205556
-0.0150304
-0.00935904
-0.00382098
0.000982847
0.0050556
0.00809278
0.0104485
0.0121987
0.0136364
0.0146964
0.0151881
0.0151171
0.0146226
0.0139203
0.0131778
0.0123412
0.0114378
0.0105453
0.00974653
0.00903358
0.00840699
0.00788484
0.00731634
0.00659336
0.00570746
0.00477556
0.00390568
0.00316364
0.00262029
0.00233313
0.00227956
0.00226621
0.0022664
0.00217157
0.00196931
0.00171691
0.00145208
0.00126393
0.00118688
0.00128511
0.00155388
0.00200098
0.00257556
0.0031175
0.00347549
0.00348118
0.00315829
0.00264456
0.00207943
0.00169139
0.00138614
0.00133457
0.00107057
0.000756274
4.15533e-05
-0.000671519
-0.00153478
-0.00222475
-0.00301118
-0.0038913
-0.00479821
-0.00550054
-0.00567376
-0.00584926
-0.00692704
-0.00938167
-0.013194
-0.017885
-0.0228349
-0.0276904
-0.0324283
-0.0369284
-0.0406713
-0.0430213
-0.0431938
-0.0413528
-0.0396134
-0.0376364
-0.0352876
-0.0325833
-0.0297982
-0.0269102
-0.0238849
-0.0201938
-0.0145425
-0.00612897
0.00186242
0.00849916
0.0127822
0.0151812
0.0157583
0.0152487
0.0141471
0.0133735
0.013305
0.0137335
0.0142972
0.0143427
0.0133226
0.0107889
0.00682934
0.00281637
0.00120045
0.00193102
0.00379125
0.00541382
0.00604031
0.00558066
0.00439853
0.00284918
0.00139215
0.000458282
0.000121493
0.000367945
0.00117852
0.00240643
0.00376054
0.00486786
0.00561789
0.00591727
0.00605236
0.00597339
0.0057059
0.00516962
0.00443896
0.00372097
0.00315712
0.00287026
0.00278234
0.00282686
0.00275929
0.00318912
0.00433712
0.00533379
0.00593332
0.00635401
0.00664669
0.00731952
0.00757601
0.00756595
0.00720118
0.00623325
0.00505032
0.00260691
-0.000834148
-0.00488504
-0.0100485
-0.0155867
-0.0216274
-0.0288886
-0.038457
-0.0456252
-0.052532
-0.0556966
-0.0555658
-0.0511906
-0.0464956
-0.040923
-0.0351358
-0.0274526
-0.0207579
-0.0147641
-0.00374912
0.0120303
0.0261439
0.0415093
0.0550179
0.06906
0.080668
0.0906737
0.0987553
0.103079
0.103313
0.105313
0.107503
0.105857
0.103609
0.100024
0.0958937
0.0918979
0.0877785
0.083333
0.0785088
0.0739553
0.0701306
0.0670307
0.0641117
0.0613934
0.0589009
0.0565916
0.0544372
0.0523407
0.0502562
0.0480822
0.0456716
0.0428531
0.0393933
0.0351536
0.0301132
0.0242492
0.0175508
0.0100525
0.00190831
-0.00647364
-0.014377
-0.0207557
-0.0243525
0.125724
0.121619
0.112968
0.101471
0.0889525
0.0765125
0.064758
0.0540379
0.0445576
0.0364081
0.0295746
0.0239293
0.0192552
0.0153452
0.0120262
0.009149
0.00659473
0.00411931
0.00169471
-0.00069407
-0.0029229
-0.00494638
-0.00676458
-0.00839883
-0.00985976
-0.0111565
-0.0123004
-0.0133122
-0.0142469
-0.0151773
-0.0160797
-0.0169537
-0.0177527
-0.0183544
-0.0189805
-0.0195888
-0.020464
-0.0216793
-0.0226231
-0.0237819
-0.0254287
-0.0262851
-0.02773
-0.0300968
-0.0309848
-0.0338472
-0.0362338
-0.0373772
-0.0410532
-0.0410276
-0.0414611
-0.0416887
-0.0395545
-0.0379115
-0.035656
-0.0327273
-0.0290708
-0.0253984
-0.0221838
-0.0191536
-0.0187142
-0.016895
-0.0147531
-0.0123547
-0.0101442
-0.00788641
-0.00535988
-0.00305867
-0.000924789
0.00186751
0.00460938
0.00649955
0.00786076
0.00854124
0.00860225
0.00828031
0.00792341
0.00760084
0.00715062
0.00677214
0.00652815
0.00628535
0.00606708
0.00588439
0.00563077
0.00531916
0.00501562
0.00476399
0.00449351
0.00420264
0.00393414
0.00371254
0.00355405
0.0034525
0.00338341
0.00334062
0.00330117
0.00328256
0.00318751
0.00308698
0.0029891
0.002886
0.00279492
0.00270914
0.00264312
0.00258047
0.00253662
0.00249696
0.00245727
0.00243357
0.0023937
0.0023463
0.00225373
0.00211645
0.00189093
0.00156265
0.00111819
0.000532083
-0.000239895
-0.0012586
-0.00238147
-0.00346964
-0.00428379
-0.00477583
-0.00533127
-0.00615496
-0.0073731
-0.0090324
-0.0107889
-0.0130296
-0.015123
-0.0173009
-0.0190182
-0.0203674
-0.0216114
-0.0220939
-0.0227072
-0.0230564
-0.0225624
-0.0221733
-0.0217222
-0.0211666
-0.0208014
-0.0202651
-0.020224
-0.0197103
-0.0186387
-0.0171428
-0.015005
-0.0122758
-0.00898543
-0.00559881
-0.00229785
0.000574702
0.00300111
0.00483619
0.00624626
0.00730337
0.00816507
0.00880991
0.00911017
0.00906696
0.0087771
0.00835614
0.00790953
0.00740557
0.00686555
0.0063285
0.00585009
0.00542194
0.00504678
0.00473366
0.00439189
0.00395806
0.00342724
0.00286858
0.00234682
0.00190267
0.00157726
0.00140436
0.00137327
0.00138739
0.00137461
0.00130674
0.00116387
0.000983804
0.000798439
0.000662326
0.00060336
0.000650094
0.000792932
0.00103703
0.00133321
0.00156571
0.00163717
0.00143704
0.00100042
0.000424685
-0.000195603
-0.000696769
-0.00117974
-0.00148882
-0.001997
-0.00250667
-0.00332024
-0.00405633
-0.00489336
-0.0055291
-0.00622615
-0.00689875
-0.00749774
-0.00796341
-0.00813687
-0.00860518
-0.00989649
-0.0121897
-0.0152915
-0.0186656
-0.0217976
-0.0245896
-0.0270128
-0.0289725
-0.030122
-0.0300046
-0.0281021
-0.0252966
-0.0237653
-0.0225662
-0.0211666
-0.0195441
-0.0178576
-0.0161104
-0.0142816
-0.0120717
-0.00866723
-0.00366776
0.00110317
0.00507477
0.00764166
0.00909679
0.0094519
0.00915712
0.0085024
0.00804102
0.00799759
0.00826094
0.00861124
0.00864123
0.00801669
0.00647856
0.00410366
0.00173363
0.000770548
0.00118662
0.00227435
0.00323998
0.00362098
0.00335288
0.00265251
0.00169446
0.000810431
0.000272885
8.86267e-05
0.000235276
0.00071768
0.0014477
0.00225492
0.0029181
0.00337384
0.00368286
0.00372245
0.00363922
0.00342671
0.00301785
0.0024638
0.00189682
0.00140952
0.00111247
0.000980053
0.000979817
0.000992504
0.0014089
0.00227957
0.00295141
0.00338455
0.0036418
0.00386815
0.00437101
0.00458708
0.00460112
0.0043158
0.00357299
0.00261737
0.000545999
-0.00232178
-0.00569653
-0.00995329
-0.0145803
-0.0196606
-0.0252892
-0.0318698
-0.0368214
-0.0403198
-0.0412096
-0.0395842
-0.0353268
-0.0312135
-0.0266319
-0.0221835
-0.0178296
-0.01349
-0.00957026
-0.00226773
0.00787961
0.0169394
0.0261707
0.0345449
0.0432139
0.0504418
0.0565641
0.0617299
0.0645307
0.0640301
0.0651626
0.0666434
0.0656059
0.0641324
0.0618585
0.0592518
0.0567243
0.0541261
0.0513508
0.048367
0.0455547
0.0431988
0.0412872
0.0395004
0.0378396
0.0363159
0.0349005
0.0335799
0.032296
0.0310178
0.0296822
0.0281914
0.0264464
0.0243034
0.0216723
0.0185411
0.0149038
0.01076
0.00613925
0.00114561
-0.00397252
-0.00876465
-0.0125803
-0.0146623
0.0426556
0.0425939
0.0407209
0.0375396
0.0336905
0.0296023
0.0255395
0.0216824
0.0181556
0.015038
0.0123608
0.0101008
0.00819125
0.00656252
0.00515363
0.00390861
0.00277297
0.00163918
0.000522203
-0.000616133
-0.00170039
-0.00271593
-0.00366119
-0.00454382
-0.00536805
-0.00613757
-0.00686114
-0.00755289
-0.00824093
-0.00895583
-0.00966891
-0.0103822
-0.0110841
-0.0117066
-0.0124021
-0.0130965
-0.0139689
-0.0150578
-0.0160233
-0.0172051
-0.0186716
-0.0196909
-0.0214029
-0.0235471
-0.0246236
-0.0270994
-0.0288418
-0.0299249
-0.0324752
-0.0323764
-0.0321109
-0.0315586
-0.029198
-0.0268943
-0.0238789
-0.0204552
-0.0167087
-0.0132249
-0.0101421
-0.00748486
-0.00728027
-0.00549981
-0.00428244
-0.00315874
-0.00214778
-0.0012426
-0.000257936
0.000415194
0.0010613
0.00187359
0.0026798
0.00317285
0.00348795
0.00358022
0.0034758
0.00325592
0.00304232
0.00285114
0.00263396
0.00245419
0.00232773
0.0022121
0.00211022
0.00202569
0.00192253
0.00180619
0.00169532
0.00160348
0.00150781
0.00140771
0.00131594
0.00124017
0.00118645
0.00115237
0.00112938
0.00111569
0.00110716
0.00114435
0.00108437
0.00103938
0.000991437
0.000935856
0.000880945
0.000822779
0.000772132
0.000715763
0.000666168
0.000606436
0.000532674
0.00045219
0.000332288
0.000184781
-1.70111e-05
-0.000271622
-0.000615834
-0.00106144
-0.00162939
-0.00233731
-0.00319494
-0.00422333
-0.0052648
-0.00624323
-0.00696884
-0.00747394
-0.00812485
-0.00899308
-0.0101574
-0.0116577
-0.013082
-0.0148597
-0.0162242
-0.017537
-0.0181103
-0.0183271
-0.0183007
-0.0173965
-0.0167117
-0.0156183
-0.0139582
-0.0125784
-0.010878
-0.00932131
-0.00802635
-0.00689864
-0.00670617
-0.00653091
-0.00617914
-0.00568695
-0.00497759
-0.00406858
-0.0029835
-0.00186233
-0.000768887
0.000177486
0.000984181
0.00160332
0.00207172
0.00242601
0.00271846
0.0029403
0.00304562
0.00303374
0.00293494
0.00279054
0.00264009
0.00247134
0.00229085
0.00211184
0.00195219
0.00180956
0.00168506
0.00158002
0.00146576
0.00132106
0.00114409
0.00095766
0.000783638
0.000635957
0.000528726
0.000472114
0.000467796
0.000483488
0.000464621
0.000418619
0.000332261
0.000228821
0.00012291
4.21186e-05
-6.36533e-06
-1.38594e-05
-6.15281e-06
1.9953e-05
2.01286e-05
-7.20031e-05
-0.000306739
-0.000731562
-0.00130039
-0.00195464
-0.00264866
-0.00327854
-0.00396515
-0.00455161
-0.00534011
-0.00606586
-0.00701171
-0.00777408
-0.00862528
-0.00922982
-0.00983659
-0.0102576
-0.0104981
-0.0107131
-0.0108719
-0.0116326
-0.0131621
-0.0153027
-0.0176453
-0.0195753
-0.0206564
-0.0211252
-0.0209615
-0.0201453
-0.0185929
-0.0159725
-0.0122764
-0.00894967
-0.00791006
-0.00752419
-0.00706114
-0.00651846
-0.00594089
-0.0053491
-0.00473763
-0.00401481
-0.00289374
-0.00121968
0.000362473
0.00167535
0.00253431
0.00303453
0.00315831
0.00306463
0.00284352
0.00268788
0.00267723
0.00277659
0.00289751
0.00290238
0.00268608
0.00216393
0.00137217
0.000592396
0.000273417
0.000404449
0.00075779
0.00107892
0.00120859
0.00112202
0.000887704
0.000518692
0.00020552
6.29603e-05
3.3244e-05
8.38517e-05
0.000243729
0.000486498
0.000755272
0.000974651
0.00112804
0.00124384
0.00125423
0.0011798
0.0010167
0.000728288
0.000326724
-0.000111055
-0.000523202
-0.00082612
-0.00100949
-0.00107609
-0.00102081
-0.000655241
-0.000113642
0.000194
0.000407057
0.000463698
0.000515302
0.000790072
0.000906062
0.000923171
0.000596832
-0.000119671
-0.00107819
-0.00294172
-0.00521746
-0.00797584
-0.0115558
-0.0152625
-0.0192919
-0.023151
-0.026541
-0.0290561
-0.0293645
-0.0276691
-0.0244982
-0.0203907
-0.0165874
-0.01265
-0.0092231
-0.00746771
-0.00392582
-0.00112345
0.00308216
0.00815791
0.0126868
0.0170598
0.0209683
0.0248319
0.0281128
0.0307834
0.032924
0.0340761
0.0339722
0.0342002
0.034338
0.0335746
0.032569
0.0311863
0.0296682
0.028174
0.0266483
0.0250798
0.0234779
0.021997
0.0207411
0.0196742
0.0186762
0.0177444
0.0168773
0.0160564
0.0152834
0.0145346
0.0137925
0.0130276
0.0122002
0.0112712
0.0101874
0.00892235
0.00748202
0.00587833
0.00412643
0.00225466
0.000321856
-0.00156953
-0.00324517
-0.00447261
-0.00501434
)
;
boundaryField
{
inlet
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
outlet
{
type zeroGradient;
}
atmosphere
{
type totalPressure;
rho none;
psi none;
gamma 1;
p0 uniform 0;
value nonuniform List<scalar>
357
(
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-4.95705e-06
-2.10642e-05
-4.88229e-05
-8.87322e-05
-0.000141591
-0.000208382
-0.000290299
-0.000389723
-0.000510183
-0.000657077
-0.000836479
-0.00104479
-0.00128545
-0.00156227
-0.00186255
-0.00222848
-0.00263244
-0.0031319
-0.00376982
-0.00441953
-0.00522582
-0.00620424
-0.00712728
-0.00826975
-0.00975641
-0.0108091
-0.0126276
-0.0139446
-0.0149742
-0.0168059
-0.0171246
-0.0170961
-0.0168136
-0.0153368
-0.0137171
-0.0114794
-0.00897586
-0.0062879
-0.00390559
-0.00194001
-0.000565625
-1.26849e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-9.03399e-07
-1.30664e-05
-3.7404e-05
-7.27262e-05
-0.000111647
-0.000160796
-0.000204654
-0.000263218
-0.000318956
-0.000392688
-0.000492387
-0.000612242
-0.000786602
-0.00099914
-0.00127365
-0.00160782
-0.00203759
-0.00257192
-0.00323567
-0.00404004
-0.00497382
-0.00602871
-0.00703227
-0.0079425
-0.00860183
-0.00912039
-0.00985147
-0.0107649
-0.0118913
-0.0132982
-0.0144851
-0.0159739
-0.016858
-0.0176641
-0.017475
-0.0169561
-0.016121
-0.0144032
-0.0130616
-0.0111241
-0.00890383
-0.00708
-0.00483371
-0.00291878
-0.00135819
-0.000182864
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-2.44312e-07
-1.10951e-05
-4.37281e-05
-0.000101431
-0.000169138
-0.000235792
-0.000287511
-0.000332596
-0.000369219
-0.000434921
-0.000529459
-0.000692382
-0.000964815
-0.00138
-0.00194501
-0.0026129
-0.00333387
-0.00409403
-0.00481211
-0.00563717
-0.00639461
-0.00736864
-0.00823386
-0.00927969
-0.0100611
-0.0109212
-0.0114828
-0.012023
-0.0122608
-0.0122823
-0.012355
-0.0125445
-0.0134913
-0.0151795
-0.017213
-0.0190452
-0.0200906
-0.0198861
-0.0189147
-0.0171876
-0.0148039
-0.0118257
-0.00791379
-0.0037257
-0.000617328
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-6.50282e-06
-8.33917e-05
-0.000108114
-5.10074e-05
-1.95225e-06
0
0
0
0
0
0
0
-1.99162e-05
-9.60593e-05
-0.000237769
-0.000475176
-0.000794298
-0.00114501
-0.00146696
-0.00172461
-0.00191908
-0.0019904
-0.00189663
-0.00154762
-0.00116195
-0.00103145
-0.000919888
-0.000952008
-0.000972608
-0.000782941
-0.0006901
-0.000671326
-0.000927745
-0.00143142
-0.00215306
-0.00353919
-0.0050544
-0.00691284
-0.00936323
-0.0117074
-0.0141625
-0.0160525
-0.0170019
-0.0175376
-0.0160819
-0.0134214
-0.0101953
-0.00703146
-0.00428396
-0.00200198
-0.000638116
-1.43463e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-2.95859e-06
-1.07044e-05
-1.84073e-05
-2.1396e-05
)
;
}
frontBack
{
type empty;
}
}
// ************************************************************************* //
|
|
b063c9139d0830423fa94674de55a2fe73b91e2b
|
50fade5bebf7ed89d151fcdce6dd82ac6c11ff3a
|
/Overdrive/render/vertexarray.cpp
|
8200241bc95c4b4ec6d737a9a1f9ca021aed2f64
|
[
"MIT"
] |
permissive
|
truongascii/Overdrive
|
bfd754357a46ac0cb753646f9f38f3d2581d84ce
|
5dba4e3d29076e68a9036f6b5175fc78a65b0210
|
refs/heads/master
| 2020-12-30T22:45:28.683533
| 2014-11-09T19:44:58
| 2014-11-09T19:44:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,148
|
cpp
|
vertexarray.cpp
|
#include "render/vertexarray.h"
namespace overdrive {
namespace render {
VertexArray::VertexArray():
mHandle(0)
{
glGenVertexArrays(1, &mHandle);
}
VertexArray::~VertexArray() {
if (mHandle)
glDeleteVertexArrays(1, &mHandle);
}
GLuint VertexArray::getHandle() const {
return mHandle;
}
void VertexArray::bindAttribute(
GLuint location,
const VertexBuffer& buffer,
eElementType type,
GLint numElements,
GLsizei stride,
const GLvoid* offset
) {
glBindVertexArray(mHandle);
glBindBuffer(GL_ARRAY_BUFFER, buffer.getHandle());
glEnableVertexAttribArray(location);
glVertexAttribPointer(
location,
numElements,
static_cast<GLenum>(type),
GL_FALSE,
stride,
offset
);
}
void VertexArray::bindElements(const VertexBuffer& elements) {
glBindVertexArray(mHandle);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, elements.getHandle());
}
void VertexArray::bindTransformFeedback(
GLuint index,
const VertexBuffer& buffer
) {
glBindVertexArray(mHandle);
glBindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, index, buffer.getHandle());
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.