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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0eb79c5f24f453a1acccc471162331b3dbe2cad5
|
5637c3e1214650e3c95d5a882c3e30498219ece6
|
/GameEngine/GameEngine/ForceComponent.cpp
|
62386be320244d5b74a17a3ce7d77d35bf1901ec
|
[] |
no_license
|
JacobGathof/GameEngine
|
2e1ff8fbf2cebc46c789cb99cdbd317e0e97a7c1
|
1de135464dfa7ff48158aa5038274a499634b140
|
refs/heads/master
| 2020-03-28T16:10:59.829536
| 2018-09-13T17:53:54
| 2018-09-13T17:53:54
| 148,667,681
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 739
|
cpp
|
ForceComponent.cpp
|
#include "ForceComponent.h"
#include "Object.h"
ForceComponent ForceComponent::comp;
ForceComponent::ForceComponent()
{
}
ForceComponent::~ForceComponent()
{
for (auto f : forces) {
delete f;
}
}
ForceComponent * ForceComponent::getComponent()
{
return ∁
}
bool ForceComponent::update(float dt)
{
parent->pos += getTotalForce().value * dt;
for (int i = 0; i < forces.size(); i++) {
Force* f = forces[i];
if (!f->update(dt)) {
forces.remove(f);
delete f;
i--;
}
}
return true;
}
void ForceComponent::addForce(Force * f)
{
forces.add(f);
}
Force ForceComponent::getTotalForce()
{
Force sum(Vector2f(0,0));
for (auto f : forces) {
sum.value += f->value;
}
sum.value / forces.size();
return sum;
}
|
a86ca435789ab5f922f334f7f7432e8b219476d4
|
a9c12a1da0794eaf9a1d1f37ab5c404e3b95e4ec
|
/XTServer/XTTradeServiceFactory.cpp
|
112709146a4cd04a1bb0094a863a23fb843dc689
|
[] |
no_license
|
shzdtech/FutureXPlatform
|
37d395511d603a9e92191f55b8f8a6d60e4095d6
|
734cfc3c3d2026d60361874001fc20f00e8bb038
|
refs/heads/master
| 2021-03-30T17:49:22.010954
| 2018-06-19T13:21:53
| 2018-06-19T13:21:53
| 56,828,437
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,140
|
cpp
|
XTTradeServiceFactory.cpp
|
/***********************************************************************
* Module: XTTradeServiceFactory.cpp
* Author: milk
* Modified: 2015年3月8日 13:42:10
* Purpose: Implementation of the class XTTradeServiceFactory
***********************************************************************/
#include "XTTradeServiceFactory.h"
#include "XTTradeProcessor.h"
#include "XTTradeWorkerProcessor.h"
#include "../CTPServer/ctp_bizhandlers.h"
#include "xt_bizhandlers.h"
#include "XTConstant.h"
#include "../message/EchoMessageHandler.h"
#include "../message/EchoMessageSerializer.h"
#include "../message/DefMessageID.h"
#include "../message/MessageUtility.h"
#include "../configuration/AbstractConfigReaderFactory.h"
#include "../dataserializer/AbstractDataSerializerFactory.h"
////////////////////////////////////////////////////////////////////////
// Name: XTTradeServiceFactory::CreateMessageHandlers()
// Purpose: Implementation of XTTradeServiceFactory::CreateMessageHandlers()
// Return: std::map<uint, IMessageHandler_Ptr>
////////////////////////////////////////////////////////////////////////
std::map<uint, IMessageHandler_Ptr> XTTradeServiceFactory::CreateMessageHandlers(IServerContext* serverCtx)
{
std::map<uint, IMessageHandler_Ptr> msg_hdl_map;
msg_hdl_map[MSG_ID_ECHO] = std::make_shared<EchoMessageHandler>();
msg_hdl_map[MSG_ID_LOGIN] = std::make_shared<XTTradeLoginHandler>();
msg_hdl_map[MSG_ID_QUERY_ACCOUNT_INFO] = std::make_shared<XTQueryAccountInfo>();
msg_hdl_map[MSG_ID_ORDER_NEW] = std::make_shared<XTNewOrder>();
msg_hdl_map[MSG_ID_ORDER_CANCEL] = std::make_shared<XTCancelOrder>();
msg_hdl_map[MSG_ID_QUERY_ORDER] = std::make_shared<XTQueryOrder>();
msg_hdl_map[MSG_ID_ORDER_UPDATE] = std::make_shared<XTOrderUpdated>();
msg_hdl_map[MSG_ID_QUERY_POSITION] = std::make_shared<XTQueryPosition>();
msg_hdl_map[MSG_ID_POSITION_UPDATED] = std::make_shared<XTPositionUpdated>();
msg_hdl_map[MSG_ID_QUERY_TRADE] = std::make_shared<XTQueryTrade>();
msg_hdl_map[MSG_ID_TRADE_RTN] = std::make_shared<XTTradeUpdated>();
msg_hdl_map[MSG_ID_QUERY_POSITION_DIFFER] = std::make_shared<CTPQueryPositionDiffer>();
msg_hdl_map[MSG_ID_SYNC_POSITION] = std::make_shared<CTPSyncPositionDiffer>();
msg_hdl_map[MSG_ID_ADD_MANUAL_TRADE] = std::make_shared<CTPAddManualTrade>();
msg_hdl_map[MSG_ID_QUERY_TRADE_DIFFER] = std::make_shared<CTPQueryTradeDiff>();
msg_hdl_map[MSG_ID_SYNC_TRADE] = std::make_shared<CTPSyncTrade>();
msg_hdl_map[MSG_ID_QUERY_POSITIONPNL] = std::make_shared<CTPQueryPositionPnL>();
return msg_hdl_map;
}
////////////////////////////////////////////////////////////////////////
// Name: XTTradeServiceFactory::CreateDataSerializers()
// Purpose: Implementation of XTTradeServiceFactory::CreateDataSerializers()
// Return: std::map<uint, IDataSerializer_Ptr>
////////////////////////////////////////////////////////////////////////
std::map<uint, IDataSerializer_Ptr> XTTradeServiceFactory::CreateDataSerializers(IServerContext* serverCtx)
{
std::map<uint, IDataSerializer_Ptr> ret;
AbstractDataSerializerFactory::Instance()->CreateDataSerializers(ret);
return ret;
}
////////////////////////////////////////////////////////////////////////
// Name: XTTradeServiceFactory::CreateMessageProcessor()
// Purpose: Implementation of XTTradeServiceFactory::CreateMessageProcessor()
// Return: IMessageProcessor_Ptr
////////////////////////////////////////////////////////////////////////
IMessageProcessor_Ptr XTTradeServiceFactory::CreateMessageProcessor(IServerContext* serverCtx)
{
auto ret = std::make_shared<XTTradeProcessor>();
ret->Initialize(serverCtx);
return ret;
}
IMessageProcessor_Ptr XTTradeServiceFactory::CreateWorkerProcessor(IServerContext* serverCtx)
{
if (!serverCtx->getWorkerProcessor())
{
auto worker_ptr = std::make_shared<XTTradeWorkerProcessor>(serverCtx);
ManualOpHub::Instance()->addListener(worker_ptr);
worker_ptr->Initialize(serverCtx);
serverCtx->setWorkerProcessor(worker_ptr);
serverCtx->setSubTypeWorkerPtr(worker_ptr.get());
}
return serverCtx->getWorkerProcessor();
}
|
eeb7ffa063f3c551b3f4abd0b2fd0ade677cea57
|
587e228aa2069010c5f65d9b767153aa8aeae558
|
/LCLaser/src/display/drawSlice.h
|
87fc369c19610fe369f5ada9eca5c14e521b620d
|
[] |
no_license
|
zb939938758/RPLaser
|
f17347866e51fd7436ce6f6c5869c01456cea9df
|
dc15c34466242ab06e2d20492710e515a7f540d8
|
refs/heads/master
| 2020-04-01T20:07:44.020559
| 2018-10-18T08:33:17
| 2018-10-18T08:33:17
| 153,589,710
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 941
|
h
|
drawSlice.h
|
/***************************************************************************
drawSlice.h - description
-------------------
begin : Jun. 3 2015
copyright : (C) 2015 by XI'AN JIAOTONG UNIVERSITY
author : Cui Bin
***************************************************************************/
#ifndef DRAW_SLICE_H
#define DRAW_SLICE_H
#include "draw.h"
namespace RenderRP
{
class RPDrawSlice:public RPdraw
{
public:
RPDrawSlice();
RPDrawSlice(DataRP::RPData *rpdata);
virtual ~RPDrawSlice();
virtual void draw();
protected:
void drawCutPlane();
void drawBoundaries(DataRP::RPslice slice);
void drawPaths(int currentlayer);
void drawPathOutline();
void drawPathParallel();
void drawAABB();
private:
};
}
#endif // DRAW_SLICE_H
|
c54e0006481da5f63a6e9dc65829971d3b7d4818
|
ba15ea732d860cd1f699c4754a8ea1f0a7da9732
|
/p112.cpp
|
9f4bd15255207d0c25b97de510da50bf545308df
|
[] |
no_license
|
kbukin1/euler
|
dfcd5339d7e5574fd20f748e02643ba969dbe574
|
8a181fbcd9ab4d85250182e289f28f45deabc467
|
refs/heads/master
| 2020-12-25T17:37:23.509555
| 2016-09-09T01:19:54
| 2016-09-09T01:19:54
| 24,296,228
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,155
|
cpp
|
p112.cpp
|
#include <iostream>
#include <string.h>
#include <stdio.h>
typedef unsigned long long Int;
//typedef int Int;
bool is_bouncy(Int n) {
char s[12];
sprintf(s, "%llu", n);
Int size = strlen(s);
bool inc = true;
for (Int i = 0; i < (size-1); ++i) {
if (s[i] > s[i+1]) {
inc = false;
break;
}
}
if (inc)
return false;
bool dec = true;
for (Int i = 0; i < (size-1); ++i) {
if (s[i] < s[i+1]) {
dec = false;
break;
}
}
if (dec)
return false;
return true;
}
int main() {
Int b = 0;
// for (Int i = 1; i < 21782; ++i) {
for (Int i = 1; i < 100000000; ++i) {
if (is_bouncy(i))
b++;
if (b != 0) {
#if 0
// std::cout << double(b)/double(i) << std::endl;
std::cout << b << "/" << i << std::endl;
if ((i / b == 9) && (i % b == 0)) {
std::cout << i << std::endl;
}
#endif
if (double(b)/double(i) == .99) {
std::cout << i << std::endl;
}
}
}
return 0;
}
|
656b3fa0b1ab5ba87e3f8ce16e9f267f6b02d3b3
|
fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd
|
/chrome/browser/background_fetch/background_fetch_delegate_impl.cc
|
7714df33ff5e89ed3d1795d2af57c982160c7e17
|
[
"BSD-3-Clause"
] |
permissive
|
wzyy2/chromium-browser
|
2644b0daf58f8b3caee8a6c09a2b448b2dfe059c
|
eb905f00a0f7e141e8d6c89be8fb26192a88c4b7
|
refs/heads/master
| 2022-11-23T20:25:08.120045
| 2018-01-16T06:41:26
| 2018-01-16T06:41:26
| 117,618,467
| 3
| 2
|
BSD-3-Clause
| 2022-11-20T22:03:57
| 2018-01-16T02:09:10
| null |
UTF-8
|
C++
| false
| false
| 5,000
|
cc
|
background_fetch_delegate_impl.cc
|
// Copyright 2017 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.
#include "chrome/browser/background_fetch/background_fetch_delegate_impl.h"
#include <utility>
#include "base/bind.h"
#include "base/guid.h"
#include "base/strings/string_util.h"
#include "chrome/browser/download/download_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "components/download/public/download_params.h"
#include "components/download/public/download_service.h"
#include "content/public/browser/background_fetch_response.h"
#include "content/public/browser/browser_thread.h"
BackgroundFetchDelegateImpl::BackgroundFetchDelegateImpl(Profile* profile)
: download_service_(
DownloadServiceFactory::GetInstance()->GetForBrowserContext(profile)),
weak_ptr_factory_(this) {}
BackgroundFetchDelegateImpl::~BackgroundFetchDelegateImpl() {}
void BackgroundFetchDelegateImpl::Shutdown() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
if (client()) {
client()->OnDelegateShutdown();
}
}
void BackgroundFetchDelegateImpl::DownloadUrl(
const std::string& guid,
const std::string& method,
const GURL& url,
const net::NetworkTrafficAnnotationTag& traffic_annotation,
const net::HttpRequestHeaders& headers) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
download::DownloadParams params;
params.guid = guid;
params.client = download::DownloadClient::BACKGROUND_FETCH;
params.request_params.method = method;
params.request_params.url = url;
params.request_params.request_headers = headers;
params.callback = base::Bind(&BackgroundFetchDelegateImpl::OnDownloadReceived,
weak_ptr_factory_.GetWeakPtr());
params.traffic_annotation =
net::MutableNetworkTrafficAnnotationTag(traffic_annotation);
download_service_->StartDownload(params);
}
void BackgroundFetchDelegateImpl::OnDownloadStarted(
const std::string& guid,
std::unique_ptr<content::BackgroundFetchResponse> response) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
if (client())
client()->OnDownloadStarted(guid, std::move(response));
}
void BackgroundFetchDelegateImpl::OnDownloadUpdated(const std::string& guid,
uint64_t bytes_downloaded) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
if (client())
client()->OnDownloadUpdated(guid, bytes_downloaded);
}
void BackgroundFetchDelegateImpl::OnDownloadFailed(
const std::string& guid,
download::Client::FailureReason reason) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
using FailureReason = content::BackgroundFetchDelegate::FailureReason;
FailureReason failure_reason;
switch (reason) {
case download::Client::FailureReason::NETWORK:
failure_reason = FailureReason::NETWORK;
break;
case download::Client::FailureReason::TIMEDOUT:
failure_reason = FailureReason::TIMEDOUT;
break;
case download::Client::FailureReason::UNKNOWN:
failure_reason = FailureReason::UNKNOWN;
break;
case download::Client::FailureReason::ABORTED:
case download::Client::FailureReason::CANCELLED:
// The client cancelled or aborted it so no need to notify it.
return;
default:
NOTREACHED();
return;
}
if (client())
client()->OnDownloadFailed(guid, failure_reason);
}
void BackgroundFetchDelegateImpl::OnDownloadSucceeded(
const std::string& guid,
const base::FilePath& path,
uint64_t size) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
if (client()) {
client()->OnDownloadComplete(
guid, std::make_unique<content::BackgroundFetchResult>(
base::Time::Now(), path, size));
}
}
void BackgroundFetchDelegateImpl::OnDownloadReceived(
const std::string& guid,
download::DownloadParams::StartResult result) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
using StartResult = download::DownloadParams::StartResult;
switch (result) {
case StartResult::ACCEPTED:
// Nothing to do.
break;
case StartResult::BACKOFF:
// TODO(delphick): try again later?
// TODO(delphick): Due to a bug at the moment, this happens all the time
// because successful downloads are not removed, so don't NOTREACHED.
break;
case StartResult::UNEXPECTED_CLIENT:
// This really should never happen since we're supplying the
// DownloadClient.
NOTREACHED();
case StartResult::UNEXPECTED_GUID:
// TODO(delphick): try again with a different GUID.
NOTREACHED();
case StartResult::CLIENT_CANCELLED:
// TODO(delphick): do we need to do anything here, since we will have
// cancelled it?
break;
case StartResult::INTERNAL_ERROR:
// TODO(delphick): We need to handle this gracefully.
NOTREACHED();
case StartResult::COUNT:
NOTREACHED();
}
}
|
4b9df3b9dfd3f00c5f1b3c04589c0c9b57f94ece
|
820b6af9fd43b270749224bb278e5f714f655ac9
|
/Filters/Modeling/vtkLinearCellExtrusionFilter.cxx
|
81690502ae6aed89714b0a7a53dd51a9a7104812
|
[
"BSD-3-Clause"
] |
permissive
|
Kitware/VTK
|
49dee7d4f83401efce8826f1759cd5d9caa281d1
|
dd4138e17f1ed5dfe6ef1eab0ff6643fdc07e271
|
refs/heads/master
| 2023-09-01T10:21:57.496189
| 2023-09-01T08:20:15
| 2023-09-01T08:21:05
| 631,615
| 2,253
| 1,243
|
NOASSERTION
| 2023-09-14T07:53:03
| 2010-04-27T15:12:58
|
C++
|
UTF-8
|
C++
| false
| false
| 7,472
|
cxx
|
vtkLinearCellExtrusionFilter.cxx
|
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
// SPDX-License-Identifier: BSD-3-Clause
#include "vtkLinearCellExtrusionFilter.h"
#include "vtkCellArray.h"
#include "vtkCellArrayIterator.h"
#include "vtkCellData.h"
#include "vtkInformation.h"
#include "vtkMergePoints.h"
#include "vtkObjectFactory.h"
#include "vtkPolygon.h"
#include "vtkUnsignedCharArray.h"
#include "vtkUnstructuredGrid.h"
#include <array>
#include <vector>
VTK_ABI_NAMESPACE_BEGIN
vtkStandardNewMacro(vtkLinearCellExtrusionFilter);
//------------------------------------------------------------------------------
vtkLinearCellExtrusionFilter::vtkLinearCellExtrusionFilter()
{
// set default array
this->SetInputArrayToProcess(
0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_CELLS, vtkDataSetAttributes::SCALARS);
}
//------------------------------------------------------------------------------
int vtkLinearCellExtrusionFilter::RequestData(vtkInformation* vtkNotUsed(request),
vtkInformationVector** inputVector, vtkInformationVector* outputVector)
{
vtkPolyData* input = vtkPolyData::GetData(inputVector[0]);
vtkUnstructuredGrid* output = vtkUnstructuredGrid::GetData(outputVector);
vtkDataArray* array = this->GetInputArrayToProcess(0, inputVector);
vtkCellArray* polys = input->GetPolys();
vtkNew<vtkPoints> outputPoints;
outputPoints->DeepCopy(input->GetPoints());
output->SetPoints(outputPoints);
output->GetCellData()->ShallowCopy(input->GetCellData());
if (this->MergeDuplicatePoints)
{
this->CreateDefaultLocator();
this->Locator->SetDataSet(output);
this->Locator->InitPointInsertion(outputPoints, outputPoints->GetBounds());
for (vtkIdType i = 0; i < outputPoints->GetNumberOfPoints(); i++)
{
vtkIdType dummy;
this->Locator->InsertUniquePoint(outputPoints->GetPoint(i), dummy);
}
}
vtkDataArray* inputNormals = input->GetCellData()->GetNormals();
output->Allocate(polys->GetSize() * 2); // estimation
std::vector<std::array<double, 3>> topPoints;
std::vector<vtkIdType> polyhedronIds; // used for polyhedrons
vtkIdType cellId = 0;
auto iter = vtk::TakeSmartPointer(polys->NewIterator());
for (iter->GoToFirstCell(); !iter->IsDoneWithTraversal(); iter->GoToNextCell(), cellId++)
{
if (this->CheckAbort())
{
break;
}
vtkIdType cellSize;
const vtkIdType* cellPoints;
iter->GetCurrentCell(cellSize, cellPoints);
topPoints.resize(cellSize);
for (vtkIdType i = 0; i < cellSize; i++)
{
outputPoints->GetPoint(cellPoints[i], topPoints[i].data());
}
double normal[3];
if (this->UseUserVector)
{
normal[0] = this->UserVector[0];
normal[1] = this->UserVector[1];
normal[2] = this->UserVector[2];
}
else
{
if (inputNormals)
{
inputNormals->GetTuple(cellId, normal);
}
else
{
vtkPolygon::ComputeNormal(cellSize, topPoints[0].data(), normal);
}
}
// extrude
double currentValue = (array ? array->GetComponent(cellId, 0) : 1.0);
double scale = currentValue * this->ScaleFactor;
for (vtkIdType i = 0; i < cellSize; i++)
{
auto& p = topPoints[i];
p[0] += scale * normal[0];
p[1] += scale * normal[1];
p[2] += scale * normal[2];
}
if (cellSize == 3) // triangle => wedge
{
vtkIdType newPts[3];
if (this->MergeDuplicatePoints)
{
this->Locator->InsertUniquePoint(topPoints[0].data(), newPts[0]);
this->Locator->InsertUniquePoint(topPoints[1].data(), newPts[1]);
this->Locator->InsertUniquePoint(topPoints[2].data(), newPts[2]);
}
else
{
newPts[0] = outputPoints->InsertNextPoint(topPoints[0].data());
newPts[1] = outputPoints->InsertNextPoint(topPoints[1].data());
newPts[2] = outputPoints->InsertNextPoint(topPoints[2].data());
}
vtkIdType ptsId[6] = { cellPoints[2], cellPoints[1], cellPoints[0], newPts[2], newPts[1],
newPts[0] };
output->InsertNextCell(VTK_WEDGE, 6, ptsId);
}
else if (cellSize == 4) // quad => hexahedron
{
vtkIdType newPts[4];
if (this->MergeDuplicatePoints)
{
this->Locator->InsertUniquePoint(topPoints[0].data(), newPts[0]);
this->Locator->InsertUniquePoint(topPoints[1].data(), newPts[1]);
this->Locator->InsertUniquePoint(topPoints[2].data(), newPts[2]);
this->Locator->InsertUniquePoint(topPoints[3].data(), newPts[3]);
}
else
{
newPts[0] = outputPoints->InsertNextPoint(topPoints[0].data());
newPts[1] = outputPoints->InsertNextPoint(topPoints[1].data());
newPts[2] = outputPoints->InsertNextPoint(topPoints[2].data());
newPts[3] = outputPoints->InsertNextPoint(topPoints[3].data());
}
vtkIdType ptsId[8] = { cellPoints[3], cellPoints[2], cellPoints[1], cellPoints[0], newPts[3],
newPts[2], newPts[1], newPts[0] };
output->InsertNextCell(VTK_HEXAHEDRON, 8, ptsId);
}
else // generic case => polyhedron
{
polyhedronIds.resize(2 * (cellSize + 1) + cellSize * 5);
vtkIdType* topFace = polyhedronIds.data();
vtkIdType* baseFace = topFace + cellSize + 1;
topFace[0] = cellSize;
baseFace[0] = cellSize;
for (vtkIdType i = 0; i < cellSize; i++)
{
if (this->MergeDuplicatePoints)
{
this->Locator->InsertUniquePoint(topPoints[i].data(), topFace[i + 1]);
}
else
{
topFace[i + 1] = outputPoints->InsertNextPoint(topPoints[i].data());
}
baseFace[i + 1] = cellPoints[cellSize - i - 1];
}
for (vtkIdType i = 0; i < cellSize; i++)
{
vtkIdType* currentSide = polyhedronIds.data() + 2 * (cellSize + 1) + 5 * i;
currentSide[0] = 4;
currentSide[1] = topFace[1 + (i + 1) % cellSize];
currentSide[2] = topFace[1 + i];
currentSide[3] = cellPoints[i];
currentSide[4] = cellPoints[(i + 1) % cellSize];
}
output->InsertNextCell(VTK_POLYHEDRON, cellSize + 2, polyhedronIds.data());
if (cellId % 1000 == 0)
{
this->UpdateProgress(cellId / static_cast<double>(polys->GetNumberOfCells()));
}
}
}
output->Squeeze();
this->UpdateProgress(1.0);
return 1;
}
//------------------------------------------------------------------------------
void vtkLinearCellExtrusionFilter::CreateDefaultLocator()
{
if (!this->Locator)
{
this->Locator = vtkSmartPointer<vtkMergePoints>::New();
}
}
//------------------------------------------------------------------------------
void vtkLinearCellExtrusionFilter::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os, indent);
os << indent << "ScaleFactor: " << this->ScaleFactor << "\n"
<< indent << "UserVector: " << this->UserVector[0] << " " << this->UserVector[1] << " "
<< this->UserVector[2] << "\n"
<< indent << "UseUserVector: " << (this->UseUserVector ? "ON" : "OFF") << "\n"
<< indent << "MergeDuplicatePoints: " << (this->MergeDuplicatePoints ? "ON" : "OFF") << endl;
}
//------------------------------------------------------------------------------
int vtkLinearCellExtrusionFilter::FillOutputPortInformation(
int vtkNotUsed(port), vtkInformation* info)
{
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkUnstructuredGrid");
return 1;
}
VTK_ABI_NAMESPACE_END
|
eef54ca80dbd14a985dd2e9837c0e72048c278b9
|
cf78a9f38e15a1f3e422b30fe247e3907ffa5b8f
|
/ExceptionList.cpp
|
f0643c3f2ffa620f3d03b978364709d91856801f
|
[] |
no_license
|
xel23/StatisticsMultiset
|
35d9e99d07225dc5cccdd6226191fb59b8e8c599
|
3f67413a1dff67cbd365ad4bf4ce6579313456f7
|
refs/heads/master
| 2020-04-21T21:15:43.570979
| 2019-02-09T14:16:01
| 2019-02-09T14:16:01
| 169,873,196
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 241
|
cpp
|
ExceptionList.cpp
|
#include "ExceptionList.h"
ExceptionStatisticMultiset::ExceptionStatisticMultiset(const std::string & message) noexcept : text_error(message){}
const char * ExceptionStatisticMultiset::what() const noexcept
{
return text_error.c_str();
}
|
1fe76fef7ba2b244bd1529dee0cc18fecb17324f
|
3d1d4001591d611c34cd1ce9bd48ffcb83ad0773
|
/RubixCube/Output.hpp
|
be79196f7f49d1b0194a60a3a218353b84872924
|
[] |
no_license
|
JasonBonvie/Rubix-cube-solver-
|
d9a390695049b5cdc89bcae476d88b30940415b2
|
b7a23e51e807a903c30d50b0b2fe8f19ec3be62c
|
refs/heads/master
| 2021-06-12T19:55:28.271577
| 2017-04-18T17:37:01
| 2017-04-18T17:37:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 412
|
hpp
|
Output.hpp
|
#ifndef Output_H
#define Output_H
#include <string>
using namespace std;
class OutputNode {
public:
string color;
int dir;
void Print(void);
OutputNode* next;
OutputNode* previous;
OutputNode(void);
void Add(int dir);
};
class Output {
public:
bool liveAdd;
OutputNode* first;
OutputNode* last;
void Add(string color, int dir);
void RemoveLast(void);
Output(void);
};
#endif
|
972aef03c41dae4f7bb865bfa59051c72410bb60
|
eda2b5b80a7caff953ddabd69efbc62a15f49295
|
/HuboCan/HuboCanId.hpp
|
56f78d514cae294c6129af0b0f1f412ed4a15d03
|
[
"BSD-2-Clause"
] |
permissive
|
yeseuleee/HuboCan
|
75def37fd20e2e8f9b8019bc3ea2d7d4e680635f
|
eff17979148692359d6b81303fc0159723c958be
|
refs/heads/master
| 2020-05-16T15:35:42.333889
| 2017-03-27T21:12:54
| 2017-03-27T21:12:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,177
|
hpp
|
HuboCanId.hpp
|
/*
* Copyright (c) 2015, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): Michael X. Grey <greyxmike@gmail.com>
*
* Humanoid Robotics Lab
*
* Directed by Prof. Mike Stilman <mstilman@cc.gatech.edu>
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * 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.
* 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.
*/
#ifndef HUBOCAN_HUBOCANID_H
#define HUBOCAN_HUBOCANID_H
namespace HuboCan {
// Values used in the CAN protocol by can_id
typedef enum {
CMD_BYTE = 0x01,
SENSOR_REQUEST = 0x02,
REFERENCE_CMD = 0x10,
SENSOR_INSTRUCTION = 0x2F,
FT_REPLY = 0x40,
IMU_REPLY = 0x50,
ENCODER_REPLY = 0x60,
STATUS_REPORT = 0x150
} can_base_id_t;
// Values used in the CAN protocol by data[] entries
typedef enum {
GET_BOARD_INFO = 0x01,
GET_STATUS = 0x02,
GET_ENCODER = 0x03,
GET_CURRENT = 0x04, // electrical current
// SendPm = 0x05??
SET_ENC_ZERO = 0x06, // set the current encoder value to zero
SET_POS_GAIN_0 = 0x07,
SET_POS_GAIN_1 = 0x08,
SET_CUR_GAIN_0 = 0x09,
SET_CUR_GAIN_1 = 0x0A,
// SWITCH_DRIVER = 0x0B ??
// GoHome = 0x0C ??
SET_OPENLOOP_PWM = 0x0D,
SET_MOTOR_CTRL_ON = 0x0E,
SET_MOTOR_CTRL_OFF = 0x0F,
SET_CTRL_MODE = 0x10,
GOTO_HOME = 0x11,
SET_DEADZONE = 0x20,
GET_PARAMETERS = 0x24,
SET_HOME_PARAM = 0x30,
SET_ENC_RES = 0x38, // set encoder resolution
SET_MAX_ACC_VEL = 0x40,
SET_LOW_POS_LIM = 0x50,
SET_UPP_POS_LIM = 0x56,
SET_HOME_VEL_ACC = 0x60,
GAIN_OVERRIDE = 0x6F,
SET_BOARD_NUM = 0xF0,
SET_JAM_SAT_LIM = 0xF2, // set the "jam" saturation limit
SET_ERR_BOUND = 0xF3,
INITIALIZE_BOARD = 0xFA,
// Sensor commands
NULL_SENSOR = 0x81,
NULL_FT = 0x00,
NULL_TILT = 0x04,
GET_FT_ACC_DIGITAL = 0x00,
GET_FT_ACC_SCALED = 0x02,
GET_FT_SCALED_ACC_DIGITAL = 0x03, // Get scaled force-torques and digital accelerations
GET_FT_DIGITAL_ACC_SCALED = 0x04, // Get digital force-torques and scaled accelerations
GET_FT_DIGITAL = 0x11,
GET_FT_SCALED = 0x12,
GET_ACC_DIGITAL = 0x21,
GET_ACC_SCALED = 0x22,
GET_GYRO_TEMP = 0x13
} can_cmd_id_t;
typedef enum {
PARAM_A = 1,
PARAM_B = 2,
PARAM_C = 3,
PARAM_D = 4,
PARAM_E = 5,
PARAM_F = 6,
PARAM_G = 20,
PARAM_H = 21,
PARAM_I = 22
} can_param_type_t;
inline uint8_t long_to_bytes(unsigned long value, size_t index)
{
return (uint8_t)( (value >> (index*8) ) & 0xFF );
}
} // namespace HuboCan
#endif // HUBOCAN_HUBOCANID_H
|
81e1aa7a26b594cc124b22f07508fe3232e0bb67
|
b7aade913307bbc3843ac0fdbff0f1b36c3a5f54
|
/src/sw/redis++/event_loop.h
|
33e31025122328f251a399c397cb3c9b10226734
|
[
"Apache-2.0"
] |
permissive
|
sewenew/redis-plus-plus
|
c6bc5cc597d0b35898c033e9772ba1c3d756cb8f
|
fb020fa1f6e116738cda2dfcbb064a5320664b4a
|
refs/heads/master
| 2023-08-22T16:00:04.370011
| 2023-08-03T08:39:07
| 2023-08-03T13:28:25
| 114,471,005
| 1,357
| 341
|
Apache-2.0
| 2023-09-14T21:15:45
| 2017-12-16T15:35:05
|
C++
|
UTF-8
|
C++
| false
| false
| 3,463
|
h
|
event_loop.h
|
/**************************************************************************
Copyright (c) 2021 sewenew
Licensed 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.
*************************************************************************/
#ifndef SEWENEW_REDISPLUSPLUS_EVENT_LOOP_H
#define SEWENEW_REDISPLUSPLUS_EVENT_LOOP_H
#include <unordered_set>
#include <unordered_map>
#include <memory>
#include <exception>
#include <mutex>
#include <thread>
#include <uv.h>
#include "sw/redis++/connection.h"
namespace sw {
namespace redis {
class AsyncConnection;
class AsyncEvent;
class EventLoop {
public:
EventLoop();
EventLoop(const EventLoop &) = delete;
EventLoop& operator=(const EventLoop &) = delete;
EventLoop(EventLoop &&that) = delete;
EventLoop& operator=(EventLoop &&that) = delete;
~EventLoop();
void unwatch(std::shared_ptr<AsyncConnection> connection, std::exception_ptr err = nullptr);
void add(std::shared_ptr<AsyncConnection> event);
// Not thread safe. Only call it in callback functions.
void watch(redisAsyncContext &ctx);
void stop();
private:
static void _connect_callback(const redisAsyncContext *ctx, int status);
static void _disconnect_callback(const redisAsyncContext *ctx, int status);
static void _event_callback(uv_async_t *handle);
static void _stop_callback(uv_async_t *handle);
struct LoopDeleter {
void operator()(uv_loop_t *loop) const;
};
using LoopUPtr = std::unique_ptr<uv_loop_t, LoopDeleter>;
std::string _err_msg(int err) const {
return uv_strerror(err);
}
LoopUPtr _create_event_loop() const;
using UvAsyncUPtr = std::unique_ptr<uv_async_t>;
using AsyncCallback = void (*)(uv_async_t*);
UvAsyncUPtr _create_uv_async(AsyncCallback callback);
void _stop();
void _notify();
void _clean_up(std::unordered_set<std::shared_ptr<AsyncConnection>> &command_events,
std::unordered_map<std::shared_ptr<AsyncConnection>, std::exception_ptr> &disconnect_events);
auto _get_events()
-> std::pair<std::unordered_set<std::shared_ptr<AsyncConnection>>,
std::unordered_map<std::shared_ptr<AsyncConnection>, std::exception_ptr>>;
// We must define _event_async and _stop_async before _loop,
// because these memory can only be release after _loop's deleter
// has been called, i.e. the deleter will close these handles.
UvAsyncUPtr _event_async;
UvAsyncUPtr _stop_async;
std::thread _loop_thread;
std::mutex _mtx;
std::unordered_map<std::shared_ptr<AsyncConnection>, std::exception_ptr> _disconnect_events;
std::unordered_set<std::shared_ptr<AsyncConnection>> _command_events;
// _loop must be defined at last, since its destructor needs other data members.
LoopUPtr _loop;
bool _stopped{false};
};
using EventLoopSPtr = std::shared_ptr<EventLoop>;
}
}
#endif // end SEWENEW_REDISPLUSPLUS_EVENT_LOOP_H
|
2d7b4a31bab26c710970c1c678787d3549761b9f
|
380061c0415ed0d76acbbd1da00d9d42a650ba15
|
/src/Integrative_Phys/Physiological_layer/Single_Time_property.cpp
|
3908cb5942fb6085aebe0488e9bc95d2ff59fbe0
|
[] |
no_license
|
velociraptors/physio_mist
|
551d266d3fb911088d83d5b735f080f4168a47c4
|
d69aed766561cfb85071304797dba23af70a4aca
|
refs/heads/master
| 2021-01-17T04:25:00.300402
| 2009-12-04T18:21:47
| 2009-12-04T18:21:47
| 313,483
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 525
|
cpp
|
Single_Time_property.cpp
|
/*************************************************************************************************
Single_Time_property.cpp
Implementation of the Class Single_Time_property
Contributor(s): E. Zeynep Erson
Created on: 26-Jul-2007 2:05:16 PM
*************************************************************************************************/
#include "Physiological_layer.h"
using namespace physiological_layer;
Single_Time_property::Single_Time_property(){
}
Single_Time_property::~Single_Time_property(){
}
|
3e34841a5d974a768e146ca2d983d6704930eabb
|
a803e9a42975f0e88da7cd8794dc518f528988e8
|
/Drivers/Platform/PlatformBareMetal/inc/UartBareMetal.hpp
|
2d7e59cbcb826523446c08170ee1ecf2376ceb49
|
[] |
no_license
|
engZafer35/Apartment_Management_System
|
a23128b80ff2c6a0597b94706177787ecf0ed6d8
|
256223a367f170a7e8acb2900d7fd1b2bd652d3e
|
refs/heads/master
| 2020-08-24T16:13:16.432221
| 2020-03-20T18:38:51
| 2020-03-20T18:38:51
| 216,861,563
| 0
| 1
| null | 2020-03-20T18:38:52
| 2019-10-22T16:37:41
|
C++
|
UTF-8
|
C++
| false
| false
| 2,403
|
hpp
|
UartBareMetal.hpp
|
/******************************************************************************
* #Author : Zafer Satılmış
* #Revision : 1.0
* #Date : Nov 17, 2019 - 10:08:29 PM
* #File Name : UartBareMetal.hpp
* #File Path : /GezGor/Drivers/Platform/PlatformBareMetal/inc/UartBareMetal.hpp
*******************************************************************************/
/******************************************************************************
*
******************************************************************************/
/******************************IFNDEF & DEFINE********************************/
#ifndef __UART_BARE_METAL_HPP__
#define __UART_BARE_METAL_HPP__
/*********************************INCLUDES*************************************/
#if (CURRENT_PLATFORM == PLATFORM_BARE_METAL)
#include "ISerialBus.hpp"
#include "Utility.hpp"
/******************************* NAME SPACE ***********************************/
/**************************** MACRO DEFINITIONS *******************************/
/*******************************TYPE DEFINITIONS ******************************/
/************************* GLOBAL VARIBALE REFERENCES *************************/
/************************* GLOBAL FUNCTION DEFINITIONS ************************/
/************************* GLOBAL FUNCTION DEFINITIONS ************************/
/********************************* CLASS **************************************/
namespace platform
{
class UartBareMetal : public ICommPeripheral, private NonCopyable
{
public:
~UartBareMetal(void);
/** \brief get instance, singleton class*/
static UartBareMetal* getInstance(void);
/** \brief init uart*/
RETURN_STATUS init(void) override;
/** \brief send data*/
RETURN_STATUS send(const void *buff, U32 size, U32 timeout) override;
/** \brief receive data*/
RETURN_STATUS receive(void *buff, U32 size, U32 timeout) override;
private:
UartBareMetal(void);
/** \brief hardware receive interrupt callback function */
void cbReceive(void) override;
/** \brief hardware send interrupt callback function */
void cbSend(void) override;
private:
static UartBareMetal* m_instance;
};
}//namespace platform
#endif// #if (CURRENT_PLATFORM == PLATFORM_BARE_METAL)
#endif /* __UART_BARE_METAL_HPP__ */
/********************************* End Of File ********************************/
|
c511cf00eb2c773a5ced38342662e6466df1fa99
|
a9b69a4178503c6ec666b4cb41ad4ce560415d68
|
/LinkLists/Iterator.h
|
fcb1c7c62cb170306ec5c8cee668af5a828764c8
|
[] |
no_license
|
Gage-Waguespack/LinkLists
|
d8bbfd606126f1fa917f5abf9acbee3cccef67e4
|
30a8136b0c79eb2a2b0156ef8ccb0450e69b867f
|
refs/heads/master
| 2023-03-09T11:35:33.429405
| 2021-02-26T13:43:52
| 2021-02-26T13:43:52
| 335,709,550
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,482
|
h
|
Iterator.h
|
#pragma once
#include "Node.h"
template<typename T>
class Iterator
{
public:
Iterator();
Iterator(Node<T>* node);
Iterator<T> operator++();
Iterator<T> operator--();
const bool operator == (const Iterator<T>& iter);
const bool operator != (const Iterator<T>& iter);
T operator * ();
private:
Node<T>* m_current;
};
//base constructor
template<typename T>
inline Iterator<T>::Iterator()
{
}
//overloaded constructor that takes in a node (to point to)
template<typename T>
inline Iterator<T>::Iterator(Node<T>* node)
{
m_current = node;
}
//overloads "++" operator to move to the next node
template<typename T>
inline Iterator<T> Iterator<T>::operator++()
{
m_current = m_current->next;
return *this;
}
//overloads "--" operator to move to the previous node
template<typename T>
inline Iterator<T> Iterator<T>::operator--()
{
m_current = m_current->previous;
return *this;
}
//overloads the "==" operator to set the iterator equals to a specific node
template<typename T>
inline const bool Iterator<T>::operator==(const Iterator<T>& iter)
{
return iter.m_current;
}
//overloads the "!=" operator to make sure the iterator cannot equal a specified node (also used to check in if statements)
template<typename T>
inline const bool Iterator<T>::operator!=(const Iterator<T>& iter)
{
return iter.m_current != m_current;
}
//overloads the "*" operator to de-reference the iterator
template<typename T>
inline T Iterator<T>::operator*()
{
return m_current->data;
}
|
fe4a9551c89bad0421af6c0048a661e8592a0ba4
|
869395920bfffb70e29949f14bdd7ca48e12ebdb
|
/winhttp/dllmain.cpp
|
9e8bffd18da135f93ce5472159baef78099df5a0
|
[] |
no_license
|
buchacho/LSX-Dumper
|
38e474963ff03147e03ef52d6b0aa35bf63831b1
|
3340d6bef6456bf45083e5856fb0b6fb270a6be1
|
refs/heads/master
| 2021-10-02T04:49:42.963638
| 2018-11-29T04:47:49
| 2018-11-29T04:47:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,339
|
cpp
|
dllmain.cpp
|
#include "stdafx.h"
#include <windows.h>
#include <tchar.h>
#include "Hack.h"
#pragma pack(1)
extern "C" BOOL WINAPI DllMain(HINSTANCE hInst,DWORD reason,LPVOID)
{
static HINSTANCE hL;
if (reason == DLL_PROCESS_ATTACH)
{
hL = LoadLibrary(_T(".\\winhttp_org.dll"));
if (!hL) return false;
HackMain();
}
if (reason == DLL_PROCESS_DETACH)
{
HackExit();
FreeLibrary(hL);
}
return TRUE;
}
#pragma comment(linker, "/export:WinHttpCloseHandle=winhttp_org.WinHttpCloseHandle")
#pragma comment(linker, "/export:WinHttpSetOption=winhttp_org.WinHttpSetOption")
#pragma comment(linker, "/export:WinHttpCreateUrl=winhttp_org.WinHttpCreateUrl")
#pragma comment(linker, "/export:WinHttpOpenRequest=winhttp_org.WinHttpOpenRequest")
#pragma comment(linker, "/export:WinHttpOpen=winhttp_org.WinHttpOpen")
#pragma comment(linker, "/export:WinHttpSetStatusCallback=winhttp_org.WinHttpSetStatusCallback")
#pragma comment(linker, "/export:WinHttpSendRequest=winhttp_org.WinHttpSendRequest")
#pragma comment(linker, "/export:WinHttpReceiveResponse=winhttp_org.WinHttpReceiveResponse")
#pragma comment(linker, "/export:WinHttpQueryHeaders=winhttp_org.WinHttpQueryHeaders")
#pragma comment(linker, "/export:WinHttpReadData=winhttp_org.WinHttpReadData")
#pragma comment(linker, "/export:WinHttpSetTimeouts=winhttp_org.WinHttpSetTimeouts")
#pragma comment(linker, "/export:WinHttpGetProxyForUrl=winhttp_org.WinHttpGetProxyForUrl")
#pragma comment(linker, "/export:WinHttpCrackUrl=winhttp_org.WinHttpCrackUrl")
#pragma comment(linker, "/export:WinHttpDetectAutoProxyConfigUrl=winhttp_org.WinHttpDetectAutoProxyConfigUrl")
#pragma comment(linker, "/export:WinHttpConnect=winhttp_org.WinHttpConnect")
#pragma comment(linker, "/export:WinHttpAddRequestHeaders=winhttp_org.WinHttpAddRequestHeaders")
#pragma comment(linker, "/export:WinHttpGetIEProxyConfigForCurrentUser=winhttp_org.WinHttpGetIEProxyConfigForCurrentUser")
#pragma comment(linker, "/export:WinHttpGetDefaultProxyConfiguration=winhttp_org.WinHttpGetDefaultProxyConfiguration")
#pragma comment(linker, "/export:WinHttpWriteData=winhttp_org.WinHttpWriteData")
#pragma comment(linker, "/export:WinHttpQueryDataAvailable=winhttp_org.WinHttpQueryDataAvailable")
#pragma comment(linker, "/export:SvchostPushServiceGlobals=winhttp_org.SvchostPushServiceGlobals")
#pragma comment(linker, "/export:WinHttpAutoProxySvcMain=winhttp_org.WinHttpAutoProxySvcMain")
#pragma comment(linker, "/export:WinHttpQueryOption=winhttp_org.WinHttpQueryOption")
#pragma comment(linker, "/export:Private1=winhttp_org.Private1")
#pragma comment(linker, "/export:WinHttpTimeToSystemTime=winhttp_org.WinHttpTimeToSystemTime")
#pragma comment(linker, "/export:WinHttpTimeFromSystemTime=winhttp_org.WinHttpTimeFromSystemTime")
#pragma comment(linker, "/export:WinHttpSetDefaultProxyConfiguration=winhttp_org.WinHttpSetDefaultProxyConfiguration")
#pragma comment(linker, "/export:WinHttpCheckPlatform=winhttp_org.WinHttpCheckPlatform")
#pragma comment(linker, "/export:WinHttpQueryAuthSchemes=winhttp_org.WinHttpQueryAuthSchemes")
#pragma comment(linker, "/export:WinHttpSetCredentials=winhttp_org.WinHttpSetCredentials")
#pragma comment(linker, "/export:DllCanUnloadNow=winhttp_org.DllCanUnloadNow")
#pragma comment(linker, "/export:DllGetClassObject=winhttp_org.DllGetClassObject")
|
ead8656effb91fb86e46e4668ed5b8249f75e61c
|
6cf6e57b3ade80ac8bad676afcb623f1a52388f7
|
/CPSim_MulticoreExtension/Simulator/engine/resource.cpp
|
ba73f2788e674d402a6e173fcd85959667eda008
|
[] |
no_license
|
CallorGRP/CPSim_linux
|
97401c2d1e63b685e8e07fce0a8f5795a4eee2d3
|
db40f2a33e4eafccb704b4d0d8b1636047bdf859
|
refs/heads/master
| 2020-04-14T09:54:52.685704
| 2018-01-22T12:49:42
| 2018-01-22T12:49:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 465
|
cpp
|
resource.cpp
|
#include "components.h"
Resource::Resource(int id_input, int type_input, int ratio_input, int speed_input, char *name):Component(id_input)
{
type = type_input;
ratio = ratio_input;
speed = speed_input;
strcpy(resource_name, name);
}
Resource::~Resource()
{
}
int Resource::get_type()
{
return type;
}
int Resource::get_ratio()
{
return ratio;
}
int Resource::get_speed()
{
return speed;
}
char* Resource::get_resource_name()
{
return resource_name;
}
|
29f6b0d3ec401e93791c7ff8c007029c48895a70
|
0d4e28f7e9d961e45d32a4735ad7c1f76bbda34a
|
/ocs2_sqp/ocs2_sqp/include/ocs2_sqp/ConstraintProjection.h
|
0e7dfe93fa0ebca101454ef1c871d5d7a5ff844a
|
[
"BSD-3-Clause"
] |
permissive
|
RoboMark9/ocs2
|
a4fc0c215ccb3a86afeffe93b6a67fb0d9dd9450
|
b037d819c9a02a674de9badb628b32646ce11d6a
|
refs/heads/main
| 2023-08-29T15:20:07.117885
| 2021-10-20T13:09:37
| 2021-10-20T13:09:37
| 453,286,119
| 1
| 0
|
BSD-3-Clause
| 2022-01-29T03:30:28
| 2022-01-29T03:30:27
| null |
UTF-8
|
C++
| false
| false
| 2,529
|
h
|
ConstraintProjection.h
|
/******************************************************************************
Copyright (c) 2020, Farbod Farshidian. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* 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.
* 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.
******************************************************************************/
#pragma once
#include <ocs2_core/Types.h>
namespace ocs2 {
/**
* Returns the linear projection
* u = Pu * \tilde{u} + Px * x + Pe
*
* s.t. C*x + D*u + e = 0 is satisfied for any \tilde{u}
*
* Implementation based on the QR decomposition
*
* @param constraint : C = dfdx, D = dfdu, e = f;
* @return Px = dfdx, Pu = dfdu, Pe = f;
*/
VectorFunctionLinearApproximation qrConstraintProjection(const VectorFunctionLinearApproximation& constraint);
/**
* Returns the linear projection
* u = Pu * \tilde{u} + Px * x + Pe
*
* s.t. C*x + D*u + e = 0 is satisfied for any \tilde{u}
*
* Implementation based on the LU decomposition
*
* @param constraint : C = dfdx, D = dfdu, e = f;
* @return Px = dfdx, Pu = dfdu, Pe = f;
*/
VectorFunctionLinearApproximation luConstraintProjection(const VectorFunctionLinearApproximation& constraint);
} // namespace ocs2
|
42b2d30438844dcece13122c6bfa66358928c7f7
|
7cde35a74052fe6311a6abb8fd8f5a7d98d27bd7
|
/src/ui/output.h
|
71132558448c88dd74305d0efa71ddb857e2b7a7
|
[] |
no_license
|
chys87/tiary
|
7c2648857457d820bf1535865f25bc99c942d5a0
|
4beb95048280bb9096d5771b40c2f2071daf4333
|
refs/heads/master
| 2023-06-22T02:12:17.464305
| 2023-06-16T09:01:35
| 2023-06-16T09:01:35
| 3,160,484
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,716
|
h
|
output.h
|
// -*- mode:c++; tab-width:4; -*-
// vim:ft=cpp ts=4
/***************************************************************************
*
* Tiary, a terminal-based diary keeping system for Unix-like systems
* Copyright (C) 2009, chys <admin@CHYS.INFO>
*
* This software is licensed under the 3-clause BSD license.
* See LICENSE in the source package and/or online info for details.
*
**************************************************************************/
#ifndef TIARY_UI_OUTPUT_H
#define TIARY_UI_OUTPUT_H
#include "ui/size.h"
#include "ui/ui.h"
#include <string>
namespace tiary {
namespace ui {
// Forward declarations
class Window;
class Control;
namespace detail { template <typename> class Output; }
inline detail::Output<Window> operator << (Window &, Size);
inline detail::Output<Control> operator << (Control &, Size);
namespace detail {
struct AttributeToggle
{
Attr attr;
};
/**
* @brief Helper output class for ui::Window and ui::Control
*/
template <typename C> class Output
{
public:
// Change output position
Output &operator << (Size newpos)
{
pos_ = newpos;
return *this;
}
// Change palette
Output &operator << (PaletteID id) {
obj_.choose_palette(id);
return *this;
}
// Toggle attributes
Output &operator << (AttributeToggle toggle) {
obj_.attribute_toggle(toggle.attr);
return *this;
}
Output &operator << (wchar_t c) {
pos_ = obj_.put(pos_, c);
return *this;
}
Output &operator << (const wchar_t *s) {
pos_ = obj_.put(pos_, s);
return *this;
}
Output &operator << (std::wstring_view s) {
pos_ = obj_.put(pos_, s);
return *this;
}
Output &operator << (const std::wstring &s) {
pos_ = obj_.put(pos_, s);
return *this;
}
operator Size () const
{
return pos_;
}
private:
C &obj_;
Size pos_;
// Constructor is intentionally private,
// thus it's only callable from friend functions
constexpr Output(C &obj, Size pos)
: obj_(obj), pos_(pos)
{
}
Output &operator = (const Output &) = delete;
friend Output<Window> ui::operator << (Window &, Size);
friend Output<Control> ui::operator << (Control &, Size);
};
} // namespace detail
inline constexpr detail::AttributeToggle toggle(Attr attr) {
return {attr};
}
inline detail::Output<Window> operator << (Window &win, Size pos)
{
return detail::Output<Window> (win, pos);
}
inline detail::Output<Window> operator << (Window *win, Size pos)
{
return (*win << pos);
}
inline detail::Output<Control> operator << (Control &ctrl, Size pos)
{
return detail::Output<Control> (ctrl, pos);
}
inline detail::Output<Control> operator << (Control *ctrl, Size pos)
{
return (*ctrl << pos);
}
} // namespace tiary::ui
} // namespace tiary
#endif // include guard
|
99f65149743caebab7a8e59d7586f483edd56532
|
0ab3011e5da1ea5f1f149a2ec588dd814ec542df
|
/MatMultThr/main.cpp
|
eca0162db4398c627c42119ea408924cde0ad182
|
[] |
no_license
|
HubuserAlexanderKorneev/University-programming-projects
|
d1bdd59d74e84109da07fc98f85158d589745cdf
|
ae93b749a4e5950d1525e70b8db2226b0c4e7738
|
refs/heads/master
| 2020-04-18T08:46:42.906374
| 2017-12-28T19:46:02
| 2017-12-28T19:46:02
| 67,817,486
| 2
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,122
|
cpp
|
main.cpp
|
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <cstdint>
#define SIZE 10 // Size by SIZE matrices
int num_thrd; // number of threads
int A[SIZE][SIZE], B[SIZE][SIZE], C[SIZE][SIZE];
// initialize a matrix
void init_matrix(int m[SIZE][SIZE])
{
int i, j, val = 0;
for (i = 0; i < SIZE; i++)
for (j = 0; j < SIZE; j++)
m[i][j] = val++;
}
void print_matrix(int m[SIZE][SIZE])
{
int i, j;
for (i = 0; i < SIZE; i++) {
printf("\n\t| ");
for (j = 0; j < SIZE; j++)
printf("%2d ", m[i][j]);
printf("|");
}
}
// thread function: taking "slice" as its argument
void* multiply(void* slice)
{
int s = (intptr_t)slice; // retrive the slice info
int from = (s * SIZE)/num_thrd; // note that this 'slicing' works fine
int to = ((s+1) * SIZE)/num_thrd; // even if SIZE is not divisible by num_thrd
int i,j,k;
printf("computing slice %d (from row %d to %d)\n", s, from, to-1);
for (i = from; i < to; i++)
{
for (j = 0; j < SIZE; j++)
{
C[i][j] = 0;
for ( k = 0; k < SIZE; k++)
C[i][j] += A[i][k]*B[k][j];
}
}
printf("finished slice %d\n", s);
return 0;
}
int main()
{
pthread_t* thread; // pointer to a group of threads
int i;
num_thrd = 4;
init_matrix(A);
init_matrix(B);
thread = (pthread_t*) malloc(num_thrd*sizeof(pthread_t));
// this for loop not entered if threadd number is specified as 1
for (i = 1; i < num_thrd; i++)
{
// creates each thread working on its own slice of i
if (pthread_create (&thread[i], NULL, multiply, (void*)i) != 0 )
{
perror("Can't create thread");
free(thread);
exit(-1);
}
}
// main thread works on slice 0
// so everybody is busy
// main thread does everything if threadd number is specified as 1
multiply(0);
// main thead waiting for other thread to complete
for (i = 1; i < num_thrd; i++)
pthread_join (thread[i], NULL);
printf("\n\n");
print_matrix(A);
printf("\n\n\t * \n");
print_matrix(B);
printf("\n\n\t = \n");
print_matrix(C);
printf("\n\n");
free(thread);
return 0;
}
|
81d7711424df37cfe8d43c1f3dfb1ea8252c22b3
|
8d1b2eb8b5fe400489aa94b23734d46495b69b1d
|
/MedView/OpenGLWindow.h
|
be208c860f9a1f145ef23e4b6dab25b1f3478a3a
|
[] |
no_license
|
hky5820/MedView
|
724738679ce814ffcac7010bea5470832eba33b2
|
56fb938f046527918f7463c7da9421ed309c6e1d
|
refs/heads/master
| 2021-01-02T13:29:01.748595
| 2019-08-16T08:09:25
| 2019-08-16T08:09:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,600
|
h
|
OpenGLWindow.h
|
#ifndef __OPENGL_WINDOW_H__
#define __OPENGL_WINDOW_H__
#include <QWindow>
#include <QOpenGLFunctions_3_3_Core>
#include <QOpenGLBuffer>
#include <QOpenGLVertexArrayObject>
#include <QOpenGLTexture>
#include <QKeyEvent>
#include <QMatrix4x4>
#include <QQuaternion>
#include "DicomManager.h"
#include "Utils/ArcBall.h"
class QOpenGLShaderProgram;
class OpenGLWindow : public QWindow, protected QOpenGLFunctions_3_3_Core
{
Q_OBJECT
public:
OpenGLWindow(DicomManager*, QWindow*);
//~OpenGLWindow();
void reset();
void loadObject();
void render();
void setRenderMode(std::string);
protected:
/* Qt Mouse Events */
void mouseMoveEvent(QMouseEvent *) override;
void mousePressEvent(QMouseEvent*) override;
void mouseReleaseEvent(QMouseEvent*) override;
void wheelEvent(QWheelEvent *) override;
/* OpenGL Events */
void exposeEvent(QExposeEvent *event);
void resizeEvent(QResizeEvent *);
private:
DicomManager *m_dicom_manager;
QOpenGLContext *m_context;
GLuint m_vao;
QOpenGLShaderProgram *m_raycast_firstpass_shader;
QOpenGLShaderProgram *m_raycast_mip_shader;
QOpenGLShaderProgram *m_raycast_otf_shader;
enum RenderMode{MIP, OTF};
RenderMode m_rendering_mode;
//TODO:: rename this
bool volumeload = false;
bool glInitialized = false;
void _initializeGL();
void _loadVolume();
GLuint m_volume_texture;
QOpenGLTexture *m_volume_texture_new;
void _initializeTargetTexture(int, int);
GLuint m_target_texture;
void _initializeFramebuffer(int, int);
GLuint m_depth_buffer;
GLuint m_framebuffer;
void _renderCube(QOpenGLShaderProgram*, GLuint);
/* OpenGL MVP matrices */
QMatrix4x4 m_model_mat;
QMatrix4x4 m_view_mat;
QMatrix4x4 m_rotation_mat;
void _initializeMatrix();
ArcBall* arc;
/* Mouse cursor status */
bool m_is_right_pressed;
bool m_is_left_pressed;
QPoint m_prev_cursor_point;
/* Windowing */
int m_window_width;
int m_window_level;
void _initializeWindowing();
/* Zoom In and Out */
const float m_zoom_max = 4.0f;
const float m_zoom_min = 0.25f;
const float m_zoom_speed = 0.001f;
float m_zoom = 1.0f;
/* Cube vertices for drawing volume */
const GLfloat m_cube_vertices[24] = {
// front
0.0, 0.0, 1.0,
1.0, 0.0, 1.0,
1.0, 1.0, 1.0,
0.0, 1.0, 1.0,
// back
0.0, 0.0, 0.0,
1.0, 0.0, 0.0,
1.0, 1.0, 0.0,
0.0, 1.0, 0.0
};
const GLuint m_cube_triangle_indices[36] = {
// front
0, 1, 2,
2, 3, 0,
// top
1, 5, 6,
6, 2, 1,
// back
7, 6, 5,
5, 4, 7,
// bottom
4, 0, 3,
3, 7, 4,
// left
4, 5, 1,
1, 0, 4,
// right
3, 2, 6,
6, 7, 3
};
};
#endif // __OPENGL_WINDOW_H__
|
1e7ec1c82aa3ffd483aa7f0b82c77ddf9b1982eb
|
28369ddf6db658c03dbbfc45eb00305f2af1b01a
|
/Shape.h
|
6cc3016d89074a160697c88198c45db63e833d94
|
[] |
no_license
|
Sidhanth-Kafley/Simon-Says-Game
|
ae5923e41dadc4825744cf23a130363bb1b83744
|
74ee94da185efc2ce53bdc87ef0b90b983203703
|
refs/heads/master
| 2023-03-16T05:42:56.521957
| 2020-05-01T22:08:02
| 2020-05-01T22:08:02
| 344,910,974
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,553
|
h
|
Shape.h
|
//
// Created by Sydney Hildreth on 4/27/20.
//
#ifndef SH_SK_FINAL_PROJECT_GRAPHICS_SHAPE_H
#define SH_SK_FINAL_PROJECT_GRAPHICS_SHAPE_H
#include <cmath> // This allows you to use sqrt and pow functions
#include <string>
const double PI = 3.14159265358979323846;
struct color {
double red;
double green;
double blue;
double alpha; // Opacity (0 is transparent, 1 is solid)
/* Constructors */
color();
color(double r, double g, double b);
color(double r, double g, double b, double a);
/* Overloaded Operator */
friend std::ostream& operator << (std::ostream& outs, const color &c);
};
struct point {
int x;
int y;
};
class Shape {
protected:
enum shapeType {
circle,
square
};
color fill;
shapeType type;
public:
/* Constructors */
Shape();
explicit Shape(color fill);
Shape(double red, double green, double blue, double alpha);
/* Destructor */
virtual ~Shape() = 0;
/* Getters */
color getColor() const;
double getRed() const;
double getGreen() const;
double getBlue() const;
double getOpacity() const;
std::string getType() const;
/* Setters */
void setColor(color c);
void setColor(double r, double g, double b, double a);
void setRed(double r);
void setGreen(double g);
void setBlue(double b);
void setOpacity(double a);
//virtual void draw() = 0;
// virtual void draw() const;
virtual void draw() const = 0;
};
#endif //SH_SK_FINAL_PROJECT_GRAPHICS_SHAPE_H
|
9af494464f2c14e59a584c742106e895a017a3d8
|
9ff51146dc7b5893581237a05c2126e4292128a9
|
/slist.cpp
|
10babc1aa65ed2f5e5472b464090499176daad6b
|
[] |
no_license
|
Hizkias-Negusu/List_of_Employees_temp
|
7c9e5e0ee68accdad04f736585afac036d15be81
|
1b40592dc6b6565b0bf138d8b870a70cbc98b076
|
refs/heads/master
| 2020-05-24T23:14:18.871237
| 2019-05-19T18:14:54
| 2019-05-19T18:14:54
| 187,511,204
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,148
|
cpp
|
slist.cpp
|
#include "slist.h"
//Negusu Hizkias Assignment 2
slist::slist () //Default constructor
{
head = NULL;
}
slist::~slist ()
{
//post-condition: All nodes in the list are deleted.
node* temp;
while (head != NULL)
{
temp = head;
head = head->getNext ();
delete temp;
}
head = NULL;
}
bool slist::empty () const
{
return (head==NULL);
}
int slist::getSize() const
{
node* temp=head;
int count=0;
while (temp!=NULL)
{
temp=temp->getNext();
count++;
}
return count;
}
void slist::prepend (const dataType& newItem)
{
node *temp=new node(newItem);
temp->setNext(head);
head=temp;
}
// Inserts the new item to the front of the list
void slist::append(const dataType& item){
if (head == NULL)
prepend(item);
else{
node *curr = head;
node *temp2 = new node(item);
while( curr->getNext() != NULL){
curr = curr->getNext();
}
curr->setNext(temp2);
temp2->setNext(NULL);
}
}
//Orders the list in order of most years and less years
void slist::proOrder(const dataType& item){
node *curr = head;
node *temp2 = new node(item);
if (head == NULL)
prepend(item);
else if ( curr->getData().years > temp2->getData().years) {
while(curr->getNext() != NULL && temp2->getData().years < curr->getData().years){
curr = curr->getNext();
}
node * temp3 = curr->getNext();
curr->setNext(temp2);
temp2->setNext(temp3);
}
else
prepend(item);
}
//Orders the list in alphabetical orders
void slist::alpOrder(const dataType& item){
node *curr = head;
node *temp2 = new node(item);
if (head == NULL)
prepend(item);
else if (curr->getData().name < temp2->getData().name){
while (curr->getNext() != NULL && temp2->getData().name < curr->getData().name){
curr = curr->getNext();
}
node * temp3 = curr->getNext();
curr->setNext(temp2);
temp2->setNext(temp3);
}
else
prepend(item);
}
//grabs the first element in the list and returns the data stored in that node
//it returns true or false indicating whether or not the remove was successful. Thus, if
//the list is empty, it returns false, otherwise it returns true;
bool slist::remove(dataType & returnData)
{
if (head==NULL)
return false;
//else will only do this code if it doesn't return
returnData=head->getData();
node *tmp=head;
head=head->getNext();
delete tmp;
return true;
}
void slist::printDEBUG() const
{
node *temp=head;
if (temp==NULL)
{
cout<<"Empty List"<<endl;
}
else
{
while (temp!=NULL)
{
dataType mydata=temp->getData();
cout<<mydata.name<<" ";
cout<<mydata.years;
cout<< " years of experience.";
cout<<endl;
temp=temp->getNext();
}
}
}
|
7caab1d2806e627b6f4048151f17f21ef950fa6e
|
df79ab66ce1f1a75b2db5d7de6e601c23b5015ef
|
/Conect_BD/main.cpp
|
df1a4869854529dacf97c4ed92eb1381541c4a6d
|
[] |
no_license
|
VladZhylchuk/Course_project
|
71a8b0eadeb672f6a04d5c38ea830e330453028b
|
73691221cc945c11c878cb3c775138f4dcc51367
|
refs/heads/master
| 2022-11-06T01:04:43.870870
| 2020-06-24T09:34:04
| 2020-06-24T09:34:04
| 266,724,046
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 224
|
cpp
|
main.cpp
|
#include "mainwindow.h"
#include <QApplication>
//#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow *main = new MainWindow();
main->show();
return a.exec();
}
|
e7b611b2a69949a38c255a439a725539d002c8d5
|
2195aa79fbd3cf2f048ad5a9ee3a1ef948ff6601
|
/q3/qmpop3/src/pop3sendsession.cpp
|
cfeae735585b69ad1b987681297ecde6f73891cc
|
[
"MIT"
] |
permissive
|
snakamura/q3
|
d3601503df4ebb08f051332a9669cd71dc5256b2
|
6ab405b61deec8bb3fc0f35057dd880efd96b87f
|
refs/heads/master
| 2016-09-02T00:33:43.224628
| 2014-07-22T23:38:22
| 2014-07-22T23:38:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,267
|
cpp
|
pop3sendsession.cpp
|
/*
* $Id$
*
* Copyright(C) 1998-2008 Satoshi Nakamura
*
*/
#include <qmaccount.h>
#include <qmdocument.h>
#include <qmmessage.h>
#include "main.h"
#include "pop3sendsession.h"
#include "resourceinc.h"
#include "ui.h"
#include "util.h"
using namespace qmpop3;
using namespace qm;
using namespace qs;
#define HANDLE_ERROR() HANDLE_ERROR_(0)
#define HANDLE_ERROR_SSL() HANDLE_ERROR_(pCallback_->getSSLErrorMessage().get())
#define HANDLE_ERROR_(s) \
do { \
Util::reportError(pPop3_.get(), pSessionCallback_, pAccount_, \
pSubAccount_, 0, 0, pCallback_->getErrorMessage(), s); \
return false; \
} while (false) \
/****************************************************************************
*
* Pop3SendSession
*
*/
qmpop3::Pop3SendSession::Pop3SendSession() :
pAccount_(0),
pSubAccount_(0),
pLogger_(0),
pSessionCallback_(0)
{
}
qmpop3::Pop3SendSession::~Pop3SendSession()
{
}
bool qmpop3::Pop3SendSession::init(Document* pDocument,
Account* pAccount,
SubAccount* pSubAccount,
Profile* pProfile,
Logger* pLogger,
SendSessionCallback* pCallback)
{
assert(pAccount);
assert(pSubAccount);
assert(pCallback);
pAccount_ = pAccount;
pSubAccount_ = pSubAccount;
pLogger_ = pLogger;
pSessionCallback_ = pCallback;
pCallback_.reset(new DefaultCallback(pSubAccount_, Account::HOST_SEND,
pDocument->getSecurity(), pSessionCallback_));
return true;
}
void qmpop3::Pop3SendSession::term()
{
}
bool qmpop3::Pop3SendSession::connect()
{
assert(!pPop3_.get());
Log log(pLogger_, L"qmpop3::Pop3SendSession");
log.debug(L"Connecting to the server...");
pPop3_.reset(new Pop3(pSubAccount_->getTimeout(), pCallback_.get(),
pCallback_.get(), pCallback_.get(), pLogger_));
bool bApop = pSubAccount_->getPropertyInt(L"Pop3Send", L"Apop") != 0;
Pop3::Secure secure = Util::getSecure(pSubAccount_, Account::HOST_SEND);
if (!pPop3_->connect(pSubAccount_->getHost(Account::HOST_SEND),
pSubAccount_->getPort(Account::HOST_SEND), bApop, secure))
HANDLE_ERROR_SSL();
log.debug(L"Connected to the server.");
return true;
}
void qmpop3::Pop3SendSession::disconnect()
{
assert(pPop3_.get());
Log log(pLogger_, L"qmpop3::Pop3SendSession");
log.debug(L"Disconnecting from the server...");
pPop3_->disconnect();
log.debug(L"Disconnected from the server.");
}
bool qmpop3::Pop3SendSession::sendMessage(Message* pMessage)
{
if (!pMessage->removePrivateFields())
return false;
xstring_size_ptr strContent(pMessage->getContent());
if (!strContent.get())
return false;
if (!pPop3_->sendMessage(strContent.get(), strContent.size()))
HANDLE_ERROR();
return true;
}
/****************************************************************************
*
* Pop3SendSessionUI
*
*/
qmpop3::Pop3SendSessionUI::Pop3SendSessionUI()
{
}
qmpop3::Pop3SendSessionUI::~Pop3SendSessionUI()
{
}
const WCHAR* qmpop3::Pop3SendSessionUI::getClass()
{
return L"mail";
}
wstring_ptr qmpop3::Pop3SendSessionUI::getDisplayName()
{
return loadString(getResourceHandle(), IDS_POP3SEND);
}
short qmpop3::Pop3SendSessionUI::getDefaultPort(bool bSecure)
{
return bSecure ? 995 : 110;
}
bool qmpop3::Pop3SendSessionUI::isSupported(Support support)
{
return true;
}
std::auto_ptr<PropertyPage> qmpop3::Pop3SendSessionUI::createPropertyPage(SubAccount* pSubAccount)
{
return std::auto_ptr<PropertyPage>(new SendPage(pSubAccount));
}
/****************************************************************************
*
* Pop3SendSessionFactory
*
*/
Pop3SendSessionFactory qmpop3::Pop3SendSessionFactory::factory__;
qmpop3::Pop3SendSessionFactory::Pop3SendSessionFactory()
{
registerFactory(L"pop3", this);
}
qmpop3::Pop3SendSessionFactory::~Pop3SendSessionFactory()
{
unregisterFactory(L"pop3");
}
std::auto_ptr<SendSession> qmpop3::Pop3SendSessionFactory::createSession()
{
return std::auto_ptr<SendSession>(new Pop3SendSession());
}
std::auto_ptr<SendSessionUI> qmpop3::Pop3SendSessionFactory::createUI()
{
return std::auto_ptr<SendSessionUI>(new Pop3SendSessionUI());
}
|
e9d4ed08a82d0e9f0d788fd7287b2372b309f7d8
|
9f9a189196b5118382339868c5a5da8874ac55b5
|
/C++/03_提取/main_1.cpp
|
fc4deb0d02e04fa00bd622ec213ac1f01e747a3e
|
[] |
no_license
|
wghfbj/Regex
|
4c847723828d707bf74b9509b831bc59b751e0cd
|
9102fae63024ae177b4232310a4ba8b53f5d2296
|
refs/heads/master
| 2020-04-10T11:33:12.636340
| 2018-12-09T02:38:21
| 2018-12-09T02:38:21
| 160,997,214
| 0
| 0
| null | null | null | null |
GB18030
|
C++
| false
| false
| 862
|
cpp
|
main_1.cpp
|
#include <iostream>
#include <string>
#include <regex>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
#define TRUE 1
#define FALSE 0
class Demo
{
public:
Demo(string QQ);
string QQ;
bool CheckQQValid();
string QQShow(void);
};
Demo::Demo(string QQ)
{
this->QQ = QQ;
}
bool Demo::CheckQQValid()
{
/* 替换规则: 将字符串中的叠词全部替换为单个词 */
regex R1("[a-z]{4,15}\\d*@cvte.com");
smatch m;
while(regex_search(QQ, m, R1))
{
for(auto x:m) cout << x << " ";
cout << endl;
QQ = m.suffix().str();
}
return 1;
}
string Demo::QQShow(void)
{
return QQ;
}
int main(int argc, char** argv)
{
Demo* QQ = new Demo("112233zhangsan222@cvte.com4455");
printf("\n\n QQ[%s] => \n\n", QQ->QQShow().c_str());
QQ->CheckQQValid();
return 0;
}
|
9cf6a2c8a796a2506f472e43b47f0bf34ebdbbaa
|
da1e13573e12f824403fda65882f369c6b76ee20
|
/PWM1.ino
|
d9ce6f10015aad17b6055085bb1cea71e1317825
|
[] |
no_license
|
Jsamapro/arduino
|
74daba2550ebb837d32f176e2c5af90d039edd2b
|
18ce551585cfe9359343c62e3aa52f22efdd8f39
|
refs/heads/main
| 2023-03-23T04:45:53.954152
| 2021-03-19T12:42:36
| 2021-03-19T12:42:36
| 334,881,243
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 826
|
ino
|
PWM1.ino
|
/*
DigitalReadSerial
Reads a digital input on pin 2, prints the result to the Serial Monitor
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/DigitalReadSerial
*/
// digital pin 2 has a pushbutton attached to it. Give it a name:
const int ledPin = 4;
const int buttonPin = 3;
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
}
// the loop routine runs over and over again forever:
void loop() {
int switchState = 0;
//leer el estado del botón
switchState = digitalRead(buttonPin);
if (switchState == HIGH){
//el botón sí está pulsado
digitalWrite(ledPin, HIGH);
delay(1);
digitalWrite(ledPin, LOW);
delay(2);
}
else {
digitalWrite(ledPin, HIGH);
} //llave del else
} //vuelve al principio del bucle (llave del loop)
|
f9b9b58ef14c1e0bea0e7be1a035aa9c5221bd3c
|
74a11e21069f5a57bcf7643df171c3b6452c1d1c
|
/src/rogue-card/ActionBar.hpp
|
77052474fee548453ba008971c5066aaa502bb83
|
[
"MIT"
] |
permissive
|
padawin/RogueCard
|
f8f5d56287af7c309d3d325365d52300924578cf
|
7a5d04fa2d7be47c1542b6d4908e277ccbbd01fc
|
refs/heads/master
| 2021-12-23T18:17:11.714704
| 2021-08-22T17:27:53
| 2021-08-25T15:00:14
| 170,905,465
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 672
|
hpp
|
ActionBar.hpp
|
#ifndef __ACTION_BAR__
#define __ACTION_BAR__
#include <memory>
#include "ObjectCard.hpp"
#include "ObjectCardsLoopable.hpp"
const int ACTION_BAR_SIZE= 4;
class ActionBar : public IObjectCardsLoopable {
private:
std::shared_ptr<ObjectCard> m_objectCards[ACTION_BAR_SIZE] = {nullptr, nullptr, nullptr, nullptr};
public:
~ActionBar() {}
std::shared_ptr<ObjectCard> getCard(int index) const;
void setCard(int index, std::shared_ptr<ObjectCard> card);
void removeCard(std::shared_ptr<ObjectCard> card);
bool hasCard(std::shared_ptr<ObjectCard> card) const;
// Looping methods
bool next();
std::shared_ptr<ObjectCard> current() const;
void reset();
};
#endif
|
2378178c35e616f9f71a72455010e1b11a8bd149
|
43c62dd3d4d61261a30e17b876fa5bf852c6a364
|
/dependencies/windows/ep_usbcamera/code/Media_Foundation.cpp
|
462e0c38c497061a04b56079954bc1e82278e530
|
[
"MIT"
] |
permissive
|
iocafe/pins
|
2fbc94fb16e5913d525606c7da64d5c136be5eb3
|
0d446aee48a4b0dd5b4bbb1eebc8ced14fbe767b
|
refs/heads/master
| 2021-11-27T02:40:38.371957
| 2021-09-11T15:33:03
| 2021-09-11T15:33:03
| 208,724,298
| 2
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,430
|
cpp
|
Media_Foundation.cpp
|
#include <mfapi.h>
#include <mfplay.h>
#include "Media_Foundation.h"
#include "videoDevices.h"
#include "DebugPrintOut.h"
#include "Common.h"
Media_Foundation::Media_Foundation(void)
{
HRESULT hr = MFStartup(MF_VERSION);
if(!SUCCEEDED(hr))
{
DebugPrintOut *DPO = &DebugPrintOut::getInstance();
DPO->printOut(L"MEDIA FOUNDATION: It cannot be created!!!\n");
}
}
Media_Foundation::~Media_Foundation(void)
{
HRESULT hr = MFShutdown();
if(!SUCCEEDED(hr))
{
DebugPrintOut *DPO = &DebugPrintOut::getInstance();
DPO->printOut(L"MEDIA FOUNDATION: Resources cannot be released\n");
}
}
bool Media_Foundation::buildListOfDevices()
{
HRESULT hr = S_OK;
IMFAttributes *pAttributes = NULL;
CoInitialize(NULL);
hr = MFCreateAttributes(&pAttributes, 1);
if (SUCCEEDED(hr))
{
hr = pAttributes->SetGUID(
MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE,
MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_GUID
);
}
if (SUCCEEDED(hr))
{
videoDevices *vDs = &videoDevices::getInstance();
hr = vDs->initDevices(pAttributes);
}
else
{
DebugPrintOut *DPO = &DebugPrintOut::getInstance();
DPO->printOut(L"MEDIA FOUNDATION: The access to the video cameras denied\n");
}
SafeReleaseAllCount(&pAttributes);
return (SUCCEEDED(hr));
}
Media_Foundation& Media_Foundation::getInstance()
{
static Media_Foundation instance;
return instance;
}
|
49d8ef6bf878af91cde727da1b15b010e59b4086
|
2a4ef849551205f4dc8b81c37b1f8d10684ea878
|
/NoteBook/gcd_euclidesEx.cpp
|
8bf9f7ae08c165077af5233ffec8ea376dc5a92b
|
[] |
no_license
|
SergioRt1/Competitive-Programming
|
6b20e87b34cc10d005d0b71105298bc9e55f1faf
|
3913c099649f79d487e10edf5376cc723b3356fa
|
refs/heads/master
| 2023-07-21T08:03:02.008252
| 2023-07-18T00:04:15
| 2023-07-18T00:04:15
| 167,759,672
| 0
| 0
| null | null | null | null |
ISO-8859-1
|
C++
| false
| false
| 1,221
|
cpp
|
gcd_euclidesEx.cpp
|
Máximo común divisor - Algoritmo de Euclides (Euclides (300AC)] {0(log(arb))}
long gcd(long a, long b) {long t; while (b!=0) {t=b; b=a%b; a=t;} return a;}
Máximo común divisor precalculado {O(MP)}
int[][] gcd(int M) { // [O..M][0..M]
int r[][]=new int [M+1][M+1],i,j;
for (i=0; i<=M; i++) for (j=0; j<=M; j++) r[i][j]=i==0?j :(j==0?i:(i>j?r[i%j][j]:r[j%i][i]));
return r;
}
Máximo común divisor - Algoritmo extendido de Euclides [Euclides (300AC)] {O(logz(arb))}
long[] gcdExtendido (long a, long b) { // answer [0]=gcd(a,b), answer[1]*a+answer [2]*b=gcd(a,b)
boolean bs=a<b; long xAnt=1, yAnt=0, x=0, y=1;
if (bs) {long tmp=a; a=b; b=tmp; }
while (b!=0) {
long q=a/b, r=a%b, xTmp=xAnt-q*x,yTmp=yAnt-q*y; a=b; b=r; xAnt=x; yAnt=y; x=xTmp; y=yTmp;
}
return new long[]{a,bs?yAnt: xAnt, bs?xAnt:yAnt};
}
Mínimo común múltiplo {0(log(arb))}
long lcm(long a, long b) {return a*(b/gcd(a,b));}
Primos relativos (coprimos) {O(log (arb))}
boolean primosRelativos (long a, long b) {return gcd(a,b)==1L;}
Aproximación de Stirling - [Abraham de Moivre, James Stirling]
n! =-=raiz(2PIn)(n/e)^n
Teorema pequeño de Fermat a^(p-l)=1 (mod p) donde p es primo y a no es múltiplo de p
|
6342b142bceeab076e5d4ed07f24fdc0596b92a1
|
497c528fd039d617c999e749739dceabca0ee405
|
/WordOffice.cpp
|
296bef43791d0cf9303f6be2b886fa4d46318075
|
[] |
no_license
|
11Zero/MDIMonitor_MFC
|
1bdfe9e02709bdcb00b5cecb9ad454300a27ee18
|
62a8fb88c207d730217ad3feef6a59b8839b6668
|
refs/heads/master
| 2021-01-20T02:19:23.097746
| 2017-03-08T15:40:26
| 2017-03-08T15:40:26
| 83,814,334
| 1
| 1
| null | null | null | null |
GB18030
|
C++
| false
| false
| 15,102
|
cpp
|
WordOffice.cpp
|
#include "WordOffice.h"
CWordOffice::CWordOffice()
{
}
CWordOffice::~CWordOffice()
{
COleVariant vTrue((short)TRUE),
vFalse((short)FALSE),
vOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
m_wdApp.Quit(vFalse, // SaveChanges.
vTrue, // OriginalFormat.
vFalse // RouteDocument.
);
//释放内存申请资源
m_wdFont.ReleaseDispatch();
m_wdParagraph.ReleaseDispatch();
m_wdParagraphs.ReleaseDispatch();
m_wdCell.ReleaseDispatch();
m_wdCells.ReleaseDispatch();
m_wdTable.ReleaseDispatch();
m_wdTables.ReleaseDispatch();
m_wdBorder.ReleaseDispatch();
m_wdBorders.ReleaseDispatch();
//m_wdPagesetup.ReleaseDispatch();
m_wdInlineShape.ReleaseDispatch();
m_wdInlineShapes.ReleaseDispatch();
//m_wdTb.ReleaseDispatch();
m_wdRange.ReleaseDispatch();
m_wdSel.ReleaseDispatch();
//m_wdFt.ReleaseDispatch();
m_wdDoc.ReleaseDispatch();
m_wdDocs.ReleaseDispatch();
m_wdApp.ReleaseDispatch();
}
//操作
BOOL CWordOffice::CreateApp()
{
if (FALSE == m_wdApp.CreateDispatch("Word.Application"))
{
AfxMessageBox("Application创建失败,请确保安装了word 2000或以上版本!", MB_OK|MB_ICONWARNING);
return FALSE;
}
return TRUE;
}
BOOL CWordOffice::CreateDocuments()
{
if (FALSE == CreateApp())
{
return FALSE;
}
m_wdDocs.AttachDispatch(m_wdApp.GetDocuments());
if (!m_wdDocs.m_lpDispatch)
{
AfxMessageBox("Documents创建失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
return TRUE;
}
BOOL CWordOffice::CreateDocument()
{
if (!m_wdDocs.m_lpDispatch)
{
AfxMessageBox("Documents为空!", MB_OK|MB_ICONWARNING);
return FALSE;
}
COleVariant varTrue(short(1),VT_BOOL),vOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
CComVariant Template(_T("")); //没有使用WORD的文档模板
CComVariant NewTemplate(false),DocumentType(0),Visible;
m_wdDocs.Add(&Template,&NewTemplate,&DocumentType,&Visible);
//得到document变量
m_wdDoc = m_wdApp.GetActiveDocument();
if (!m_wdDoc.m_lpDispatch)
{
AfxMessageBox("Document获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
//得到selection变量
m_wdSel = m_wdApp.GetSelection();
if (!m_wdSel.m_lpDispatch)
{
AfxMessageBox("Select获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
//得到RangeW变量
m_wdRange = m_wdDoc.RangeW(vOptional,vOptional);
if(!m_wdRange.m_lpDispatch)
{
AfxMessageBox("RangeW获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
return TRUE;
}
BOOL CWordOffice::Create()
{
if (FALSE == CreateDocuments())
{
return FALSE;
}
return CreateDocument();
}
void CWordOffice::ShowApp()
{
m_wdApp.SetVisible(TRUE);
}
void CWordOffice::HideApp()
{
m_wdApp.SetVisible(FALSE);
}
BOOL CWordOffice::OpenDocument(CString fileName)
{
if (!m_wdDocs.m_lpDispatch)
{
AfxMessageBox("Documents为空!", MB_OK|MB_ICONWARNING);
return FALSE;
}
COleVariant vTrue((short)TRUE),
vFalse((short)FALSE),
vOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR),
vZ((short)0);
COleVariant vFileName(_T(fileName));
//得到document变量
m_wdDoc.AttachDispatch(m_wdDocs.Open(
vFileName, // FileName
vTrue, // Confirm Conversion.
vFalse, // ReadOnly.
vFalse, // AddToRecentFiles.
vOptional, // PasswordDocument.
vOptional, // PasswordTemplate.
vOptional, // Revert.
vOptional, // WritePasswordDocument.
vOptional, // WritePasswordTemplate.
vOptional, // Format. // Last argument for Word 97
vOptional, // Encoding // New for Word 2000/2002
vOptional, // Visible
//如下4个是word2003需要的参数。本版本是word2000。
vOptional, // OpenAndRepair
vZ, // DocumentDirection wdDocumentDirection LeftToRight
vOptional, // NoEncodingDialog
vOptional
) // Close Open parameters
); // Close AttachDispatch
if (!m_wdDoc.m_lpDispatch)
{
AfxMessageBox("Document获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
//得到selection变量
m_wdSel = m_wdApp.GetSelection();
if (!m_wdSel.m_lpDispatch)
{
AfxMessageBox("Select获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
//得到全部DOC的RangeW变量
m_wdRange = m_wdDoc.RangeW(vOptional,vOptional);
if(!m_wdRange.m_lpDispatch)
{
AfxMessageBox("RangeW获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
return TRUE;
}
BOOL CWordOffice::Open(CString fileName)
{
if (FALSE == CreateDocuments())
{
return FALSE;
}
return OpenDocument(fileName);
}
BOOL CWordOffice::SetActiveDocument(short i)
{
COleVariant vIndex(_T(i)),vOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
m_wdDoc.AttachDispatch(m_wdDocs.Item(vIndex));
m_wdDoc.Activate();
if (!m_wdDoc.m_lpDispatch)
{
AfxMessageBox("Document获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
//得到selection变量
m_wdSel = m_wdApp.GetSelection();
if (!m_wdSel.m_lpDispatch)
{
AfxMessageBox("Select获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
//得到全部DOC的RangeW变量
m_wdRange = m_wdDoc.RangeW(vOptional,vOptional);
if(!m_wdRange.m_lpDispatch)
{
AfxMessageBox("RangeW获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
HideApp();
return TRUE;
}
BOOL CWordOffice::SaveDocument()
{
if (!m_wdDoc.m_lpDispatch)
{
AfxMessageBox("Document获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
m_wdDoc.Save();
return TRUE;
}
BOOL CWordOffice::SaveDocumentAs(CString fileName)
{
if (!m_wdDoc.m_lpDispatch)
{
AfxMessageBox("Document获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
COleVariant vTrue((short)TRUE),
vFalse((short)FALSE),
vOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
COleVariant vFileName(_T(fileName));
m_wdDoc.SaveAs(
vFileName, //VARIANT* FileName
vOptional, //VARIANT* FileFormat
vOptional, //VARIANT* LockComments
vOptional, //VARIANT* Password
vOptional, //VARIANT* AddToRecentFiles
vOptional, //VARIANT* WritePassword
vOptional, //VARIANT* ReadOnlyRecommended
vOptional, //VARIANT* EmbedTrueTypeFonts
vOptional, //VARIANT* SaveNativePictureFormat
vOptional, //VARIANT* SaveFormsData
vOptional, //VARIANT* SaveAsAOCELetter
vOptional,
vOptional,
vOptional,
vOptional,
//vOptional,
vOptional
);
return TRUE;
}
BOOL CWordOffice::CloseDocument()
{
COleVariant vTrue((short)TRUE),
vFalse((short)FALSE),
vOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
m_wdDoc.Close(vFalse, // SaveChanges.
vTrue, // OriginalFormat.
vFalse // RouteDocument.
);
m_wdDoc.AttachDispatch(m_wdApp.GetActiveDocument());
if (!m_wdDoc.m_lpDispatch)
{
AfxMessageBox("Document获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
//得到selection变量
m_wdSel = m_wdApp.GetSelection();
if (!m_wdSel.m_lpDispatch)
{
AfxMessageBox("Select获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
//得到全部DOC的RangeW变量
m_wdRange = m_wdDoc.RangeW(vOptional,vOptional);
if(!m_wdRange.m_lpDispatch)
{
AfxMessageBox("RangeW获取失败!", MB_OK|MB_ICONWARNING);
return FALSE;
}
return TRUE;
}
void CWordOffice::CloseApp()
{
COleVariant vTrue((short)TRUE),
vFalse((short)FALSE),
vOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
m_wdDoc.Save();
m_wdApp.Quit(vFalse, // SaveChanges.
vTrue, // OriginalFormat.
vFalse // RouteDocument.
);
//释放内存申请资源
m_wdInlineShape.ReleaseDispatch();
m_wdInlineShapes.ReleaseDispatch();
//m_wdTb.ReleaseDispatch();
m_wdRange.ReleaseDispatch();
m_wdSel.ReleaseDispatch();
//m_wdFt.ReleaseDispatch();
m_wdDoc.ReleaseDispatch();
m_wdDocs.ReleaseDispatch();
m_wdApp.ReleaseDispatch();
}
void CWordOffice::WriteText(CString szText)
{
m_wdSel.TypeText(szText);
}
/*void CWordOffice::WriteText(CString szText,CString FontVal,int FontSize,BOOL IfBold,)
{
m_wdSel.TypeText(szText);
}*/
void CWordOffice::WriteNewLineText(CString szText, int nLineCount /* = 1 */)
{
int i;
if (nLineCount <= 0)
{
nLineCount = 0;
}
for (i = 0; i < nLineCount; i++)
{
m_wdSel.TypeParagraph();
}
WriteText(szText);
}
void CWordOffice::WriteEndLine(CString szText)
{
m_wdRange.InsertAfter(szText);
}
void CWordOffice::WriteEndLine(CString szText,float FontSize,BOOL IfBold,CString FontName)
{
m_wdRange.InsertAfter(szText);
m_wdFont = m_wdRange.GetFont();
m_wdFont.SetSize(FontSize);
m_wdFont.SetBold(IfBold);
m_wdFont.SetName(FontName);
m_wdRange.SetFont(m_wdFont);
}
void CWordOffice::WholeStory()
{
m_wdRange.WholeStory();
}
void CWordOffice::Copy()
{
m_wdRange.CopyAsPicture();
}
void CWordOffice::InsertFile(CString fileName)
{
COleVariant vFileName(fileName),
vTrue((short)TRUE),
vFalse((short)FALSE),
vOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR),
vNull(_T(""));
/*
void InsertFile(LPCTSTR FileName, VARIANT* RangeW, VARIANT* ConfirmConversions, VARIANT* Link, VARIANT* Attachment);
*/
m_wdSel.InsertFile(
fileName,
vNull,
vFalse,
vFalse,
vFalse
);
}
void CWordOffice::InsertShapes(CString fileName)
{
COleVariant vTrue((short)TRUE),
vFalse((short)FALSE),
vOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
m_wdInlineShapes=m_wdSel.GetInlineShapes();
m_wdInlineShape=m_wdInlineShapes.AddPicture(fileName,vFalse,vTrue,vOptional);
}
void CWordOffice::InsertHyperlink(CString fileLink)
{
COleVariant vAddress(_T(fileLink)),vSubAddress(_T(""));
RangeW aRange = m_wdSel.GetRange();
Hyperlinks vHyperlinks(aRange.GetHyperlinks());
vHyperlinks.Add(
aRange, //Object,必需。转换为超链接的文本或图形。
vAddress, //Variant 类型,可选。指定的链接的地址。此地址可以是电子邮件地址、Internet 地址或文件名。请注意,Microsoft Word 不检查该地址的正确性。
vSubAddress, //Variant 类型,可选。目标文件内的位置名,如书签、已命名的区域或幻灯片编号。
vAddress, //Variant 类型,可选。当鼠标指针放在指定的超链接上时显示的可用作“屏幕提示”的文本。默认值为 Address。
vAddress, //Variant 类型,可选。指定的超链接的显示文本。此参数的值将取代由 Anchor 指定的文本或图形。
vSubAddress //Variant 类型,可选。要在其中打开指定的超链接的框架或窗口的名字。
);
vHyperlinks.ReleaseDispatch();
}
LPDISPATCH CWordOffice::InsertTable(int Row, int Col)
{
COleVariant vTrue((short)TRUE),
vFalse((short)FALSE),
vOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
m_wdRange = m_wdSel.GetRange();
m_wdTables = m_wdDoc.GetTables();
m_wdTable=m_wdTables.Add(m_wdRange,Row,Col,vOptional,vOptional);
m_wdBorders=m_wdTable.GetBorders();
m_wdBorders.SetEnable(1);
m_wdSel.EndKey(COleVariant((short)6),COleVariant((short)0));
return m_wdTable;
}
void CWordOffice::AddParagraph(CString szText,float FontSize,BOOL IfBold,CString FontName,int AlignFlag,float FirstLineSpace)
{
m_wdParagraphs=m_wdDoc.GetParagraphs();
m_wdParagraph=m_wdParagraphs.GetLast();
m_wdParagraph.SetAlignment(AlignFlag);
m_wdParagraph.SetCharacterUnitFirstLineIndent(FirstLineSpace);
m_wdFont = m_wdSel.GetFont();
m_wdFont.SetSize(FontSize);
m_wdFont.SetName(FontName);
m_wdFont.SetBold(IfBold);
m_wdSel.TypeText(szText);
m_wdSel.EndKey(COleVariant((short)6),COleVariant((short)0));
}
void CWordOffice::SetTableText(Table m_Table,int RowNum,int ColNum,CString szText,float FontSize,BOOL IfBold,CString FontName,int AlignFlag)
{
Cell m_Cell;
RangeW m_RangeW;
_Font m_Font;
m_Cell.AttachDispatch(m_Table.Cell(RowNum,ColNum));
m_RangeW.AttachDispatch(m_Cell.GetRange());
m_RangeW.SetText(szText);
m_Font.AttachDispatch(m_RangeW.GetFont());
m_Font.SetSize(FontSize);
m_RangeW.Select();
_ParagraphFormat m_ParagraphFormat = ((Selection)(m_wdApp.GetSelection())).GetParagraphFormat();
m_ParagraphFormat.SetAlignment(AlignFlag);
((Selection)(m_wdApp.GetSelection())).SetParagraphFormat(m_ParagraphFormat);
((Cells)((Selection)(m_wdApp.GetSelection())).GetCells()).SetVerticalAlignment(1);
m_Font.SetName(FontName);
m_Font.SetBold(IfBold);
m_RangeW.SetFont(m_Font);
m_Cell.ReleaseDispatch();
m_RangeW.ReleaseDispatch();
m_wdSel.EndKey(COleVariant((short)6),COleVariant((short)0));
return ;
}
void CWordOffice::CellsMerge(Table m_Table, int SX, int SY, int EX, int EY,CString TextStr)
{
Cell m_Cell;
m_Cell.AttachDispatch(m_Table.Cell(SX,SY));
m_Cell.Merge(m_Table.Cell(EX,EY));
m_Cell.ReleaseDispatch();
SetTableText(m_Table,SX,SY,TextStr,12,FALSE,"宋体",1);
}
void CWordOffice::SetColWidth(Table m_Table, int Col, float Percent)
{
((Column)(((Columns)(m_Table.GetColumns())).Item(Col))).SetPreferredWidthType(2);
((Column)(((Columns)(m_Table.GetColumns())).Item(Col))).SetPreferredWidth(Percent);
}
|
d4dd9ad0033a628bd4894806ff824a5c3729f5b7
|
76cb020e670ef876d2b0f52781c8acc57849af62
|
/bruinbase/BTreeIndex.cc
|
8d57eae611b155d24a7157bd9ee628bb93520cd1
|
[] |
no_license
|
kes33/project2
|
5ce9e01f3797bb9e9c7c24a5fd2d322b212db945
|
3f75d537f93208fce9d13b0321fdb37bdcfacd8d
|
refs/heads/master
| 2020-05-18T03:48:36.762308
| 2013-03-11T04:40:28
| 2013-03-11T04:40:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 18,497
|
cc
|
BTreeIndex.cc
|
/*
* Copyright (C) 2008 by The Regents of the University of California
* Redistribution of this file is permitted under the terms of the GNU
* Public License (GPL).
*
* @author Junghoo "John" Cho <cho AT cs.ucla.edu>
* @date 3/24/2008
*/
#include "BTreeIndex.h"
#include "BTreeNode.h"
#include <iostream>
#define TESTING 0
using namespace std;
/*
* BTreeIndex constructor
*/
BTreeIndex::BTreeIndex()
{
rootPid = -1;
}
//assumes indexfile is already open
void BTreeIndex::printRoot(){
if (treeHeight == 0) {
cout << "tree is empty";
return;
}
BTLeafNode * leafNode = new BTLeafNode;
BTNonLeafNode * nonLeafNode = new BTNonLeafNode;
if (treeHeight == 1) { //there is only the root node
//cout << "root is only node in tree:" << endl;
leafNode->read(rootPid, pf);
leafNode->printNode();
}
else {
//read in root
nonLeafNode->read(rootPid, pf);
//cout << "there are " << treeHeight << " levels in tree - root:" << endl;
//nonLeafNode->printAllValues();
}
delete leafNode;
delete nonLeafNode;
}
/*
* Open the index file in read or write mode.
* Under 'w' mode, the index file should be created if it does not exist.
* @param indexname[IN] the name of the index file
* @param mode[IN] 'r' for read, 'w' for write
* @return error code. 0 if no error
*/
RC BTreeIndex::open(const string& indexname, char mode)
{
RC error;
//call pf.open()
error = pf.open(indexname, mode);
if (error != 0)
return error;
//check if new file
if (pf.endPid()==0) {
//cout << indexname << " is empty - initializing rootPid to -1 and treeHeight to 0" << endl;
rootPid = -1;
treeHeight = 0;
//write it immediately to pageId 0 of the file
error = writeMetaData();
if (error != 0)
return error;
}
//else load the meta-info from the first page into member variables rootPid and height
else {
char buf[PageFile::PAGE_SIZE];
int *ptr = (int*)buf;
error = pf.read(0,buf);
if (error != 0)
return error;
rootPid = *ptr;
ptr++;
treeHeight = *ptr;
}
//cout << "info loaded from file " << indexname << ": rootPid is "<< rootPid << " and treeHeight is " << treeHeight << endl;
return 0;
}
/*
* Close the index file.
* @return error code. 0 if no error
*/
RC BTreeIndex::close()
{
return (pf.close());
}
/*
* Insert (key, RecordId) pair to the index.
* @param key[IN] the key for the value inserted into the index
* @param rid[IN] the RecordId for the record being inserted into the index
* @return error code. 0 if no error
*/
RC BTreeIndex::insert(int key, const RecordId& rid)
{
//cout << "BTreeIndex.insert: inserting (key, [rid.pid, rid.sid]) (" << key << ", [" << rid.pid << ", " << rid.sid << "])" << endl;
RC error;
//if tree is empty
if (treeHeight == 0) {
//cout<< "in insert: tree is empty, creating new root node" << endl;
//create an empty leafNode
BTLeafNode* newLeaf = new BTLeafNode;
//insert into new node
error = newLeaf->insert(key, rid);
if (error != 0) {
//cerr << "error inserting in newly created root node in BTreeIndex insert" << endl;
return error;
}
//set nextNodePtr
newLeaf->setNextNodePtr(-1);
//set metadata of index to reflect changes
treeHeight = 1;
rootPid = pf.endPid();
//cout << "new root is getting assigned pageId: " << pf.endPid() << endl;
//write it all back to disk:
error = writeMetaData();
if (error != 0) {
//cerr << "problem writing metaData to disk when creating new root in insert" << endl;
return error;
}
error = newLeaf->write(pf.endPid(), pf);
if (error != 0) {
//cerr << "error writing initialized root node to disk in BTreeIndex insert" << endl;
return error;
}
//cout << "new root is now: " << endl;
//newLeaf->printNode();
delete newLeaf;
return 0;
}
else { //tree is not empty
IndexCursor cursor;
locateForInsert(key, cursor); //will keep track of path followed in vector "parents"
//create new BTLeafNode
BTLeafNode * targetLeaf = new BTLeafNode;
//read the contents
error = targetLeaf->read(cursor.pid, pf);
if (error != 0) {
//cerr << "error reading from leafNode in BTreeIndex insert" << endl;
return error;
}
//try to insert in node
error = targetLeaf->insert(key, rid);
//if node not full - no need to update parent or metadata - write leaf node to disk and return
if (error != RC_NODE_FULL) {
//cout << "successfully inserted in leaf node - no update of parent necessary" << endl;
error = targetLeaf->write(cursor.pid, pf);
if (error != 0) {
//cerr << "error writing updated leafNode in BTreeIndex when no parent update necessary" << endl;
return error;
}
//cout << "leaf node is now: " << endl;
targetLeaf->printNode();
delete targetLeaf;
return 0;
}
else { //need to create sibling node
//create new leaf node
BTLeafNode * siblingLeaf = new BTLeafNode;
int siblingKey; //will be filled by call to insertAndSplit with new key for parent
int siblingPid = pf.endPid(); //set pid for new sibling node
int siblingNodePtr = targetLeaf->getNextNodePtr();
error = targetLeaf->insertAndSplit(key, rid, *siblingLeaf, siblingKey);
if (error != 0) {
//cerr << "error calling leafNode insertAndSplit from BTreeIndex insert" << endl;
return error;
}
//reset node pointers:
siblingLeaf->setNextNodePtr(siblingNodePtr);
targetLeaf->setNextNodePtr(siblingPid);
//write to disk
error = siblingLeaf->write(siblingPid, pf);
if (error != 0) {
//cerr << "error writing newly created sibling node at leaf level insert in BTreeIndex insert" << endl;
return error;
}
error = targetLeaf->write(cursor.pid, pf);
if (error != 0) {
//cerr << "error writing targetLeaf to disk in BTreeIndex insert after split of leaf node" << endl;
return error;
}
//cout << "newly split leaf nodes are: " << endl;
//cout << "on left: " << endl;
//targetLeaf->printNode();
//cout << "on right: " << endl;
//siblingLeaf->printNode();
//delete leaf nodes created
delete siblingLeaf;
delete targetLeaf;
//update parent
//cursor.pid contains pageId of node on left, siblingKey contains value to get pushed up
//and siblingPid contains pageId of node on right
//cout << "Their parent node (pageId:";
//if (parents.empty())
//cout << "no parent";
//else
//cout << parents.top();
//cout << ") will now be updated: "<< cursor.pid << " on left, "<< siblingKey << " as key pushed up, and " << siblingPid << " on right" << endl;
updateParent(cursor.pid, siblingKey, siblingPid);
}
}
return 0;
}
//helper function called to recursively update the BTreeIndex after an insertion at the leaf level, until no splits
RC BTreeIndex::updateParent(PageId left, int key, PageId right) {
RC error;
//check to see if have just split the root node
if (parents.empty()) {
//cout << "just split root - initializing new root" << endl;
//create new non-leaf node
BTNonLeafNode * newRoot = new BTNonLeafNode;
//fill it with the appropriate values
error = newRoot->initializeRoot(left, key, right);
if (error != 0) {
//cout << "error initializing new root after insert" << endl;
return error;
}
//write new root to disk
PageId newRootPid = pf.endPid();
newRoot->write(newRootPid, pf);
//change metadata and write to disk
treeHeight++;
rootPid = newRootPid;
writeMetaData();
//printRoot();
delete newRoot;
return 0;
}
else {
//get parent node
PageId parentPid = parents.top();
parents.pop();
BTNonLeafNode * parent = new BTNonLeafNode;
error = parent->read(parentPid, pf);
if (error != 0) {
//cerr << "error reading in parent node in BTreeIndex updateParent" << endl;
delete parent;
return error;
}
//cout << "parent node being updated is: " << endl;
//parent->printAllValues();
//cout << "left is " << left << endl;
//cout << "right is " << right << endl;
//insert value in parent - if insert works, we're done
error = parent->insert(key, right);
if (error !=0) {
//cout << "parent with pid " << parentPid << " is full on update after insert in BTreeIndex - splitting" << endl;
//split node
int midKey;
BTNonLeafNode * sibling = new BTNonLeafNode;
//cout << "calling insertAndSplit(" << key << ", " << right << ", " << "sibling" << ", " << midKey << ")" << endl;
error = parent->insertAndSplit(key, right, *sibling, midKey);
if (error != 0) {
//cerr << "error in insertAndSplit in updateParents of BTreeIndex" << endl;
delete parent;
delete sibling;
return error;
}
//write these new nodes to disk
PageId siblingPid = pf.endPid();
error = sibling->write(siblingPid, pf);
if (error!=0) {
//cerr << "error writing new sibling to disk after split in updateParents in BTreeIndex" << endl;
delete parent;
delete sibling;
return error;
}
error = parent->write(parentPid, pf);
if (error!=0) {
//cerr << "error writing parent to disk after split in updateParents in BTreeIndex" << endl;
delete parent;
delete sibling;
return error;
}
//cout << "node was split into the following nodes:" << endl;
//cout << "on left " << endl;
//parent->printAllValues();
//cout << "on right " << endl;
//sibling->printAllValues();
//cout << "calling update on next parent (PageId ";
//if (parents.empty())
//cout << "no parent";
//else
//cout << parents.top();
//cout<< ") with: "<< parentPid << " on left, "<< midKey << " as key pushed up, and " << siblingPid << "on right" << endl;
delete sibling;
delete parent;
//update parents recursively
updateParent(parentPid, midKey, siblingPid);
return 0;
}
else {
//cout << "update of parents completed successfully at node " << parentPid << " which is now: " << endl;
//parent->printAllValues();
//write newly updated node to disk
error = parent->write(parentPid, pf);
if (error!=0) {
//cerr << "error writing parent to disk after insertion in updateParents in BTreeIndex" << endl;
delete parent;
return error;
}
//empty the parents stack
while (!parents.empty()) {
parents.pop();
}
//cout << "insertion complete, cleared the parents stack" << endl;
delete parent;
}
}
return 0;
}
RC BTreeIndex::locateForInsert(int searchKey, IndexCursor& cursor) {
RC rc;
PageId pid = rootPid;
while(!parents.empty())
parents.pop();
//cout << "locate: looking for searchKey " << searchKey << endl;
// return error if tree height == 0
if (treeHeight == 0) {
//cout << "error: treeHeight = 0" << endl;
return RC_NO_SUCH_RECORD;
}
// treeHeight has more than one node
if (treeHeight > 1) {
// cout << "locate: treeHeight > 1, iterating through nodes" << endl;
BTNonLeafNode nonLeafNode;
// descend tree until leaf node is reached
int height = 1;
while (height < treeHeight) {
// update stack containing PageIds
parents.push(pid);
// read current node into memory
if ((rc = nonLeafNode.read(pid, pf)) != 0)
return rc;
// get pointer to child node
if ((rc = nonLeafNode.locateChildPtr(searchKey, pid)) != 0)
return rc;
// update current height
height++;
}
// cout << "locate: treeHeight > 1, leaf level reached" << endl;
} // leaf node reached
// read node into memory
// (if tree contains only the root node (treeHeight == 1), code starts here)
//cout << "locate: reading leaf node" << endl;
BTLeafNode leafNode;
if ((rc = leafNode.read(pid, pf)) != 0)
return rc;
// find entry for searchKey within leaf node
//cout << "locate: locating searchKey in leaf node" << endl;
int eid;
if ((rc = leafNode.locate(searchKey, eid)) != 0) { // new key will be largest in node
//cout << "key is largest in current leaf - will insert at back" << endl;
cursor.pid = pid;
cursor.eid = -1;
}
else {
// save PageId, entry ID in cursor and return
//cout << "locate: saving pid and eid to cursor" << endl;
cursor.pid = pid;
cursor.eid = eid;
}
return 0;
}
/*
* Find the leaf-node index entry whose key value is larger than or
* equal to searchKey, and output the location of the entry in IndexCursor.
* IndexCursor is a "pointer" to a B+tree leaf-node entry consisting of
* the PageId of the node and the SlotID of the index entry.
* Note that, for range queries, we need to scan the B+tree leaf nodes.
* For example, if the query is "key > 1000", we should scan the leaf
* nodes starting with the key value 1000. For this reason,
* it is better to return the location of the leaf node entry
* for a given searchKey, instead of returning the RecordId
* associated with the searchKey directly.
* Once the location of the index entry is identified and returned
* from this function, you should call readForward() to retrieve the
* actual (key, rid) pair from the index.
* @param key[IN] the key to find.
* @param cursor[OUT] the cursor pointing to the first index entry
* with the key value.
* @return error code. 0 if no error.
*/
RC BTreeIndex::locate(int searchKey, IndexCursor& cursor) {
RC rc;
PageId pid = rootPid;
while(!parents.empty())
parents.pop();
//cout << "locate: looking for searchKey " << searchKey << endl;
// return error if tree height == 0
if (treeHeight == 0) {
//cout << "error: treeHeight = 0" << endl;
return RC_NO_SUCH_RECORD;
}
// treeHeight has more than one node
if (treeHeight > 1) {
//cout << "locate: treeHeight > 1, iterating through nodes" << endl;
BTNonLeafNode nonLeafNode;
// descend tree until leaf node is reached
int height = 1;
while (height < treeHeight) {
// update stack containing PageIds
parents.push(pid);
// read current node into memory
if ((rc = nonLeafNode.read(pid, pf)) != 0)
return rc;
// get pointer to child node
if ((rc = nonLeafNode.locateChildPtr(searchKey, pid)) != 0)
return rc;
// update current height
height++;
}
//cout << "locate: treeHeight > 1, leaf level reached" << endl;
} // leaf node reached
// read node into memory
// (if tree contains only the root node (treeHeight == 1), code starts here)
//cout << "locate: reading leaf node" << endl;
BTLeafNode leafNode;
if ((rc = leafNode.read(pid, pf)) != 0)
return rc;
// leafNode.printNode();
// find entry for searchKey within leaf node
//cout << "locate: locating searchKey in leaf node" << endl;
int eid;
if ((rc = leafNode.locate(searchKey, eid)) != 0) {
// entry was not found within leaf node, check next leaf node
// if there is no next leaf node, return error
pid = leafNode.getNextNodePtr();
//cout << "next node pointer: " << pid << endl;
if (pid == -1)
return RC_END_OF_TREE;
if ((rc = leafNode.read(pid, pf)) != 0)
return rc;
// if next leaf node also does not contain searchKey, return error
if ((rc = leafNode.locate(searchKey, eid)) != 0) {
//cout << "error: neither left or right leaf node contains searchKey" << endl;
return rc;
}
}
// save PageId, entry ID in cursor and return
//cout << "locate: saving pid and eid to cursor" << endl;
cursor.pid = pid;
cursor.eid = eid;
return 0;
}
/*
* Read the (key, rid) pair at the location specified by the index cursor,
* and move foward the cursor to the next entry.
* @param cursor[IN/OUT] the cursor pointing to an leaf-node index entry in the b+tree
* @param key[OUT] the key stored at the index cursor location.
* @param rid[OUT] the RecordId stored at the index cursor location.
* @return error code. 0 if no error
*/
RC BTreeIndex::readForward(IndexCursor& cursor, int& key, RecordId& rid) {
RC rc;
BTLeafNode node;
if (TESTING) cout << "readForward: starting function" << endl;
// read the page given by cursor into memory
if (TESTING) cout << "readForward: reading page into memory" << endl;
if ((rc = node.read(cursor.pid, pf)) != 0)
return rc;
//node.printNode();
// read entry and store key and rid
if (TESTING) cout << "readForward: reading entry from page" << endl;
if ((rc = node.readEntry(cursor.eid, key, rid)) != 0)
return rc;
if (TESTING) cout << "readForward: rid of " << cursor.eid << " is (" << rid.pid << ", " << rid.sid << ")" << endl;
// update cursor
if (TESTING) cout << "readForward: updating cursor to point to next entry" << endl;
if (cursor.eid == node.getKeyCount() - 1) {
if (TESTING) cout << "readForward: cursor is at last key, setting pid to next node ptr" << endl;
cursor.eid = 0;
cursor.pid = (int) node.getNextNodePtr();
// if next pid is -1, there is no next node, signifying the end of the tree
if (cursor.pid == -1)
return RC_END_OF_TREE;
}
else {
if (TESTING) cout << "readForward: incrementing cursor" << endl;
cursor.eid++;
}
if (TESTING) cout << "readForward: done with function" << endl;
return 0;
}
//--------------------------------helper functions------------------------------
// void BTreeIndex::printTree() {
// if (treeHeight == 0)
// cout << "tree has no nodes" << endl;
// else if (treeHeight == 1) {
// BTLeafNode node;
// node.read(rootPid, pf);
// node.printNode();
// }
// else {
// BTNonLeafNode node;
// node.read(rootPid, pf);
// node.printAllValues();
// }
// }
RC BTreeIndex::writeMetaData() {
RC error;
char buf[PageFile::PAGE_SIZE];
int *ptr = (int*)buf;
*ptr = rootPid;
ptr++;
*ptr = treeHeight;
error=pf.write(0, buf);
if (error!=0)
return error;
return 0;
}
|
c6f3a2b4cb1fb97ff14a20176cfe4e8dee02a2f2
|
4e6e1e94f239d7a7d88403925f8f59e06b318989
|
/anagram.cpp
|
895702c015d1b4196277ea31801dae8d4fb7aa69
|
[] |
no_license
|
gpNethen/anagram
|
98dbb165709b87a580b6e4ee0acde15947358730
|
85e7813174d76983a13ce948f66f979b5e201f3b
|
refs/heads/master
| 2020-04-30T10:15:02.013361
| 2019-03-20T16:22:51
| 2019-03-20T16:22:51
| 176,772,207
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 408
|
cpp
|
anagram.cpp
|
#include <iostream>
#include <string>
using namespace std;
int main()
{
string stringIn;
cout << "This program analyzes two lines of input and confirms/disconfirms" << endl;
cout << "Their status as an anagram in relation to one another." << endl << endl;
cout << "Please enter your first line below:" << endl << " ";
cin >> stringIn;
cout << stringIn << endl << endl;
return 0;
}
|
df9dbaef063a36fc7949f45243df695a0685b82c
|
efd43a5e5e4b2f0827140b8f3dc836983b2e0016
|
/Hackerrank/BeautifulTriplets.cpp
|
e9ccc3eb5442976d70c5db173e68283ba69dd06a
|
[] |
no_license
|
praveenagrawal/practiceCodes
|
c5641c01f41046797e2be917969599a8eb98458b
|
62b3455d011bfe6681f00c43fc2977794612cd04
|
refs/heads/master
| 2020-12-24T07:18:27.424580
| 2019-08-18T13:00:17
| 2019-08-18T13:00:17
| 58,453,613
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 618
|
cpp
|
BeautifulTriplets.cpp
|
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int n,d;
cin>>n>>d;
int M = 20001;
std::vector<int> a(n);
std::vector<bool> status(M,0);
int max = 0;
for(int i=0;i<n;i++)
{
cin>>a[i];
if(!status[a[i]])
status[a[i]]=true;
if(a[i]>max)
max = a[i];
}
if(max==M-1)
max = max-d;
int count = 0;
for(int i=0;i<max;i++)
{
if(status[i] && status[i+d] && status[i+2*d])
count++;
}
cout<<count;
return 0;
}
|
89d8bd799134627e203f2e255987620924b99ead
|
8ae41115b878aa5c14fbf13ddbc681282762ae32
|
/FushigiDungeon/HUD.h
|
eb91f232480766b27e70c3b133c8463b5337ab91
|
[] |
no_license
|
assbee0/FushigiDungeonCplus
|
be0aab3151430204d379e70723ccee3a44d7a074
|
e83978ba394aae116412b3e0ba46bfc97afa8d37
|
refs/heads/master
| 2023-03-07T15:22:08.795508
| 2021-02-20T15:11:53
| 2021-02-20T15:11:53
| 332,395,764
| 1
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 513
|
h
|
HUD.h
|
#pragma once
#include "UIScreen.h"
class HUD : public UIScreen
{
public:
HUD(class Game* game);
// Should be called when floor is changed to update the status
void SetFloor(int f) { mFloor = f; UpdateValues(); }
// Should be called when any of the values (except floor) are changed to update the status
void SetStatus(int l, int c, int m, int a, int d, int e);
private:
// Update the HUD text
void UpdateValues();
int mFloor;
int mLevel;
int mCurHp;
int mMaxHp;
int mAtk;
int mDef;
int mExp;
};
|
a0cdb6a5756ddcf37a127c20e0730a5740b3d6b5
|
af3e74628def42209bbd059fe91aedf9dd7e7b40
|
/Dan01/vezba1.cpp
|
a12d9c324d2c2de6625999e1b7078afb2233aa08
|
[] |
no_license
|
mirkocuidado/RTRK-tasks
|
46e1a6d1fcd1d05275460ee0b71dabfcd27dbe42
|
53b877de4e75154c23ff26433b9797723179f281
|
refs/heads/master
| 2022-12-13T06:58:32.321702
| 2020-09-16T22:20:29
| 2020-09-16T22:20:29
| 296,159,645
| 2
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 617
|
cpp
|
vezba1.cpp
|
#include <iostream>
struct Node {
Node() {}
Node(int e, Node* n) : elem(e), next(n) {}
int elem = 0;
Node* next = nullptr;
};
void add(Node& n, int x) {
n.next = new Node(x, n.next);
}
int main() {
Node head;
add(head, 1);
add(head, 2);
add(head, 3);
add(head, 4);
add(head, 5);
for (Node* p = head.next; p != nullptr; p = p->next) {
std::cout << p->elem << " ";
}
std::cout << std::endl;
for (int x : head) {
std::cout << x << " ";
}
std::cout << std::endl;
for (int& x : head) {
x = 7;
}
for (const int& x : head) {
std::cout << x << " ";
}
std::cout << std::endl;
return 0;
}
|
f8ca5d9a05c741309f8e694158a248bcf52f8359
|
8f532ff3a52ed60e391eaa61ecb13700564cdc96
|
/spring.cc
|
1dc45ed29beba314bb3548e871c3713dbfd67cf5
|
[] |
no_license
|
ostingrey/tochnog
|
2f3e085eb818c18381ad520076f52110cbfad26f
|
a2407e0059d681d7e76d37847b5ebc2822e04c32
|
refs/heads/master
| 2023-03-16T21:04:17.545278
| 2016-10-23T22:06:34
| 2016-10-23T22:06:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 7,985
|
cc
|
spring.cc
|
/*
Copyright (C) 1998 Dennis Roddeman
email: dennis.roddeman@feat.nl
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation
59 Temple Place, Suite 330, Boston, MA, 02111-1307, USA
*/
#include "tochnog.h"
void spring( long int element, long int name, long int element_group,
double coord[], double old_dof[], double new_dof[],
double element_lhside[], double element_matrix[],
double element_rhside[] )
{
long int idim=0, jdim=0, ipuknwn=0, iuknwn=0, jpuknwn=0, juknwn=0,
inol=0, jnol=0, indx=0, nnol=0, swit=0, length=0, ldum=0,
icontrol=0, options_convection=-YES, idum[1], options_mesh[MDIM];
double dtime=0., group_spring_stiffness=0.,
group_spring_plasti=1.e20, spring_force=0.,
fac=0., tmp=0., old_length=0., new_length=0., incremental_length=0.,
ddum[1], group_spring_direction[MDIM], initial_coord[MNOL*MDIM],
old_coord[MNOL*MDIM], new_coord[MNOL*MDIM], work[MDIM];
swit = set_swit(element,-1,"spring");
if ( swit ) pri( "In routine SPRING." );
if ( db_active_index( GROUP_SPRING_STIFFNESS, element_group, VERSION_NORMAL ) ) {
db( ICONTROL, 0, &icontrol, ddum, ldum, VERSION_NORMAL, GET );
db( DTIME, 0, idum, &dtime, ldum, VERSION_NEW, GET );
db( GROUP_SPRING_STIFFNESS, element_group, idum, &group_spring_stiffness,
ldum, VERSION_NORMAL, GET_IF_EXISTS );
db( GROUP_SPRING_PLASTI, element_group, idum, &group_spring_plasti,
ldum, VERSION_NORMAL, GET_IF_EXISTS );
if ( materi_velocity_integrated ) {
db( OPTIONS_CONVECTION, 0, &options_convection, ddum, ldum, VERSION_NORMAL, GET_IF_EXISTS );
db( CONTROL_OPTIONS_CONVECTION, icontrol, &options_convection, ddum,
ldum, VERSION_NORMAL, GET_IF_EXISTS );
db( OPTIONS_MESH, 0, options_mesh, ddum, ldum, VERSION_NORMAL, GET );
for ( idim=0; idim<ndim; idim++ ) {
if ( options_mesh[idim]==-FIXED_IN_SPACE ) {
if ( options_convection==-YES ) {
pri( "Error: set OPTIONS_CONVECTION to -NO in analysis with springs." );
exit_tn_on_error();
}
}
}
}
if ( name==-SPRING1 )
nnol = 1;
else {
assert ( name==-SPRING2 );
nnol = 2;
}
// geometry
for ( idim=0; idim<ndim; idim++ ) {
if ( materi_velocity_integrated ) {
for ( inol=0;inol<nnol; inol++ ) {
initial_coord[inol*ndim+idim] =
coord[inol*ndim+idim];
if ( options_mesh[idim]==-FOLLOW_MATERIAL )
initial_coord[inol*ndim+idim] -=
old_dof[inol*nuknwn+veli_indx+idim*nder];
old_coord[inol*ndim+idim] =
initial_coord[inol*ndim+idim] +
old_dof[inol*nuknwn+veli_indx+idim*nder];
new_coord[inol*ndim+idim] =
old_coord[inol*ndim+idim] +
new_dof[inol*nuknwn+vel_indx+idim*nder]*dtime;
}
}
else {
assert( materi_displacement );
for ( inol=0;inol<nnol; inol++ ) {
initial_coord[inol*ndim+idim] =
coord[inol*ndim+idim];
old_coord[inol*ndim+idim] =
initial_coord[inol*ndim+idim] +
old_dof[inol*nuknwn+dis_indx+idim*nder];
new_coord[inol*ndim+idim] =
old_coord[inol*ndim+idim] +
new_dof[inol*nuknwn+vel_indx+idim*nder]*dtime;
}
}
}
// deformation
if ( !db( GROUP_SPRING_DIRECTION, element_group, idum,
group_spring_direction, ldum, VERSION_NORMAL, GET_IF_EXISTS ) ) {
if ( name==-SPRING1 )
db_error( GROUP_SPRING_DIRECTION, element_group );
else {
assert ( name==-SPRING2 );
array_subtract( &new_coord[ndim], &new_coord[0], group_spring_direction, ndim );
}
}
if ( !array_normalize( group_spring_direction, ndim ) ) {
pri( "Error: please specify a direction in GROUP_SPRING_DIRECTION." );
exit(TN_EXIT_STATUS);
}
if ( name==-SPRING1 ) {
old_length = array_distance( &old_coord[0],
&initial_coord[0], work, ndim );
new_length = array_distance( &new_coord[0],
&initial_coord[0], work, ndim );
}
else {
old_length = array_distance( &old_coord[0],
&old_coord[ndim], work, ndim );
new_length = array_distance( &new_coord[0],
&new_coord[ndim], work, ndim );
}
incremental_length = new_length - old_length;
// spring force
db( ELEMENT_SPRING_FORCE, element, idum, &spring_force,
length, VERSION_NORMAL, GET_IF_EXISTS );
spring_force += group_spring_stiffness * incremental_length;
if ( spring_force>group_spring_plasti ) {
spring_force = group_spring_plasti;
group_spring_stiffness = 0.;
}
else if ( spring_force<-group_spring_plasti ) {
spring_force = -group_spring_plasti;
group_spring_stiffness = 0.;
}
// nodal force
for ( idim=0; idim<ndim; idim++ ) {
iuknwn = vel_indx + idim*nder;
ipuknwn = iuknwn/nder;
if ( name==-SPRING1 ) {
fac = -1.;
tmp = fac*spring_force*group_spring_direction[idim];
element_rhside[indx] += tmp;
for ( jdim=0; jdim<ndim; jdim++ ) {
juknwn = vel_indx + jdim*nder;
indx = ipuknwn*nnol*npuknwn+jpuknwn;
tmp = fac*group_spring_stiffness*dtime*
scalar_dabs(group_spring_direction[idim]*group_spring_direction[jdim]);
element_matrix[indx] += tmp;
if ( jdim==idim )
element_lhside[inol*npuknwn+ipuknwn] += tmp;
}
}
else {
assert( name==-SPRING2 );
for ( inol=0; inol<nnol; inol++ ) {
if ( inol==0 )
fac = +1.;
else
fac = -1.;
indx = inol*npuknwn+ipuknwn;
tmp = fac*spring_force*group_spring_direction[idim];
element_rhside[indx] += tmp;
for ( jdim=0; jdim<ndim; jdim++ ) {
juknwn = vel_indx + jdim*nder;
jpuknwn = juknwn/nder;
for ( jnol=0; jnol<nnol; jnol++ ) {
if ( jnol==inol )
fac = +1.;
else
fac = -1.;
indx = inol*npuknwn*nnol*npuknwn+ipuknwn*nnol*npuknwn+
jnol*npuknwn+jpuknwn;
tmp = fac*group_spring_stiffness*dtime*
scalar_dabs(group_spring_direction[idim]*group_spring_direction[jdim]);
element_matrix[indx] += tmp;
if ( jnol==inol && jdim==idim )
element_lhside[inol*npuknwn+ipuknwn] += tmp;
}
}
}
}
}
length = ndim;
db( ELEMENT_SPRING_DIRECTION, element, idum, group_spring_direction,
length, VERSION_NEW, PUT );
length = 1;
db( ELEMENT_SPRING_FORCE, element, idum, &spring_force,
length, VERSION_NEW, PUT );
if ( swit ) {
pri( "initial_coord", initial_coord, nnol, ndim );
pri( "new_coord", new_coord, nnol, ndim );
pri( "group_spring_direction", group_spring_direction, ndim );
pri( "old_length", old_length );
pri( "new_length", new_length );
pri( "incremental_length", incremental_length );
pri( "spring_force", spring_force );
pri( "element_lhside", element_lhside, nnol, npuknwn );
pri( "element_rhside", element_rhside, nnol, npuknwn );
}
}
if ( swit ) pri( "Out function SPRING" );
}
|
3bc294b0ed95e4e1e3011c89afe54361387609ec
|
a97b9ad50e283b4e930ab59547806eb303b52c6f
|
/class/4nov_plate/340/p
|
a27ed0a3471a1569093ebd68792006da29714bdd
|
[] |
no_license
|
harrisbk/OpenFOAM_run
|
fdcd4f81bd3205764988ea95c25fd2a5c130841b
|
9591c98336561bcfb3b7259617b5363aacf48067
|
refs/heads/master
| 2016-09-05T08:45:27.965608
| 2015-11-16T19:08:34
| 2015-11-16T19:08:34
| 42,883,543
| 1
| 2
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 114,704
|
p
|
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "340";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField nonuniform List<scalar>
10000
(
0.00238007
0.00240699
0.00243425
0.00248861
0.00253571
0.00260944
0.00267159
0.00276305
0.00283732
0.00294746
0.00303355
0.00316687
0.00326643
0.00343325
0.00355195
0.00377424
0.003932
0.00426004
0.0045268
0.00505533
0.00238145
0.00240514
0.00243453
0.00248811
0.00253563
0.00260893
0.00267136
0.00276218
0.00283697
0.00294567
0.00303313
0.00316276
0.00326623
0.0034231
0.00355197
0.00374801
0.0039248
0.00418344
0.00444679
0.00477687
0.0023812
0.00240448
0.0024344
0.00248756
0.0025353
0.00260801
0.00267079
0.00276049
0.00283599
0.00294238
0.00303139
0.00315588
0.00326282
0.00340763
0.00354318
0.00371038
0.00389192
0.00407781
0.00430261
0.00444162
0.00238078
0.00240405
0.00243397
0.00248682
0.00253464
0.00260668
0.00266978
0.002758
0.00283432
0.00293753
0.00302829
0.00314622
0.00325585
0.00338789
0.00352412
0.00366739
0.00383415
0.00397346
0.00414067
0.00421463
0.00238035
0.00240316
0.00243345
0.00248556
0.00253389
0.00260463
0.00266857
0.00275436
0.00283215
0.0029308
0.00302394
0.00313346
0.00324571
0.00336332
0.00349766
0.003618
0.00376562
0.00387196
0.00399301
0.00404312
0.00237965
0.00240227
0.00243259
0.00248424
0.00253267
0.00260234
0.00266662
0.00275021
0.0028287
0.00292315
0.00301708
0.0031193
0.00323062
0.00333666
0.00346309
0.00356621
0.0036912
0.00377476
0.00386072
0.00389423
0.00237875
0.0024011
0.00243168
0.00248236
0.00253134
0.00259924
0.00266436
0.00274489
0.00282445
0.00291388
0.00300832
0.00310301
0.0032116
0.00330741
0.00342283
0.00351254
0.00361478
0.00368238
0.00374198
0.00376562
0.00237763
0.00239981
0.00243039
0.00248031
0.0025295
0.00259582
0.00266132
0.00273898
0.00281885
0.00290362
0.00299717
0.00308517
0.00318891
0.0032759
0.00337894
0.00345724
0.00353971
0.00359448
0.0036361
0.00365265
0.00237643
0.00239806
0.00242897
0.00247777
0.00252738
0.00259174
0.00265767
0.00273219
0.00281198
0.00289222
0.00298369
0.00306579
0.00316294
0.00324243
0.00333258
0.00340109
0.00346703
0.0035112
0.00354064
0.00355161
0.00237497
0.00239611
0.00242724
0.00247492
0.00252479
0.00258716
0.00265324
0.00272466
0.00280377
0.00287973
0.00296812
0.00304483
0.00313449
0.00320711
0.00328508
0.00334471
0.00339737
0.00343266
0.0034537
0.00346052
0.00237331
0.00239383
0.00242524
0.00247166
0.00252174
0.00258205
0.00264798
0.00271639
0.00279415
0.00286618
0.00295052
0.00302235
0.00310402
0.00317021
0.00323711
0.00328858
0.00333072
0.0033586
0.00337371
0.0033775
0.00237139
0.00239126
0.00242291
0.00246802
0.00251819
0.0025764
0.00264187
0.00270735
0.00278318
0.00285154
0.00293116
0.00299839
0.00307206
0.00313207
0.00318921
0.00323324
0.00326705
0.00328883
0.00329961
0.00330119
0.0023692
0.00238839
0.00242023
0.00246398
0.00251408
0.0025702
0.00263487
0.00269756
0.00277088
0.00283579
0.00291024
0.00297302
0.00303897
0.00309299
0.00314168
0.00317898
0.00320614
0.00322295
0.00323046
0.00323041
0.00236673
0.00238518
0.00241718
0.00245952
0.0025094
0.00256345
0.00262695
0.00268698
0.00275732
0.00281893
0.00288798
0.00294636
0.00300508
0.00305331
0.00309473
0.00312604
0.00314782
0.00316061
0.00316559
0.00316435
0.00236395
0.00238165
0.00241372
0.00245465
0.00250411
0.00255614
0.00261813
0.0026756
0.00274258
0.00280096
0.00286456
0.00291856
0.00297061
0.00301331
0.00304848
0.00307454
0.00309191
0.00310146
0.00310444
0.00310228
0.00236084
0.00237776
0.00240984
0.00244934
0.00249818
0.00254824
0.00260839
0.00266339
0.00272673
0.0027819
0.00284014
0.00288977
0.00293575
0.00297324
0.00300302
0.00302451
0.00303823
0.00304516
0.00304655
0.00304368
0.00235738
0.00237352
0.0024055
0.00244359
0.00249159
0.00253973
0.00259776
0.00265034
0.00270987
0.00276181
0.00281487
0.00286016
0.00290064
0.00293329
0.00295839
0.00297596
0.00298663
0.00299141
0.00299152
0.0029881
0.00235355
0.0023689
0.00240068
0.00243737
0.00248434
0.0025306
0.00258626
0.00263643
0.00269206
0.00274073
0.00278887
0.0028299
0.0028654
0.00289361
0.00291465
0.00292883
0.00293695
0.00293997
0.00293904
0.00293518
0.00234933
0.00236389
0.00239535
0.00243067
0.0024764
0.00252083
0.00257391
0.00262167
0.00267338
0.00271875
0.00276223
0.00279913
0.00283014
0.00285431
0.00287179
0.00288309
0.00288904
0.00289061
0.00288883
0.00288462
0.00234469
0.00235848
0.0023895
0.00242348
0.00246777
0.00251039
0.00256075
0.00260606
0.00265391
0.00269594
0.00273506
0.00276798
0.00279494
0.00281546
0.00282984
0.00283864
0.00284278
0.00284312
0.00284066
0.00283616
0.00233961
0.00235265
0.00238311
0.00241576
0.00245846
0.00249927
0.00254679
0.00258962
0.00263369
0.00267238
0.00270743
0.00273659
0.00275987
0.00277712
0.00278878
0.00279544
0.00279802
0.00279735
0.00279431
0.00278959
0.00233408
0.00234638
0.00237616
0.0024075
0.00244846
0.00248744
0.00253209
0.00257238
0.00261279
0.00264816
0.00267942
0.00270503
0.00272498
0.00273932
0.00274859
0.0027534
0.00275467
0.00275314
0.00274962
0.00274471
0.00232806
0.00233965
0.00236863
0.00239869
0.00243778
0.00247492
0.00251665
0.00255436
0.00259125
0.00262337
0.00265109
0.0026734
0.00269034
0.00270208
0.00270924
0.00271247
0.0027126
0.00271035
0.00270644
0.00270138
0.00232154
0.00233245
0.00236052
0.00238929
0.00242642
0.00246168
0.00250051
0.0025356
0.00256913
0.00259807
0.0026225
0.00264175
0.00265597
0.0026654
0.00267072
0.00267256
0.00267173
0.00266887
0.00266462
0.00265945
0.00231451
0.00232477
0.0023518
0.0023793
0.00241439
0.00244774
0.00248369
0.00251616
0.00254647
0.00257235
0.00259372
0.00261016
0.00262191
0.00262928
0.00263298
0.00263363
0.00263197
0.00262859
0.00262406
0.00261879
0.00230693
0.00231656
0.00234249
0.00236869
0.00240169
0.00243309
0.00246623
0.00249606
0.00252331
0.00254626
0.0025648
0.00257865
0.00258817
0.00259371
0.002596
0.0025956
0.00259323
0.0025894
0.00258465
0.0025793
0.00229879
0.00230783
0.00233255
0.00235746
0.00238834
0.00241775
0.00244814
0.00247536
0.00249971
0.00251987
0.00253577
0.00254726
0.00255478
0.0025587
0.00255973
0.00255843
0.00255544
0.00255124
0.00254629
0.00254089
0.00229008
0.00229855
0.002322
0.00234559
0.00237434
0.00240173
0.00242946
0.0024541
0.0024757
0.00249323
0.00250669
0.00251602
0.00252173
0.00252421
0.00252414
0.00252205
0.00251854
0.00251402
0.0025089
0.00250347
0.00228078
0.0022887
0.00231082
0.00233308
0.00235969
0.00238505
0.0024102
0.00243232
0.00245131
0.00246637
0.00247758
0.00248496
0.00248904
0.00249023
0.0024892
0.00248642
0.00248245
0.00247766
0.00247242
0.00246695
0.00227087
0.00227826
0.00229901
0.00231991
0.00234442
0.00236773
0.00239038
0.00241006
0.0024266
0.00243934
0.00244848
0.00245407
0.0024567
0.00245675
0.00245487
0.0024515
0.00244713
0.00244211
0.00243676
0.00243128
0.00226035
0.00226723
0.00228657
0.00230609
0.00232853
0.00234979
0.00237005
0.00238737
0.00240158
0.00241218
0.00241941
0.00242339
0.0024247
0.00242375
0.00242112
0.00241723
0.00241252
0.00240731
0.00240187
0.00239639
0.00224919
0.00225557
0.0022735
0.00229161
0.00231202
0.00233125
0.00234921
0.00236427
0.00237631
0.0023849
0.00239039
0.00239291
0.00239305
0.0023912
0.00238791
0.00238357
0.00237858
0.0023732
0.0023677
0.00236222
0.0022374
0.00224329
0.00225979
0.00227648
0.00229491
0.00231214
0.0023279
0.00234081
0.0023508
0.00235755
0.00236144
0.00236264
0.00236173
0.00235908
0.00235523
0.00235049
0.00234525
0.00233974
0.00233419
0.00232872
0.00222495
0.00223037
0.00224544
0.00226071
0.00227722
0.00229247
0.00230614
0.00231701
0.00232509
0.00233014
0.00233256
0.00233257
0.00233073
0.00232738
0.00232302
0.00231795
0.0023125
0.00230688
0.00230129
0.00229584
0.00221186
0.00221679
0.00223046
0.0022443
0.00225894
0.00227229
0.00228395
0.0022929
0.0022992
0.00230268
0.00230378
0.00230272
0.00230004
0.00229608
0.00229128
0.00228591
0.00228029
0.00227458
0.00226897
0.00226354
0.0021981
0.00220256
0.00221485
0.00222726
0.00224011
0.0022516
0.00226136
0.0022685
0.00227315
0.0022752
0.00227509
0.00227307
0.00226965
0.00226514
0.00225996
0.00225435
0.00224858
0.0022428
0.00223718
0.00223178
0.00218367
0.00218767
0.00219861
0.0022096
0.00222072
0.00223043
0.0022384
0.00224385
0.00224697
0.0022477
0.00224651
0.00224363
0.00223955
0.00223456
0.00222905
0.00222322
0.00221733
0.00221151
0.00220588
0.00220052
0.00216858
0.00217212
0.00218174
0.00219133
0.0022008
0.00220881
0.00221508
0.00221895
0.00222067
0.0022202
0.00221803
0.00221438
0.00220972
0.00220431
0.00219851
0.00219251
0.00218652
0.00218066
0.00217505
0.00216972
0.00215282
0.0021559
0.00216425
0.00217248
0.00218036
0.00218675
0.00219143
0.00219384
0.00219426
0.00219271
0.00218965
0.00218532
0.00218014
0.00217438
0.00216833
0.00216218
0.00215612
0.00215024
0.00214464
0.00213936
0.00213639
0.00213903
0.00214614
0.00215305
0.00215942
0.00216428
0.00216747
0.00216853
0.00216776
0.00216523
0.00216137
0.00215644
0.00215081
0.00214474
0.00213849
0.00213222
0.0021261
0.00212021
0.00211463
0.0021094
0.0021193
0.0021215
0.00212743
0.00213306
0.002138
0.00214141
0.00214321
0.00214303
0.00214118
0.00213777
0.0021332
0.00212773
0.00212172
0.00211537
0.00210895
0.00210258
0.00209642
0.00209054
0.002085
0.00207982
0.00210156
0.00210332
0.00210813
0.00211252
0.00211612
0.00211818
0.00211869
0.00211737
0.00211454
0.00211032
0.00210513
0.00209919
0.00209284
0.00208627
0.0020797
0.00207326
0.00206708
0.00206121
0.0020557
0.00205058
0.00208316
0.00208451
0.00208824
0.00209146
0.00209378
0.00209458
0.00209391
0.00209154
0.00208783
0.0020829
0.00207716
0.00207081
0.00206416
0.0020574
0.00205073
0.00204424
0.00203804
0.00203219
0.00202673
0.00202167
0.00206413
0.00206507
0.00206779
0.00206989
0.00207102
0.00207065
0.00206888
0.00206558
0.00206106
0.00205551
0.00204928
0.00204257
0.00203568
0.00202877
0.002022
0.00201548
0.00200929
0.00200347
0.00199806
0.00199306
0.00204446
0.00204501
0.00204678
0.00204782
0.00204785
0.00204641
0.00204364
0.00203948
0.00203425
0.00202814
0.00202148
0.00201448
0.00200738
0.00200034
0.00199351
0.00198697
0.0019808
0.00197502
0.00196966
0.00196473
0.00202418
0.00202436
0.00202523
0.00202529
0.00202428
0.00202186
0.00201818
0.00201326
0.0020074
0.0020008
0.00199377
0.00198651
0.00197925
0.00197211
0.00196524
0.0019587
0.00195255
0.00194682
0.00194152
0.00193665
0.0020033
0.00200313
0.00200315
0.0020023
0.00200035
0.00199703
0.00199253
0.00198692
0.00198051
0.00197348
0.00196614
0.00195867
0.00195127
0.00194406
0.00193717
0.00193064
0.00192453
0.00191885
0.00191362
0.00190882
0.00198184
0.00198133
0.00198058
0.00197889
0.00197606
0.00197193
0.0019667
0.00196048
0.00195358
0.00194619
0.00193859
0.00193094
0.00192344
0.00191619
0.00190928
0.00190278
0.00189672
0.0018911
0.00188594
0.00188121
0.00195981
0.00195899
0.00195753
0.00195506
0.00195144
0.00194657
0.00194069
0.00193395
0.00192662
0.00191892
0.0019111
0.00190332
0.00189574
0.00188847
0.00188157
0.00187511
0.0018691
0.00186355
0.00185846
0.00185381
0.00193723
0.00193613
0.00193401
0.00193083
0.00192651
0.00192098
0.00191453
0.00190732
0.00189963
0.00189168
0.00188368
0.0018758
0.00186817
0.00186089
0.00185403
0.00184761
0.00184166
0.00183619
0.00183117
0.0018266
0.00191414
0.00191277
0.00191006
0.00190624
0.00190128
0.00189518
0.00188822
0.00188061
0.00187262
0.00186446
0.00185632
0.00184837
0.00184072
0.00183345
0.00182663
0.00182027
0.00181439
0.001809
0.00180406
0.00179957
0.00189054
0.00188894
0.00188569
0.0018813
0.00187577
0.00186916
0.00186177
0.00185383
0.00184559
0.00183726
0.00182903
0.00182103
0.00181338
0.00180614
0.00179937
0.00179308
0.00178728
0.00178196
0.00177711
0.0017727
0.00186648
0.00186466
0.00186093
0.00185603
0.00185
0.00184296
0.0018352
0.00182698
0.00181854
0.00181008
0.00180178
0.00179377
0.00178614
0.00177895
0.00177224
0.00176603
0.00176031
0.00175508
0.00175031
0.00174598
0.00184197
0.00183996
0.0018358
0.00183045
0.001824
0.00181658
0.00180852
0.00180007
0.00179147
0.00178293
0.00177459
0.00176659
0.00175899
0.00175186
0.00174523
0.0017391
0.00173347
0.00172833
0.00172365
0.00171941
0.00181704
0.00181486
0.00181033
0.0018046
0.00179778
0.00179005
0.00178173
0.00177311
0.0017644
0.0017558
0.00174746
0.00173948
0.00173194
0.00172488
0.00171833
0.0017123
0.00170676
0.00170171
0.00169712
0.00169297
0.00179172
0.0017894
0.00178454
0.00177848
0.00177135
0.00176337
0.00175485
0.0017461
0.00173732
0.0017287
0.00172037
0.00171244
0.00170497
0.001698
0.00169154
0.00168561
0.00168017
0.00167521
0.00167072
0.00166665
0.00176604
0.0017636
0.00175846
0.00175213
0.00174475
0.00173656
0.0017279
0.00171906
0.00171024
0.00170163
0.00169334
0.00168548
0.00167809
0.00167121
0.00166486
0.00165902
0.00165368
0.00164883
0.00164443
0.00164045
0.00174003
0.00173748
0.00173212
0.00172556
0.00171798
0.00170965
0.00170088
0.00169198
0.00168316
0.00167458
0.00166636
0.00165858
0.00165129
0.00164452
0.00163827
0.00163254
0.00162731
0.00162256
0.00161825
0.00161436
0.00171372
0.00171109
0.00170555
0.0016988
0.00169108
0.00168263
0.0016738
0.00166489
0.0016561
0.00164757
0.00163943
0.00163175
0.00162456
0.00161791
0.00161177
0.00160616
0.00160103
0.00159639
0.00159218
0.00158838
0.00168714
0.00168445
0.00167876
0.00167188
0.00166405
0.00165554
0.00164669
0.00163779
0.00162905
0.0016206
0.00161256
0.00160499
0.00159792
0.00159138
0.00158537
0.00157987
0.00157486
0.00157032
0.00156621
0.0015625
0.00166033
0.00165758
0.0016518
0.00164482
0.00163693
0.00162839
0.00161954
0.0016107
0.00160202
0.00159368
0.00158574
0.0015783
0.00157136
0.00156495
0.00155906
0.00155368
0.00154878
0.00154435
0.00154034
0.00153673
0.00163331
0.00163053
0.00162468
0.00161764
0.00160972
0.00160119
0.00159238
0.00158361
0.00157504
0.0015668
0.001559
0.00155168
0.00154488
0.0015386
0.00153284
0.00152759
0.00152281
0.00151848
0.00151457
0.00151105
0.00160613
0.00160333
0.00159743
0.00159037
0.00158246
0.00157396
0.00156523
0.00155655
0.00154809
0.00153999
0.00153232
0.00152514
0.00151848
0.00151235
0.00150672
0.00150159
0.00149693
0.00149271
0.0014889
0.00148547
0.0015788
0.00157599
0.00157008
0.00156303
0.00155516
0.00154673
0.00153809
0.00152952
0.0015212
0.00151324
0.00150572
0.00149869
0.00149218
0.00148618
0.00148069
0.00147569
0.00147115
0.00146704
0.00146333
0.00146
0.00155136
0.00154856
0.00154267
0.00153566
0.00152784
0.0015195
0.00151098
0.00150255
0.00149437
0.00148657
0.0014792
0.00147233
0.00146597
0.00146012
0.00145477
0.0014499
0.00144547
0.00144148
0.00143787
0.00143463
0.00152386
0.00152107
0.00151522
0.00150826
0.00150053
0.0014923
0.00148392
0.00147564
0.00146762
0.00145998
0.00145278
0.00144607
0.00143987
0.00143417
0.00142895
0.00142421
0.00141991
0.00141602
0.00141252
0.00140937
0.00149631
0.00149355
0.00148775
0.00148087
0.00147325
0.00146516
0.00145692
0.0014488
0.00144096
0.00143349
0.00142646
0.00141992
0.00141388
0.00140833
0.00140325
0.00139864
0.00139446
0.00139068
0.00138728
0.00138422
0.00146875
0.00146602
0.0014603
0.00145352
0.00144603
0.00143808
0.00143001
0.00142207
0.0014144
0.00140711
0.00140026
0.00139389
0.00138801
0.00138261
0.00137767
0.00137319
0.00136913
0.00136547
0.00136216
0.00135919
0.00144121
0.00143852
0.0014329
0.00142623
0.00141888
0.00141109
0.0014032
0.00139544
0.00138796
0.00138086
0.00137419
0.00136799
0.00136227
0.00135702
0.00135223
0.00134788
0.00134394
0.00134038
0.00133717
0.0013343
0.00141373
0.00141109
0.00140557
0.00139903
0.00139183
0.00138422
0.00137651
0.00136894
0.00136165
0.00135474
0.00134825
0.00134223
0.00133667
0.00133158
0.00132693
0.00132271
0.00131888
0.00131544
0.00131233
0.00130954
0.00138633
0.00138374
0.00137834
0.00137194
0.00136491
0.00135748
0.00134996
0.00134259
0.0013355
0.00132878
0.00132248
0.00131663
0.00131123
0.00130629
0.00130178
0.00129769
0.00129399
0.00129064
0.00128763
0.00128493
0.00135906
0.00135652
0.00135124
0.00134499
0.00133814
0.00133089
0.00132358
0.00131641
0.00130952
0.00130299
0.00129687
0.0012912
0.00128596
0.00128117
0.00127681
0.00127284
0.00126925
0.00126602
0.0012631
0.00126049
0.00133193
0.00132946
0.0013243
0.00131821
0.00131154
0.00130449
0.00129738
0.00129041
0.00128372
0.00127739
0.00127146
0.00126595
0.00126088
0.00125624
0.00125201
0.00124817
0.0012447
0.00124157
0.00123875
0.00123622
0.00130499
0.00130258
0.00129756
0.00129163
0.00128514
0.00127829
0.00127138
0.00126462
0.00125814
0.00125199
0.00124625
0.00124092
0.00123601
0.00123151
0.00122742
0.00122371
0.00122035
0.00121732
0.00121459
0.00121214
0.00127826
0.00127591
0.00127103
0.00126527
0.00125897
0.00125232
0.00124562
0.00123907
0.00123278
0.00122683
0.00122126
0.0012161
0.00121135
0.00120701
0.00120305
0.00119945
0.0011962
0.00119327
0.00119064
0.00118827
0.00125177
0.00124949
0.00124476
0.00123916
0.00123305
0.0012266
0.00122011
0.00121376
0.00120768
0.00120192
0.00119653
0.00119154
0.00118694
0.00118274
0.00117891
0.00117544
0.00117229
0.00116946
0.00116691
0.00116463
0.00122557
0.00122336
0.00121877
0.00121334
0.00120741
0.00120117
0.00119488
0.00118874
0.00118285
0.00117727
0.00117207
0.00116724
0.0011628
0.00115873
0.00115503
0.00115167
0.00114864
0.0011459
0.00114344
0.00114123
0.00119968
0.00119753
0.00119309
0.00118783
0.00118209
0.00117604
0.00116996
0.00116401
0.00115832
0.00115293
0.00114789
0.00114323
0.00113893
0.00113501
0.00113143
0.00112819
0.00112525
0.00112261
0.00112023
0.0011181
0.00117413
0.00117205
0.00116775
0.00116266
0.0011571
0.00115125
0.00114537
0.00113962
0.00113412
0.00112891
0.00112404
0.00111953
0.00111538
0.00111159
0.00110814
0.001105
0.00110217
0.00109962
0.00109732
0.00109526
0.00114897
0.00114695
0.00114279
0.00113786
0.00113249
0.00112683
0.00112115
0.00111559
0.00111027
0.00110523
0.00110053
0.00109617
0.00109217
0.0010885
0.00108517
0.00108214
0.0010794
0.00107694
0.00107472
0.00107273
0.00112421
0.00112226
0.00111823
0.00111347
0.00110828
0.00110281
0.00109731
0.00109194
0.0010868
0.00108194
0.00107739
0.00107319
0.00106932
0.00106578
0.00106256
0.00105963
0.00105699
0.00105461
0.00105247
0.00105054
0.00109991
0.00109802
0.00109413
0.00108952
0.0010845
0.00107921
0.0010739
0.00106871
0.00106374
0.00105904
0.00105466
0.00105059
0.00104685
0.00104343
0.00104032
0.0010375
0.00103494
0.00103264
0.00103057
0.00102871
0.00107609
0.00107426
0.0010705
0.00106604
0.00106119
0.00105608
0.00105095
0.00104593
0.00104113
0.00103659
0.00103236
0.00102843
0.00102482
0.00102152
0.00101851
0.00101578
0.00101332
0.0010111
0.0010091
0.0010073
0.00105279
0.00105102
0.00104739
0.00104307
0.00103839
0.00103344
0.00102849
0.00102364
0.001019
0.00101461
0.00101051
0.00100671
0.00100322
0.00100003
0.000997119
0.000994482
0.000992098
0.00098995
0.000988016
0.000986281
0.00103006
0.00102834
0.00102483
0.00102066
0.00101613
0.00101134
0.00100655
0.00100186
0.000997377
0.000993136
0.000989179
0.000985511
0.00098214
0.000979055
0.000976248
0.000973701
0.000971399
0.000969323
0.000967454
0.000965777
0.00100793
0.00100627
0.00100287
0.00099883
0.000994446
0.000989818
0.00098518
0.00098064
0.000976299
0.000972191
0.000968357
0.000964802
0.000961535
0.000958545
0.000955824
0.000953357
0.000951126
0.000949115
0.000947306
0.000945682
0.000986452
0.000984844
0.00098155
0.000977636
0.00097339
0.000968908
0.000964418
0.000960024
0.000955826
0.000951855
0.000948152
0.00094472
0.000941566
0.00093868
0.000936053
0.000933669
0.000931514
0.00092957
0.000927821
0.00092625
0.000965671
0.000964111
0.000960916
0.00095712
0.000953002
0.000948654
0.000944299
0.000940034
0.000935956
0.000932096
0.000928494
0.000925153
0.000922083
0.000919273
0.000916717
0.000914399
0.000912304
0.000910416
0.000908717
0.000907193
0.000945639
0.000944122
0.000941019
0.00093733
0.000933331
0.00092911
0.000924886
0.000920753
0.000916809
0.00091308
0.000909604
0.000906383
0.000903424
0.000900716
0.00089825
0.000896013
0.000893988
0.000892162
0.000890518
0.000889042
0.000926412
0.000924934
0.000921912
0.000918319
0.000914425
0.000910314
0.000906196
0.000902163
0.000898306
0.000894652
0.000891243
0.000888081
0.000885175
0.000882518
0.000880101
0.000877911
0.000875932
0.00087415
0.000872547
0.00087111
0.000908049
0.000906605
0.000903654
0.000900145
0.000896347
0.000892342
0.00088834
0.000884431
0.000880707
0.00087719
0.000873915
0.000870881
0.000868094
0.000865542
0.000863219
0.000861108
0.000859198
0.000857474
0.000855921
0.000854525
0.00089062
0.000889205
0.00088631
0.000882868
0.000879142
0.00087521
0.000871271
0.000867409
0.000863714
0.000860214
0.000856947
0.000853919
0.000851139
0.000848599
0.000846292
0.000844204
0.00084232
0.000840625
0.000839102
0.000837737
0.000874204
0.000872808
0.000869953
0.000866562
0.000862904
0.000859059
0.000855232
0.000851507
0.00084797
0.000844636
0.000841536
0.000838666
0.000836028
0.000833611
0.000831408
0.000829405
0.00082759
0.000825949
0.00082447
0.000823139
0.000858889
0.000857503
0.000854664
0.000851294
0.000847652
0.000843808
0.000839955
0.000836174
0.000832556
0.00082913
0.000825937
0.000822984
0.00082028
0.000817817
0.000815585
0.00081357
0.000811757
0.000810129
0.000808669
0.000807364
0.000844785
0.000843394
0.000840541
0.000837173
0.000833574
0.000829823
0.00082612
0.000822539
0.000819156
0.000815976
0.000813024
0.000810288
0.000807771
0.000805461
0.000803351
0.000801428
0.000799683
0.000798103
0.000796675
0.00079539
0.000832024
0.000830611
0.000827692
0.00082424
0.000820516
0.000816589
0.000812655
0.000808804
0.000805132
0.000801671
0.000798463
0.000795513
0.000792828
0.000790396
0.000788204
0.000786235
0.000784471
0.000782893
0.000781483
0.000780225
0.000820784
0.000819293
0.00081626
0.000812786
0.000809152
0.000805418
0.000801768
0.000798269
0.000794979
0.000791894
0.000789029
0.000786371
0.000783922
0.000781668
0.000779604
0.00077772
0.000776006
0.000774452
0.000773045
0.000771777
0.000811308
0.000809691
0.000806279
0.000802346
0.000798183
0.000793853
0.000789566
0.000785431
0.00078154
0.000777922
0.00077461
0.0007716
0.000768889
0.000766455
0.000764281
0.000762341
0.000760614
0.000759078
0.000757711
0.000756497
0.000803886
0.000802067
0.000798622
0.000794882
0.000791006
0.000787042
0.000783196
0.000779536
0.000776113
0.000772919
0.000769966
0.000767241
0.000764739
0.000762446
0.000760353
0.000758447
0.000756717
0.000755151
0.000753736
0.000752461
0.000799362
0.000795759
0.000790739
0.000785803
0.000780748
0.000775616
0.000770679
0.000766046
0.000761786
0.000757909
0.000754426
0.000751313
0.00074855
0.000746101
0.000743935
0.000742021
0.00074033
0.000738835
0.000737512
0.000736342
0.00538356
0.0044918
0.00397054
0.00376145
0.00358035
0.00341122
0.0032753
0.00316249
0.00306277
0.00297315
0.00289206
0.0028176
0.00274844
0.00268343
0.00262191
0.00256306
0.00250649
0.00245161
0.00239823
0.00234588
0.00229453
0.0022438
0.00219375
0.00214408
0.00209489
0.00204594
0.00199739
0.00194899
0.00190093
0.00185301
0.00180539
0.00175789
0.00171069
0.00166357
0.00161675
0.00157
0.00152351
0.00147708
0.0014309
0.00138474
0.00133883
0.00129294
0.00124731
0.0012017
0.00115645
0.00111126
0.00106659
0.00102211
0.000978423
0.000935168
0.000893101
0.000851784
0.000812152
0.000773593
0.000737182
0.000702
0.000669193
0.000637397
0.000607806
0.000578553
0.000550997
0.000522857
0.000495917
0.000467626
0.000440437
0.000411499
0.000383986
0.000354461
0.00032675
0.000296533
0.000268395
0.000237112
0.000208282
0.00017588
0.000146601
0.000113615
8.46544e-05
5.23573e-05
2.60318e-05
4.06936e-06
0.0050337
0.00457754
0.00424298
0.00408588
0.00393664
0.00378434
0.00365078
0.00353221
0.00342165
0.00331757
0.00321926
0.00312578
0.00303627
0.00295024
0.00286733
0.00278723
0.00270974
0.00263465
0.00256188
0.00249124
0.0024227
0.00235608
0.00229136
0.00222837
0.00216711
0.00210737
0.00204918
0.00199231
0.00193681
0.00188245
0.00182926
0.00177702
0.00172578
0.00167533
0.00162573
0.00157675
0.00152848
0.0014807
0.00143351
0.00138669
0.00134038
0.00129436
0.0012488
0.00120348
0.00115865
0.00111404
0.00107004
0.00102634
0.000983453
0.000941024
0.000899737
0.000859133
0.000820077
0.000781936
0.000745731
0.000710533
0.000677484
0.000645234
0.000615042
0.000585083
0.000556833
0.000528048
0.000500633
0.000472017
0.000444723
0.000415811
0.00038846
0.000359112
0.000331571
0.000301441
0.00027329
0.000241908
0.000212879
0.000180274
0.000150722
0.000117567
8.83237e-05
5.59984e-05
2.91041e-05
6.863e-06
0.0045552
0.00431443
0.00403901
0.00385721
0.00369558
0.00353741
0.00339752
0.00327506
0.0031643
0.003063
0.00297009
0.00288419
0.00280417
0.00272908
0.00265828
0.00259109
0.00252706
0.0024657
0.00240668
0.00234964
0.00229434
0.00224051
0.00218798
0.00213652
0.00208604
0.00203636
0.0019874
0.00193905
0.00189125
0.00184392
0.00179701
0.00175047
0.00170427
0.00165837
0.00161275
0.00156737
0.00152224
0.00147731
0.00143261
0.0013881
0.0013438
0.0012997
0.00125584
0.0012122
0.00116888
0.00112584
0.00108326
0.00104108
0.000999575
0.000958638
0.000918683
0.000879507
0.000841649
0.000804736
0.000769429
0.000735073
0.000702426
0.000670441
0.000639994
0.000609593
0.000580364
0.000550414
0.000521353
0.000490972
0.000461572
0.000430574
0.000401005
0.000369664
0.000340232
0.000308627
0.000279253
0.000247124
0.000217596
0.000184846
0.000155265
0.000122202
9.30607e-05
6.06706e-05
3.37026e-05
9.93432e-06
0.00428394
0.00416772
0.00398461
0.00384674
0.00372643
0.00360563
0.00349332
0.0033913
0.00329612
0.00320616
0.00312094
0.00303967
0.00296172
0.00288651
0.00281375
0.00274305
0.00267426
0.00260709
0.0025415
0.00247727
0.0024144
0.00235272
0.00229226
0.00223287
0.00217461
0.00211731
0.00206106
0.00200569
0.00195128
0.00189767
0.00184494
0.00179292
0.0017417
0.00169111
0.00164122
0.00159188
0.00154317
0.00149493
0.00144724
0.00139994
0.00135315
0.0013067
0.00126074
0.0012151
0.00116997
0.00112519
0.00108102
0.00103729
0.000994363
0.000952058
0.000910827
0.00087046
0.000831516
0.000793683
0.000757603
0.000722765
0.00068985
0.000658036
0.000628035
0.000598642
0.000570682
0.000542587
0.000515499
0.000487547
0.000460425
0.000431918
0.000404357
0.000374977
0.00034675
0.000316165
0.000286942
0.000254842
0.000224564
0.000191205
0.000160475
0.000126771
9.6622e-05
6.40607e-05
3.62913e-05
1.11576e-05
0.00407204
0.00400249
0.00387212
0.0037514
0.00363783
0.00352103
0.00340763
0.00330135
0.00320114
0.00310615
0.00301636
0.00293131
0.00285055
0.00277358
0.0027001
0.00262969
0.00256212
0.00249702
0.00243423
0.00237346
0.00231458
0.00225733
0.00220162
0.00214724
0.00209413
0.00204209
0.00199107
0.00194091
0.0018916
0.00184297
0.00179502
0.00174762
0.00170077
0.00165436
0.0016084
0.00156278
0.00151754
0.00147256
0.00142791
0.00138347
0.00133933
0.00129538
0.00125174
0.00120828
0.0011652
0.00112235
0.00108
0.00103799
0.000996686
0.000955899
0.000916101
0.000877039
0.0008393
0.0008025
0.000767314
0.000733136
0.000700685
0.000669047
0.000638971
0.000609203
0.000580605
0.000551643
0.000523481
0.000494413
0.000466085
0.000436594
0.000408118
0.000378328
0.000349864
0.000319725
0.000291064
0.00026018
0.000230956
0.000199031
0.000169211
0.000136401
0.000106459
7.36207e-05
4.54505e-05
1.39621e-05
0.00390287
0.00385932
0.00377021
0.00367468
0.00358089
0.00348436
0.00338892
0.00329783
0.00321109
0.00312802
0.00304866
0.0029726
0.00289957
0.00282909
0.00276097
0.00269482
0.00263053
0.00256777
0.0025065
0.00244645
0.00238762
0.00232979
0.002273
0.00221705
0.002162
0.00210768
0.00205416
0.00200129
0.00194914
0.00189756
0.00184664
0.00179624
0.00174643
0.00169708
0.00164827
0.00159987
0.00155197
0.00150443
0.00145734
0.00141058
0.00136425
0.0013182
0.00127261
0.0012273
0.00118248
0.00113798
0.00109409
0.00105062
0.00100793
0.000965812
0.000924745
0.000884458
0.000845532
0.000807578
0.000771271
0.000736009
0.000702532
0.000669929
0.000639002
0.000608484
0.000579321
0.000549918
0.000521541
0.000492339
0.000464061
0.000434584
0.000406182
0.00037628
0.000347632
0.000317048
0.000287841
0.000256238
0.000226317
0.000193796
0.000163629
0.000130888
0.000101456
6.95557e-05
4.28811e-05
1.18845e-05
0.00376631
0.00373534
0.00367138
0.00359441
0.00351381
0.0034287
0.00334159
0.00325546
0.00317132
0.00308921
0.00300955
0.00293237
0.00285771
0.00278537
0.00271532
0.00264735
0.00258141
0.00251728
0.00245493
0.00239415
0.00233491
0.00227704
0.00222051
0.00216514
0.00211095
0.00205776
0.00200558
0.00195425
0.0019038
0.00185406
0.00180508
0.0017567
0.00170895
0.00166171
0.00161501
0.00156872
0.0015229
0.0014774
0.00143232
0.0013875
0.00134307
0.00129886
0.00125504
0.00121143
0.00116825
0.00112533
0.00108295
0.00104091
0.000999604
0.000958791
0.000918965
0.000879835
0.000841997
0.000805041
0.00076965
0.000735212
0.000702465
0.000670506
0.000640121
0.000610074
0.000581274
0.000552183
0.000524006
0.000494966
0.000466743
0.000437298
0.000408849
0.00037892
0.000350243
0.000319704
0.000290631
0.000259237
0.000229649
0.000197401
0.000167569
0.000134856
0.000105458
7.305e-05
4.58388e-05
1.26895e-05
0.00364955
0.00362493
0.00357703
0.00351527
0.00344714
0.00337389
0.00329759
0.00322076
0.00314479
0.00307008
0.00299713
0.00292606
0.00285702
0.00278984
0.00272453
0.00266089
0.00259887
0.00253827
0.00247905
0.00242101
0.00236413
0.00230824
0.00225334
0.00219927
0.00214605
0.00209352
0.00204173
0.00199053
0.00193998
0.00188994
0.00184047
0.00179145
0.00174293
0.0016948
0.00164712
0.00159978
0.00155286
0.00150622
0.00145997
0.00141398
0.00136837
0.001323
0.00127803
0.00123329
0.00118902
0.00114503
0.00110161
0.00105857
0.00101629
0.000974515
0.000933765
0.000893708
0.000854967
0.00081709
0.000780795
0.000745424
0.000711761
0.000678863
0.000647576
0.000616627
0.000586995
0.00055711
0.000528234
0.000498567
0.000469808
0.000439915
0.000411072
0.000380836
0.000351842
0.000321081
0.000291694
0.000260098
0.000230132
0.000197654
0.000167367
0.000134418
0.000104582
7.19708e-05
4.42896e-05
1.21159e-05
0.00354692
0.00352651
0.00348924
0.00343923
0.00338156
0.00331815
0.00325072
0.00318124
0.00311113
0.00304104
0.00297155
0.00290298
0.0028356
0.00276945
0.00270464
0.0026411
0.00257889
0.00251789
0.00245813
0.00239949
0.00234198
0.00228549
0.00223003
0.00217547
0.00212185
0.00206904
0.00201708
0.00196582
0.00191533
0.00186546
0.00181627
0.00176762
0.00171958
0.001672
0.00162497
0.00157832
0.00153216
0.00148633
0.00144094
0.00139583
0.00135114
0.00130668
0.00126265
0.00121886
0.00117554
0.00113248
0.00109001
0.00104787
0.00100649
0.000965573
0.000925661
0.000886389
0.000848398
0.000811206
0.000775548
0.000740744
0.0007076
0.000675155
0.000644284
0.000613701
0.000584421
0.000554853
0.000526301
0.000496923
0.000468464
0.000438815
0.000410221
0.000380157
0.000351347
0.000320693
0.000291456
0.000259953
0.00023015
0.000197796
0.000167702
0.000134916
0.000105264
7.27692e-05
4.50719e-05
1.29276e-05
0.00345518
0.00343769
0.00340745
0.00336618
0.00331709
0.00326204
0.00320253
0.00314015
0.00307627
0.00301168
0.00294705
0.0028828
0.00281931
0.00275668
0.0026951
0.00263455
0.00257511
0.0025167
0.00245936
0.00240297
0.00234756
0.002293
0.00223933
0.0021864
0.00213426
0.00208277
0.00203198
0.00198174
0.00193213
0.001883
0.00183441
0.00178624
0.00173856
0.00169123
0.00164434
0.00159775
0.00155156
0.00150562
0.00146007
0.00141472
0.00136975
0.00132498
0.0012806
0.00123642
0.0011927
0.00114922
0.00110631
0.00106371
0.00102187
0.00098048
0.000940081
0.000900291
0.000861771
0.000824014
0.000787772
0.000752347
0.000718559
0.000685443
0.000653888
0.000622622
0.000592661
0.000562448
0.000533264
0.000503318
0.0004743
0.00044417
0.000415081
0.000384614
0.000355365
0.000324385
0.000294772
0.00026302
0.0002329
0.000200347
0.000169961
0.000136973
0.000107011
7.4251e-05
4.61283e-05
1.36345e-05
0.0033718
0.00335646
0.00333112
0.0032965
0.00325447
0.00320653
0.00315396
0.00309801
0.00303986
0.0029803
0.00292002
0.00285947
0.00279906
0.00273898
0.00267946
0.00262056
0.0025624
0.00250497
0.00244834
0.00239245
0.00233735
0.00228297
0.00222936
0.00217641
0.00212418
0.00207256
0.00202161
0.00197122
0.00192145
0.00187218
0.00182348
0.00177522
0.0017275
0.00168015
0.0016333
0.00158678
0.00154071
0.00149492
0.00144957
0.00140446
0.00135977
0.00131529
0.00127126
0.00122744
0.00118412
0.00114104
0.00109857
0.0010564
0.00101501
0.000974047
0.000934085
0.000894701
0.000856578
0.000819171
0.000783261
0.000748109
0.000714574
0.000681655
0.000650288
0.000619166
0.000589364
0.000559285
0.000530269
0.000500477
0.000471646
0.000441686
0.000412787
0.000382485
0.000353405
0.000322577
0.000293108
0.000261508
0.000231511
0.000199112
0.00016882
0.000135983
0.000106064
7.34234e-05
4.51828e-05
1.34546e-05
0.00329527
0.00328157
0.00325981
0.00323023
0.00319392
0.00315194
0.00310534
0.0030551
0.00300223
0.00294746
0.00289148
0.00283475
0.00277773
0.00272067
0.00266385
0.00260737
0.0025514
0.00249596
0.00244116
0.00238695
0.00233343
0.00228051
0.00222827
0.0021766
0.00212557
0.00207508
0.00202518
0.00197577
0.00192691
0.00187847
0.00183054
0.00178299
0.00173589
0.00168912
0.00164277
0.00159669
0.00155102
0.00150556
0.00146049
0.00141561
0.00137111
0.00132678
0.00128287
0.00123912
0.00119584
0.00115277
0.00111028
0.00106807
0.00102661
0.000985535
0.000945438
0.000905879
0.000867548
0.000829888
0.000793682
0.000758192
0.000724276
0.000690944
0.00065913
0.000627553
0.00059728
0.000566749
0.000537282
0.000507077
0.000477836
0.000447508
0.00041823
0.000387593
0.000358157
0.000327027
0.000297236
0.000265377
0.000235101
0.000202487
0.000171942
0.000138912
0.000108725
7.58777e-05
4.72067e-05
1.46056e-05
0.00322435
0.00321192
0.00319285
0.00316717
0.00313547
0.0030985
0.00305705
0.00301189
0.00296384
0.00291356
0.00286167
0.00280864
0.00275491
0.00270076
0.00264648
0.00259222
0.00253817
0.00248438
0.00243099
0.00237799
0.00232547
0.00227339
0.00222184
0.00217073
0.00212015
0.00207001
0.00202039
0.00197118
0.00192247
0.00187413
0.00182627
0.00177875
0.00173168
0.00168491
0.00163858
0.0015925
0.00154683
0.00150139
0.00145635
0.0014115
0.00136707
0.00132281
0.00127899
0.00123534
0.0011922
0.00114926
0.00110693
0.00106488
0.00102359
0.000982685
0.000942762
0.000903355
0.000865172
0.000827625
0.000791519
0.000756086
0.000722209
0.000688878
0.000657054
0.000625445
0.000595146
0.00056459
0.000535115
0.000504921
0.000475704
0.000445424
0.00041619
0.000385624
0.000356234
0.000325191
0.000295447
0.0002637
0.000233473
0.000200989
0.000170478
0.000137574
0.000107369
7.46139e-05
4.57431e-05
1.40832e-05
0.0031582
0.00314676
0.00312976
0.00310714
0.0030792
0.00304642
0.00300939
0.0029687
0.002925
0.00287885
0.00283081
0.00278132
0.00273081
0.00267956
0.0026279
0.00257598
0.00252404
0.00247214
0.00242045
0.00236898
0.00231786
0.00226706
0.00221667
0.00216664
0.00211705
0.00206784
0.00201908
0.00197067
0.00192271
0.00187508
0.00182788
0.00178098
0.00173449
0.00168827
0.00164244
0.00159683
0.00155161
0.00150657
0.00146192
0.00141742
0.00137332
0.00132935
0.0012858
0.0012424
0.00119949
0.00115675
0.0011146
0.00107269
0.00103153
0.000990717
0.000950859
0.000911473
0.000873276
0.000835668
0.000799458
0.000763872
0.0007298
0.000696231
0.000664139
0.000632237
0.000601633
0.000570772
0.000540998
0.000510519
0.000481028
0.000450492
0.000421003
0.000390199
0.000360563
0.0003293
0.000299324
0.000267385
0.000236945
0.000204298
0.000173578
0.000140525
0.000110076
7.71603e-05
4.78763e-05
1.52504e-05
0.00309608
0.00308543
0.00307007
0.00304988
0.00302501
0.00299575
0.00296251
0.00292573
0.00288593
0.00284356
0.00279913
0.00275301
0.00270561
0.00265722
0.00260815
0.00255857
0.00250872
0.00245871
0.00240869
0.00235872
0.00230892
0.00225928
0.00220992
0.0021608
0.00211201
0.00206348
0.00201531
0.00196742
0.00191991
0.00187265
0.00182578
0.00177915
0.0017329
0.00168686
0.0016412
0.00159573
0.00155063
0.0015057
0.00146113
0.00141671
0.00137268
0.00132879
0.00128532
0.00124199
0.00119915
0.00115649
0.00111442
0.00107258
0.0010315
0.000990755
0.000950958
0.000911616
0.000873448
0.000835841
0.000799608
0.000763969
0.000729815
0.000696141
0.00066392
0.000631885
0.000601135
0.000570149
0.000540246
0.000509679
0.000480094
0.000449511
0.000419952
0.000389131
0.000359438
0.000328183
0.000298162
0.000266261
0.00023579
0.000203208
0.000172452
0.000139472
0.000108938
7.60762e-05
4.65305e-05
1.47161e-05
0.00303745
0.00302744
0.00301341
0.00299518
0.00297284
0.00294653
0.00291654
0.00288319
0.00284687
0.00280795
0.00276685
0.0027239
0.00267948
0.00263385
0.00258733
0.00254008
0.00249235
0.00244426
0.00239599
0.00234759
0.00229922
0.00225088
0.0022027
0.00215463
0.00210682
0.00205918
0.00201183
0.00196468
0.00191786
0.00187125
0.00182497
0.00177889
0.00173315
0.0016876
0.0016424
0.00159735
0.00155265
0.0015081
0.0014639
0.00141982
0.00137611
0.00133252
0.00128935
0.00124629
0.00120371
0.00116128
0.00111945
0.00107781
0.00103692
0.000996333
0.000956674
0.000917429
0.000879331
0.000841745
0.000805501
0.000769797
0.000735546
0.000701727
0.000669337
0.000637101
0.000606145
0.000574941
0.00054483
0.000514061
0.000484284
0.000453523
0.000423786
0.000392801
0.000362935
0.00033153
0.000301342
0.000269315
0.000238687
0.000206001
0.000175081
0.000142004
0.000111256
7.82815e-05
4.83506e-05
1.56949e-05
0.00298186
0.00297238
0.00295942
0.00294281
0.00292257
0.00289875
0.00287155
0.00284119
0.00280796
0.00277216
0.00273413
0.00269415
0.00265256
0.00260959
0.00256555
0.0025206
0.00247499
0.00242883
0.00238233
0.00233554
0.00228862
0.0022416
0.0021946
0.00214762
0.00210076
0.00205399
0.00200743
0.00196098
0.00191479
0.00186873
0.00182295
0.00177732
0.00173198
0.00168679
0.00164189
0.00159713
0.00155268
0.00150835
0.00146435
0.00142045
0.00137691
0.00133347
0.00129043
0.0012475
0.00120504
0.00116272
0.00112098
0.00107944
0.00103863
0.000998107
0.000958495
0.00091928
0.000881181
0.000843576
0.000807272
0.000771487
0.000737112
0.000703155
0.00067059
0.000638183
0.00060703
0.000575656
0.000545359
0.00051445
0.000484516
0.000453652
0.000423782
0.000392724
0.000362738
0.000331286
0.000300994
0.00026895
0.000238232
0.000205559
0.000174545
0.000141491
0.000110602
7.76358e-05
4.74006e-05
1.53e-05
0.00292895
0.0029199
0.00290783
0.00289256
0.00287408
0.00285237
0.00282758
0.00279983
0.00276935
0.00273636
0.00270114
0.00266391
0.00262499
0.00258456
0.00254292
0.00250022
0.0024567
0.00241248
0.00236776
0.00232259
0.00227717
0.00223151
0.00218576
0.00213991
0.00209409
0.00204826
0.00200256
0.0019569
0.00191143
0.00186603
0.00182087
0.00177579
0.00173097
0.00168625
0.0016418
0.00159745
0.0015534
0.00150942
0.00146577
0.00142219
0.00137896
0.00133581
0.00129305
0.00125038
0.00120818
0.00116609
0.00112458
0.00108324
0.00104262
0.00100226
0.000962802
0.000923698
0.00088569
0.000848128
0.000811841
0.000776024
0.000741587
0.000707524
0.000674831
0.000642268
0.000610949
0.000579403
0.000548937
0.000517867
0.000487778
0.000456775
0.000426763
0.000395583
0.000365458
0.000333899
0.000303474
0.000271345
0.000240499
0.000207762
0.000176608
0.000143495
0.000112412
7.93658e-05
4.87753e-05
1.6029e-05
0.0028784
0.00286972
0.0028584
0.00284425
0.00282725
0.00280735
0.00278463
0.00275916
0.00273112
0.00270066
0.002668
0.00263332
0.00259689
0.00255888
0.00251955
0.00247903
0.00243756
0.00239526
0.00235231
0.0023088
0.00226489
0.00222062
0.00217615
0.00213147
0.00208672
0.00204187
0.00199706
0.00195221
0.00190747
0.00186275
0.00181819
0.00177367
0.00172936
0.0016851
0.00164107
0.0015971
0.00155339
0.00150974
0.00146637
0.00142306
0.00138008
0.00133715
0.0012946
0.00125212
0.00121009
0.00116817
0.00112681
0.00108561
0.0010451
0.00100484
0.00096545
0.000926402
0.00088841
0.000850845
0.000814508
0.000778622
0.000744067
0.000709874
0.000677006
0.000644272
0.00061275
0.000581026
0.000550359
0.000519133
0.000488865
0.000457736
0.000427564
0.000396284
0.000366013
0.000334378
0.000303818
0.000271643
0.000240675
0.000207917
0.000176635
0.000143511
0.00011225
7.91754e-05
4.82615e-05
1.58075e-05
0.00282996
0.0028216
0.0028109
0.00279771
0.00278197
0.00276362
0.0027427
0.00271923
0.00269335
0.00266515
0.00263482
0.0026025
0.0025684
0.00253266
0.00249553
0.00245712
0.00241766
0.00237723
0.00233606
0.00229419
0.00225181
0.00220896
0.0021658
0.00212231
0.00207867
0.00203484
0.00199096
0.00194696
0.00190302
0.00185901
0.00181512
0.00177121
0.00172746
0.00168371
0.00164016
0.00159663
0.00155333
0.00151006
0.00146705
0.00142407
0.00138141
0.00133877
0.00129651
0.00125429
0.00121251
0.00117082
0.00112968
0.00108868
0.00104836
0.00100826
0.000969018
0.00093008
0.000892177
0.000854661
0.000818344
0.000782435
0.000747827
0.000713544
0.000680561
0.000647689
0.000616015
0.000584137
0.000553312
0.000521943
0.000491528
0.000460278
0.000429971
0.000398587
0.000368187
0.000336465
0.000305781
0.00027354
0.000242453
0.000209649
0.000178236
0.00014507
0.000113621
8.04798e-05
4.92352e-05
1.63115e-05
0.00278341
0.00277533
0.00276517
0.00275279
0.00273813
0.00272111
0.00270176
0.00268005
0.00265609
0.00262992
0.00260171
0.00257154
0.0025396
0.00250601
0.00247096
0.00243457
0.00239704
0.00235847
0.00231903
0.0022788
0.00223796
0.00219653
0.0021547
0.00211245
0.00206994
0.00202716
0.00198424
0.00194114
0.00189801
0.00185476
0.00181156
0.00176828
0.00172511
0.0016819
0.00163885
0.00159577
0.00155289
0.00151001
0.00146736
0.00142471
0.00138235
0.00134
0.00129799
0.00125602
0.00121447
0.00117299
0.00113204
0.00109122
0.00105105
0.00101108
0.000971939
0.000933087
0.000895228
0.000857736
0.000821394
0.000785441
0.000750738
0.000716347
0.000683209
0.000650185
0.000618322
0.000586277
0.000555258
0.000523735
0.00049314
0.00046176
0.000431288
0.000399797
0.000369241
0.000337433
0.000306605
0.000274303
0.000243079
0.000210238
0.000178679
0.000145483
0.000113838
8.0641e-05
4.90738e-05
1.62343e-05
0.00273857
0.00273073
0.00272104
0.00270936
0.00269563
0.00267977
0.00266178
0.00264162
0.00261936
0.00259502
0.00256873
0.00254053
0.00251059
0.002479
0.00244593
0.00241147
0.00237581
0.00233902
0.0023013
0.00226269
0.00222337
0.00218338
0.00214289
0.00210188
0.00206054
0.00201883
0.00197692
0.00193474
0.00189246
0.00185
0.00180752
0.00176492
0.00172237
0.00167973
0.00163721
0.00159462
0.0015522
0.00150973
0.00146747
0.00142519
0.00138317
0.00134114
0.00129944
0.00125774
0.00121646
0.00117523
0.0011345
0.00109388
0.00105391
0.00101411
0.000975112
0.000936375
0.000898605
0.000861167
0.000824846
0.000788879
0.000754126
0.000719656
0.000686408
0.000653259
0.000621248
0.00058906
0.000557884
0.000526225
0.000495481
0.000463985
0.000433376
0.000401786
0.000371099
0.00033921
0.000308256
0.000275895
0.000244549
0.000211667
0.000179972
0.000146738
0.000114905
8.16379e-05
4.976e-05
1.65731e-05
0.00269527
0.00268764
0.00267836
0.00266729
0.00265437
0.00263953
0.00262273
0.00260394
0.00258319
0.0025605
0.00253593
0.00250954
0.00248146
0.00245173
0.00242052
0.00238789
0.00235402
0.00231897
0.00228291
0.00224589
0.00220809
0.00216953
0.00213038
0.00209064
0.00205048
0.00200987
0.00196898
0.00192775
0.00188636
0.00184471
0.001803
0.00176109
0.00171919
0.00167716
0.00163519
0.00159312
0.00155117
0.00150914
0.0014673
0.0014254
0.00138373
0.00134203
0.00130064
0.00125923
0.00121821
0.00117723
0.00113673
0.00109632
0.00105652
0.00101689
0.000978021
0.000939397
0.000901696
0.000864307
0.000827988
0.000792002
0.000757179
0.000722626
0.000689246
0.000655967
0.000623787
0.000591449
0.000560093
0.00052829
0.000497374
0.000465752
0.000434982
0.000403285
0.000372444
0.000340468
0.000309367
0.000276941
0.000245454
0.000212527
0.000180679
0.000147401
0.000115366
8.20233e-05
4.98356e-05
1.65925e-05
0.00265337
0.00264594
0.00263701
0.00262648
0.00261427
0.00260031
0.00258457
0.00256699
0.00254759
0.00252637
0.00250338
0.00247864
0.00245226
0.00242426
0.0023948
0.0023639
0.00233174
0.00229836
0.00226392
0.00222846
0.00219215
0.00215501
0.0021172
0.00207873
0.00203976
0.00200027
0.00196043
0.00192018
0.0018797
0.0018389
0.00179797
0.0017568
0.00171558
0.00167417
0.00163279
0.00159126
0.00154982
0.00150826
0.00146686
0.00142536
0.00138408
0.00134273
0.00130167
0.00126057
0.00121984
0.00117912
0.00113887
0.00109869
0.0010591
0.00101965
0.000980931
0.000942435
0.00090483
0.000867507
0.000831216
0.000795229
0.000760364
0.000725746
0.000692264
0.000658873
0.000626551
0.00059408
0.000562568
0.000530636
0.000499569
0.000467834
0.00043692
0.000405127
0.00037415
0.000342093
0.000310861
0.000278375
0.00024676
0.000213789
0.000181799
0.000148477
0.000116251
8.28269e-05
5.03464e-05
1.6826e-05
0.00261276
0.0026055
0.00259689
0.00258683
0.00257525
0.00256206
0.00254725
0.00253075
0.00251256
0.00249267
0.0024711
0.00244787
0.00242305
0.00239666
0.00236883
0.00233958
0.00230904
0.00227726
0.00224439
0.00221044
0.00217559
0.00213985
0.00210338
0.00206618
0.00202842
0.00199006
0.00195128
0.00191203
0.00187248
0.00183255
0.00179244
0.00175203
0.00171151
0.00167077
0.00162999
0.00158904
0.00154812
0.00150706
0.00146611
0.00142505
0.00138416
0.0013432
0.00130248
0.00126171
0.00122128
0.00118084
0.00114084
0.0011009
0.00106151
0.00102225
0.000983691
0.000945331
0.000907818
0.000870568
0.000834301
0.000798318
0.000763407
0.000728729
0.000695139
0.000661639
0.000629169
0.000596566
0.000564889
0.000532825
0.000501595
0.000469741
0.000438672
0.000406776
0.000375648
0.000343506
0.000312129
0.000279577
0.000247819
0.000214798
0.000182653
0.000149277
0.00011685
8.33328e-05
5.0561e-05
1.69002e-05
0.00257331
0.00256621
0.00255789
0.00254824
0.00253722
0.00252473
0.00251075
0.0024952
0.0024781
0.00245939
0.00243912
0.00241726
0.00239389
0.00236899
0.00234268
0.00231497
0.00228598
0.00225573
0.00222436
0.00219188
0.00215846
0.0021241
0.00208895
0.00205301
0.00201645
0.00197923
0.00194153
0.0019033
0.0018647
0.00182567
0.0017864
0.00174677
0.00170699
0.00166693
0.0016268
0.00158643
0.00154608
0.00150554
0.00146507
0.00142446
0.001384
0.00134342
0.00130307
0.00126265
0.00122253
0.00118239
0.00114267
0.00110297
0.00106381
0.00102475
0.000986364
0.00094815
0.000910746
0.00087358
0.000837354
0.000801388
0.000766449
0.000731724
0.000698044
0.000664449
0.000631847
0.000599124
0.000567298
0.000535112
0.000503732
0.000471768
0.000440554
0.000408563
0.000377294
0.000345072
0.000313559
0.000280944
0.000249052
0.000215982
0.000183689
0.000150259
0.000117639
8.40256e-05
5.09782e-05
1.70737e-05
0.00253495
0.00252799
0.00251993
0.00251065
0.00250012
0.00248825
0.002475
0.00246032
0.00244419
0.00242656
0.00240746
0.00238686
0.00236481
0.00234129
0.0023164
0.00229014
0.00226261
0.00223381
0.00220389
0.00217283
0.0021408
0.00210779
0.00207394
0.00203926
0.00200389
0.00196782
0.0019312
0.00189399
0.00185637
0.00181826
0.00177984
0.00174102
0.001702
0.00166265
0.00162318
0.00158344
0.00154366
0.00150367
0.00146371
0.00142357
0.00138355
0.00134339
0.00130342
0.00126336
0.00122358
0.00118376
0.00114432
0.00110489
0.00106596
0.00102712
0.000988904
0.000950848
0.00091356
0.000876488
0.000840308
0.000804368
0.000769404
0.000734642
0.000700877
0.000667195
0.000634463
0.000601626
0.000569649
0.000537345
0.00050581
0.000473736
0.000442372
0.000410283
0.000378868
0.000346563
0.000314907
0.000282225
0.000250191
0.000217065
0.000184617
0.000151124
0.000118307
8.45845e-05
5.12652e-05
1.71746e-05
0.00249757
0.00249075
0.00248292
0.00247398
0.00246389
0.00245257
0.00243999
0.00242608
0.00241082
0.00239417
0.00237613
0.00235668
0.00233584
0.00231361
0.00229004
0.00226513
0.00223897
0.00221156
0.00218302
0.00215333
0.00212265
0.00209095
0.00205838
0.00202493
0.00199076
0.00195582
0.0019203
0.00188413
0.00184749
0.00181031
0.00177277
0.00173478
0.00169654
0.00165792
0.00161914
0.00158004
0.00154087
0.00150144
0.00146201
0.00142238
0.00138282
0.0013431
0.00130353
0.00126385
0.00122442
0.00118493
0.00114579
0.00110664
0.00106796
0.00102934
0.000991319
0.000953432
0.000916271
0.000879305
0.000843184
0.000807282
0.000772307
0.00073752
0.000703682
0.000669924
0.000637075
0.000604134
0.000572017
0.000539601
0.000507922
0.000475743
0.000444235
0.000412053
0.000380498
0.000348112
0.000316318
0.000283571
0.000251399
0.000218217
0.000185618
0.000152059
0.000119051
8.52161e-05
5.16377e-05
1.73167e-05
0.0024611
0.00245441
0.0024468
0.00243816
0.00242847
0.00241765
0.00240566
0.00239244
0.00237798
0.00236221
0.00234515
0.00232674
0.00230703
0.00228597
0.00226363
0.00223999
0.00221513
0.00218903
0.0021618
0.00213343
0.00210404
0.00207362
0.00204231
0.00201007
0.00197707
0.00194328
0.00190884
0.00187371
0.00183806
0.00180182
0.00176518
0.00172804
0.0016906
0.00165273
0.00161466
0.00157624
0.00153769
0.00149885
0.00145997
0.00142086
0.00138178
0.00134252
0.00130338
0.0012641
0.00122504
0.00118589
0.00114706
0.00110821
0.00106979
0.00103141
0.000993592
0.000955887
0.000918862
0.000882013
0.000845959
0.000810108
0.000775131
0.000740329
0.000706426
0.000672604
0.000639645
0.000606607
0.000574355
0.000541833
0.00051001
0.000477729
0.000446078
0.000413803
0.000382105
0.000349638
0.000317705
0.000284888
0.000252576
0.000219332
0.00018658
0.000152948
0.000119748
8.57901e-05
5.19581e-05
1.74283e-05
0.00242548
0.00241892
0.00241149
0.00240314
0.00239381
0.00238343
0.00237199
0.00235939
0.00234565
0.00233068
0.0023145
0.00229706
0.00227837
0.00225841
0.00223721
0.00221475
0.00219111
0.00216625
0.00214028
0.00211316
0.00208503
0.00205584
0.00202575
0.0019947
0.00196286
0.00193019
0.00189683
0.00186275
0.0018281
0.00179282
0.00175708
0.0017208
0.00168418
0.00164709
0.00160974
0.00157201
0.00153411
0.00149589
0.00145758
0.00141901
0.00138044
0.00134165
0.00130296
0.0012641
0.00122542
0.00118664
0.00114814
0.00110959
0.00107144
0.00103332
0.000995715
0.000958203
0.000921328
0.000884608
0.000848634
0.000812843
0.000777876
0.000743072
0.000709118
0.00067524
0.000642182
0.000609058
0.00057668
0.000544059
0.000512099
0.000479721
0.000447931
0.000415567
0.000383731
0.000351184
0.000319114
0.000286229
0.000253779
0.000220472
0.000187568
0.000153859
0.000120472
8.63863e-05
5.23107e-05
1.7555e-05
0.00239065
0.00238419
0.00237695
0.00236885
0.00235985
0.00234988
0.00233892
0.0023269
0.00231381
0.00229957
0.0022842
0.00226764
0.0022499
0.00223094
0.00221081
0.00218946
0.00216696
0.00214327
0.00211848
0.00209257
0.00206564
0.00203765
0.00200873
0.00197886
0.00194816
0.00191659
0.00188431
0.00185126
0.00181761
0.00178329
0.00174847
0.00171307
0.00167727
0.00164098
0.00160438
0.00156736
0.00153013
0.00149254
0.00145482
0.00141681
0.00137877
0.00134048
0.00130224
0.00126382
0.00122555
0.00118715
0.00114899
0.00111077
0.00107291
0.00103506
0.000997676
0.000960371
0.000923657
0.000887078
0.000851195
0.000815478
0.000780533
0.000745738
0.000711742
0.000677822
0.000644674
0.000611473
0.000578976
0.000546263
0.000514171
0.0004817
0.000449774
0.000417322
0.00038535
0.000352723
0.000320517
0.000287561
0.000254972
0.000221598
0.000188543
0.000154749
0.000121177
8.69566e-05
5.26436e-05
1.76695e-05
0.00235653
0.00235019
0.00234311
0.00233524
0.00232655
0.00231695
0.00230644
0.00229494
0.00228244
0.00226887
0.00225424
0.00223848
0.00222162
0.0022036
0.00218445
0.00216413
0.0021427
0.00212012
0.00209646
0.00207169
0.00204591
0.00201907
0.0019913
0.00196256
0.00193297
0.0019025
0.00187128
0.00183927
0.00180661
0.00177325
0.00173936
0.00170484
0.00166989
0.0016344
0.00159856
0.00156227
0.00152573
0.00148879
0.00145169
0.00141426
0.00137676
0.00133899
0.00130124
0.00126327
0.00122542
0.00118741
0.00114962
0.00111174
0.00107418
0.00103661
0.000999466
0.000962381
0.00092584
0.000889415
0.000853635
0.000818005
0.000783093
0.000748321
0.000714295
0.000680344
0.000647118
0.00061385
0.000581243
0.000548445
0.000516228
0.000483669
0.000451612
0.000419075
0.00038697
0.000354265
0.000321926
0.000288898
0.000256174
0.000222729
0.000189525
0.000155643
0.00012189
8.7529e-05
5.29865e-05
1.77885e-05
0.00232309
0.00231685
0.00230993
0.00230228
0.00229386
0.00228461
0.0022745
0.00226348
0.00225152
0.00223857
0.00222461
0.0022096
0.00219354
0.00217638
0.00215815
0.0021388
0.00211837
0.00209683
0.00207424
0.00205056
0.00202588
0.00200015
0.00197348
0.00194584
0.00191734
0.00188794
0.00185777
0.00182678
0.00179511
0.00176272
0.00172974
0.00169612
0.00166202
0.00162735
0.00159229
0.00155674
0.0015209
0.00148464
0.00144817
0.00141135
0.00137441
0.00133717
0.00129992
0.00126243
0.00122501
0.00118742
0.00115
0.00111248
0.00107524
0.00103796
0.00100107
0.000964222
0.000927867
0.000891609
0.000855946
0.000820414
0.000785549
0.000750812
0.000716769
0.000682799
0.000649505
0.00061618
0.000583472
0.000550598
0.000518263
0.00048562
0.000453437
0.000420818
0.000388584
0.000355801
0.000323331
0.00029023
0.000257372
0.000223852
0.000190501
0.000156525
0.000122593
8.80874e-05
5.33213e-05
1.79025e-05
0.00229027
0.00228413
0.00227737
0.00226992
0.00226175
0.00225282
0.00224308
0.0022325
0.00222104
0.00220865
0.00219532
0.00218099
0.00216567
0.00214932
0.00213194
0.00211348
0.002094
0.00207344
0.00205185
0.00202921
0.00200557
0.00198091
0.00195531
0.00192873
0.00190129
0.00187294
0.00184379
0.00181381
0.00178313
0.00175169
0.00171965
0.00168692
0.00165368
0.00161983
0.00158557
0.00155078
0.00151565
0.00148008
0.00144426
0.00140805
0.0013717
0.00133502
0.00129828
0.00126128
0.00122432
0.00118716
0.00115013
0.00111299
0.00107607
0.00103911
0.00100249
0.000965883
0.000929727
0.00089365
0.000858116
0.000822698
0.000787892
0.000753202
0.000719156
0.000685179
0.000651829
0.000618457
0.000585659
0.000552716
0.000520271
0.00048755
0.000455247
0.000422549
0.00039019
0.000357331
0.000324733
0.000291559
0.000258569
0.000224972
0.000191476
0.000157402
0.000123296
8.86403e-05
5.36571e-05
1.80171e-05
0.00225803
0.00225199
0.00224537
0.00223811
0.00223018
0.00222154
0.00221215
0.00220197
0.00219096
0.00217909
0.00216634
0.00215264
0.00213802
0.0021224
0.00210581
0.0020882
0.0020696
0.00204996
0.00202933
0.00200766
0.00198503
0.00196138
0.0019368
0.00191126
0.00188484
0.00185751
0.00182938
0.00180039
0.00177068
0.00174019
0.00170907
0.00167724
0.00164486
0.00161185
0.00157839
0.00154437
0.00150997
0.0014751
0.00143995
0.00140438
0.00136862
0.00133251
0.00129631
0.00125982
0.00122333
0.00118662
0.00115
0.00111324
0.00107667
0.00104004
0.0010037
0.000967354
0.000931412
0.000895529
0.000860138
0.000824846
0.000790114
0.000755485
0.000721448
0.000687476
0.000654083
0.000620676
0.000587797
0.000554794
0.000522246
0.000489454
0.000457037
0.000424263
0.000391784
0.00035885
0.000326128
0.00029288
0.00025976
0.000226084
0.000192446
0.000158268
0.000123991
8.91829e-05
5.3988e-05
1.81291e-05
0.00222633
0.00222039
0.0022139
0.00220682
0.00219912
0.00219074
0.00218168
0.00217186
0.00216128
0.00214989
0.00213766
0.00212456
0.00211057
0.00209564
0.00207979
0.00206297
0.00204519
0.00202642
0.00200668
0.00198595
0.00196426
0.00194159
0.001918
0.00189345
0.00186803
0.00184169
0.00181454
0.00178653
0.00175778
0.00172823
0.00169802
0.00166709
0.00163558
0.00160341
0.00157075
0.00153751
0.00150386
0.0014697
0.00143523
0.00140031
0.00136517
0.00132965
0.00129399
0.00125803
0.00122203
0.00118579
0.00114959
0.00111324
0.00107703
0.00104073
0.00100469
0.000968623
0.000932909
0.000897235
0.000862001
0.000826849
0.000792204
0.000757651
0.000723636
0.000689683
0.00065626
0.000622828
0.000589881
0.000556826
0.000524185
0.000491326
0.000458803
0.000425957
0.000393364
0.000360356
0.000327514
0.000294191
0.000260946
0.000227187
0.000193409
0.000159125
0.00012468
8.97173e-05
5.43161e-05
1.82403e-05
0.00219513
0.00218928
0.00218293
0.00217602
0.00216852
0.0021604
0.00215163
0.00214216
0.00213198
0.00212102
0.00210929
0.00209673
0.00208333
0.00206905
0.00205389
0.00203779
0.00202079
0.00200283
0.00198395
0.00196409
0.00194331
0.00192157
0.00189892
0.00187533
0.00185087
0.00182549
0.0017993
0.00177225
0.00174444
0.00171582
0.00168652
0.00165648
0.00162583
0.00159451
0.00156266
0.00153021
0.00149731
0.00146388
0.0014301
0.00139585
0.00136133
0.00132642
0.00129133
0.00125591
0.00122041
0.00118465
0.0011489
0.00111296
0.00107713
0.00104119
0.00100546
0.000969681
0.000934209
0.000898758
0.000863696
0.000828698
0.000794155
0.000759691
0.000725713
0.000691792
0.000658351
0.000624907
0.000591902
0.000558804
0.00052608
0.000493162
0.000460539
0.000427626
0.000394923
0.000361844
0.000328887
0.000295489
0.000262121
0.000228278
0.000194364
0.00015997
0.000125362
9.0242e-05
5.46395e-05
1.83496e-05
0.0021644
0.00215865
0.00215242
0.00214566
0.00213837
0.00213048
0.00212199
0.00211284
0.00210302
0.00209248
0.00208121
0.00206915
0.0020563
0.00204262
0.0020281
0.00201269
0.00199642
0.00197922
0.00196114
0.00194212
0.0019222
0.00190134
0.00187959
0.00185692
0.00183338
0.00180895
0.00178369
0.00175757
0.00173068
0.00170298
0.00167458
0.00164542
0.00161564
0.00158516
0.00155412
0.00152246
0.00149033
0.00145763
0.00142455
0.00139098
0.00135711
0.00132281
0.0012883
0.00125345
0.00121846
0.0011832
0.0011479
0.0011124
0.00107696
0.00104139
0.00100599
0.000970516
0.000935301
0.000900087
0.000865212
0.000830383
0.000795957
0.000761596
0.00072767
0.000693794
0.00066035
0.000626905
0.000593854
0.000560724
0.000527925
0.000494956
0.000462241
0.000429266
0.00039646
0.000363312
0.000330245
0.000296772
0.000263286
0.000229356
0.000195309
0.000160804
0.000126035
9.07571e-05
5.49581e-05
1.84573e-05
0.0021341
0.00212844
0.00212233
0.00211574
0.00210863
0.00210097
0.00209273
0.00208389
0.00207441
0.00206425
0.0020534
0.00204181
0.00202948
0.00201635
0.00200243
0.00198767
0.00197207
0.0019556
0.00193827
0.00192004
0.00190094
0.00188092
0.00186004
0.00183824
0.0018156
0.00179207
0.00176772
0.00174251
0.00171653
0.00168973
0.00166221
0.00163393
0.001605
0.00157536
0.00154514
0.00151427
0.0014829
0.00145096
0.00141859
0.00138571
0.00135249
0.00131883
0.00128491
0.00125062
0.00121617
0.00118142
0.0011466
0.00111155
0.00107652
0.00104133
0.00100627
0.000971117
0.000936175
0.000901213
0.00086654
0.000831894
0.0007976
0.000763356
0.000729497
0.00069568
0.000662247
0.000628813
0.00059573
0.000562577
0.000529715
0.000496702
0.000463904
0.00043087
0.000397969
0.000364755
0.000331583
0.000298036
0.000264435
0.000230419
0.000196242
0.000161623
0.000126698
9.1262e-05
5.52712e-05
1.8563e-05
0.00210421
0.00209864
0.00209265
0.0020862
0.00207927
0.00207182
0.00206383
0.00205527
0.00204611
0.00203631
0.00202585
0.00201471
0.00200285
0.00199025
0.00197689
0.00196273
0.00194777
0.00193198
0.00191536
0.00189788
0.00187955
0.00186033
0.00184028
0.00181933
0.00179755
0.00177489
0.00175142
0.00172709
0.00170199
0.00167607
0.00164943
0.00162201
0.00159393
0.00156512
0.00153571
0.00150565
0.00147505
0.00144385
0.0014122
0.00138002
0.00134747
0.00131445
0.00128114
0.00124744
0.00121354
0.00117931
0.00114497
0.00111039
0.00107578
0.001041
0.00100629
0.000971474
0.000936819
0.000902124
0.000867669
0.000833221
0.000799075
0.000764963
0.000731187
0.000697442
0.000664034
0.000630624
0.000597521
0.000564357
0.000531443
0.000498393
0.000465522
0.000432436
0.000399446
0.000366169
0.000332898
0.000299278
0.000265567
0.000231463
0.000197161
0.000162427
0.00012735
9.17561e-05
5.55781e-05
1.86668e-05
0.00207469
0.00206922
0.00206334
0.00205703
0.00205027
0.00204302
0.00203527
0.00202697
0.0020181
0.00200864
0.00199856
0.00198782
0.00197642
0.0019643
0.00195147
0.00193788
0.00192352
0.00190837
0.00189242
0.00187564
0.00185805
0.0018396
0.00182033
0.00180019
0.00177923
0.00175742
0.0017348
0.00171133
0.00168709
0.00166204
0.00163625
0.00160968
0.00158244
0.00155446
0.00152586
0.00149659
0.00146676
0.00143632
0.0014054
0.00137392
0.00134204
0.00130968
0.00127699
0.00124389
0.00121054
0.00117686
0.00114302
0.00110892
0.00107475
0.00104038
0.00100604
0.000971575
0.000937224
0.000902811
0.000868588
0.000834355
0.000800371
0.000766407
0.000732728
0.000699071
0.000665703
0.000632331
0.000599222
0.000566056
0.000533102
0.000500024
0.000467088
0.000433956
0.000400886
0.000367549
0.000334185
0.000300494
0.000266679
0.000232487
0.000198064
0.000163214
0.000127989
9.22388e-05
5.58784e-05
1.87684e-05
0.00204553
0.00204014
0.00203438
0.00202821
0.00202161
0.00201455
0.00200702
0.00199897
0.00199039
0.00198124
0.00197151
0.00196116
0.00195017
0.00193852
0.00192618
0.00191311
0.00189933
0.00188478
0.00186947
0.00185335
0.00183646
0.00181874
0.00180021
0.00178085
0.00176069
0.00173968
0.00171788
0.00169525
0.00167184
0.00164763
0.00162268
0.00159695
0.00157053
0.00154338
0.00151558
0.0014871
0.00145805
0.00142836
0.00139817
0.0013674
0.00133621
0.00130451
0.00127245
0.00123996
0.00120719
0.00117406
0.00114073
0.00110712
0.0010734
0.00103946
0.00100551
0.000971411
0.000937379
0.000903262
0.000869289
0.000835284
0.00080148
0.000767678
0.000734113
0.000700557
0.000667246
0.000633923
0.000600822
0.000567666
0.000534684
0.000501587
0.000468598
0.000435426
0.000402284
0.000368892
0.000335442
0.000301681
0.000267767
0.000233488
0.000198947
0.000163983
0.000128614
9.27095e-05
5.61714e-05
1.88676e-05
0.00201669
0.00201139
0.00200574
0.00199971
0.00199326
0.00198639
0.00197906
0.00197125
0.00196293
0.00195408
0.00194468
0.0019347
0.00192411
0.00191288
0.00190101
0.00188844
0.00187519
0.00186121
0.0018465
0.00183102
0.00181479
0.00179776
0.00177995
0.00176133
0.00174192
0.0017217
0.00170069
0.00167886
0.00165627
0.00163288
0.00160875
0.00158384
0.00155823
0.00153189
0.00150489
0.0014772
0.00144891
0.00141998
0.00139052
0.00136047
0.00132996
0.00129893
0.00126752
0.00123564
0.00120346
0.00117089
0.0011381
0.00110499
0.00107174
0.00103824
0.00100469
0.000970972
0.000937274
0.000903469
0.00086976
0.000835999
0.000802391
0.000768766
0.000735332
0.000701892
0.000668652
0.000635393
0.000602315
0.000569181
0.000536184
0.000503076
0.000470044
0.00043684
0.000403634
0.000370192
0.000336663
0.000302836
0.000268828
0.000234464
0.00019981
0.000164732
0.000129223
9.31674e-05
5.64566e-05
1.89642e-05
0.00198815
0.00198295
0.00197741
0.0019715
0.00196521
0.00195851
0.00195138
0.00194379
0.00193573
0.00192716
0.00191807
0.00190843
0.00189821
0.00188739
0.00187596
0.00186387
0.00185112
0.00183767
0.00182353
0.00180865
0.00179304
0.00177667
0.00175955
0.00174163
0.00172296
0.00170348
0.00168324
0.00166219
0.00164039
0.00161779
0.00159446
0.00157036
0.00154555
0.00152
0.00149379
0.00146688
0.00143936
0.00141118
0.00138245
0.00135313
0.00132331
0.00129296
0.00126219
0.00123094
0.00119936
0.00116736
0.00113511
0.00110252
0.00106975
0.00103671
0.00100358
0.000970247
0.000936898
0.00090342
0.000869992
0.000836489
0.000803094
0.000769662
0.000736375
0.000703066
0.000669913
0.000636732
0.000603691
0.000570591
0.000537592
0.000504485
0.000471421
0.000438191
0.000404931
0.000371445
0.000337844
0.000303955
0.000269858
0.000235411
0.000200649
0.00016546
0.000129816
9.36116e-05
5.67334e-05
1.9058e-05
0.00195989
0.00195478
0.00194935
0.00194357
0.00193742
0.00193089
0.00192395
0.00191658
0.00190876
0.00190046
0.00189167
0.00188235
0.00187248
0.00186205
0.00185102
0.00183938
0.00182711
0.00181417
0.00180056
0.00178625
0.00177124
0.0017555
0.00173902
0.00172179
0.00170381
0.00168505
0.00166554
0.00164525
0.00162421
0.00160239
0.00157983
0.00155652
0.00153249
0.00150773
0.0014823
0.00145616
0.0014294
0.00140197
0.00137398
0.00134537
0.00131625
0.00128658
0.00125646
0.00122585
0.00119487
0.00116346
0.00113176
0.0010997
0.00106742
0.00103485
0.00100215
0.000969227
0.000936243
0.000903106
0.000869975
0.000836746
0.00080358
0.000770356
0.000737232
0.000704069
0.000671021
0.000637931
0.000604943
0.000571889
0.000538901
0.000505805
0.000472721
0.000439474
0.00040617
0.000372644
0.00033898
0.000305032
0.000270854
0.000236326
0.000201462
0.000166164
0.000130389
9.40413e-05
5.70011e-05
1.91488e-05
0.0019319
0.00192688
0.00192155
0.0019159
0.00190989
0.00190352
0.00189677
0.0018896
0.00188201
0.00187397
0.00186545
0.00185644
0.00184691
0.00183684
0.0018262
0.00181498
0.00180316
0.0017907
0.00177761
0.00176384
0.00174939
0.00173424
0.00171839
0.0017018
0.00168449
0.00166642
0.00164762
0.00162805
0.00160775
0.00158668
0.00156489
0.00154234
0.00151908
0.00149509
0.00147042
0.00144505
0.00141903
0.00139235
0.00136509
0.0013372
0.00130878
0.00127979
0.00125033
0.00122036
0.00119
0.00115918
0.00112804
0.00109652
0.00106475
0.00103266
0.0010004
0.000967903
0.000935298
0.000902517
0.000869699
0.00083676
0.000803839
0.000770838
0.000737894
0.000704893
0.000671965
0.000638981
0.000606061
0.000573066
0.000540104
0.000507029
0.000473937
0.000440682
0.000407344
0.000373786
0.000340067
0.000306065
0.000271812
0.000237208
0.000202246
0.000166843
0.000130943
9.44553e-05
5.72591e-05
1.92364e-05
0.00190414
0.00189922
0.00189399
0.00188846
0.0018826
0.00187639
0.00186981
0.00186284
0.00185547
0.00184767
0.00183942
0.0018307
0.00182149
0.00181176
0.0018015
0.00179067
0.00177928
0.00176728
0.00175466
0.00174141
0.0017275
0.00171292
0.00169766
0.00168168
0.00166501
0.00164761
0.00162948
0.00161062
0.00159103
0.00157069
0.00154963
0.00152783
0.00150532
0.00148208
0.00145817
0.00143354
0.00140828
0.00138234
0.00135579
0.00132862
0.0013009
0.0012726
0.0012438
0.00121448
0.00118473
0.00115452
0.00112395
0.00109298
0.00106172
0.00103014
0.000998334
0.000966267
0.000934056
0.000901645
0.000869155
0.00083652
0.000803861
0.000771099
0.000738352
0.000705528
0.000672736
0.000639873
0.000607037
0.000574115
0.000541192
0.000508151
0.000475063
0.000441809
0.000408448
0.000374865
0.000341099
0.000307049
0.000272728
0.000238051
0.000202998
0.000167494
0.000131475
9.48528e-05
5.75068e-05
1.93206e-05
0.00187661
0.00187178
0.00186666
0.00186125
0.00185552
0.00184947
0.00184306
0.00183628
0.00182912
0.00182155
0.00181356
0.00180511
0.0017962
0.0017868
0.00177689
0.00176645
0.00175546
0.00174389
0.00173174
0.00171897
0.00170558
0.00169153
0.00167683
0.00166145
0.00164539
0.00162862
0.00161115
0.00159296
0.00157406
0.00155443
0.00153408
0.00151301
0.00149123
0.00146873
0.00144555
0.00142167
0.00139713
0.00137193
0.0013461
0.00131965
0.00129262
0.001265
0.00123687
0.0012082
0.00117908
0.00114948
0.00111949
0.00108908
0.00105835
0.00102726
0.00099593
0.00096431
0.000932507
0.00090048
0.000868333
0.000836017
0.000803636
0.000771129
0.000738596
0.000705964
0.000673326
0.000640598
0.000607862
0.000575026
0.000542158
0.000509161
0.00047609
0.000442848
0.000409474
0.000375874
0.00034207
0.000307979
0.000273598
0.000238853
0.000203715
0.000168115
0.000131982
9.52325e-05
5.77435e-05
1.94011e-05
0.00184929
0.00184455
0.00183954
0.00183424
0.00182865
0.00182274
0.0018165
0.00180991
0.00180295
0.00179561
0.00178785
0.00177968
0.00177105
0.00176196
0.00175239
0.00174231
0.0017317
0.00172055
0.00170883
0.00169652
0.00168362
0.00167009
0.00165593
0.00164111
0.00162564
0.00160948
0.00159264
0.00157509
0.00155686
0.0015379
0.00151825
0.00149788
0.00147682
0.00145504
0.00143259
0.00140943
0.00138562
0.00136113
0.00133602
0.00131027
0.00128394
0.00125701
0.00122954
0.00120153
0.00117304
0.00114405
0.00111464
0.0010848
0.00105461
0.00102404
0.000993187
0.000962025
0.000930644
0.000899014
0.000867226
0.000835244
0.000803157
0.00077092
0.000738617
0.000706193
0.000673725
0.000641148
0.000608528
0.000575791
0.000542992
0.000510053
0.000477013
0.000443792
0.000410416
0.000376809
0.000342977
0.000308851
0.000274417
0.000239611
0.000204395
0.000168704
0.000132465
9.55933e-05
5.79685e-05
1.94777e-05
0.00182216
0.00181751
0.00181261
0.00180743
0.00180197
0.0017962
0.00179013
0.00178371
0.00177695
0.00176982
0.0017623
0.00175438
0.00174603
0.00173724
0.00172798
0.00171824
0.001708
0.00169724
0.00168594
0.00167408
0.00166164
0.0016486
0.00163495
0.00162067
0.00160576
0.00159018
0.00157395
0.00155703
0.00153943
0.00152114
0.00150216
0.00148248
0.00146211
0.00144103
0.00141928
0.00139684
0.00137374
0.00134996
0.00132556
0.00130051
0.00127487
0.00124862
0.00122182
0.00119446
0.0011666
0.00113823
0.00110941
0.00108015
0.0010505
0.00102046
0.000990097
0.000959404
0.000928459
0.000897239
0.000865825
0.00083419
0.000802414
0.000770461
0.000738405
0.000706204
0.000673923
0.000641512
0.000609024
0.000576402
0.000543688
0.000510818
0.000477822
0.000444635
0.000411269
0.000377663
0.000343813
0.00030966
0.000275181
0.000240321
0.000205034
0.000169259
0.00013292
9.59338e-05
5.8181e-05
1.95502e-05
0.00179521
0.00179066
0.00178585
0.00178079
0.00177546
0.00176984
0.00176392
0.00175768
0.0017511
0.00174418
0.00173689
0.00172921
0.00172112
0.00171261
0.00170367
0.00169425
0.00168437
0.00167398
0.00166307
0.00165163
0.00163963
0.00162707
0.00161391
0.00160015
0.00158577
0.00157076
0.0015551
0.00153878
0.0015218
0.00150414
0.00148582
0.0014668
0.0014471
0.00142671
0.00140565
0.00138391
0.0013615
0.00133843
0.00131472
0.00129036
0.00126541
0.00123983
0.0012137
0.00118699
0.00115977
0.00113202
0.0011038
0.00107511
0.00104602
0.00101651
0.000986655
0.000956444
0.000925945
0.000895148
0.000864122
0.000832849
0.000801398
0.000769745
0.000737953
0.000705991
0.000673913
0.000641683
0.000609343
0.00057685
0.000544235
0.000511449
0.000478511
0.000445368
0.000412025
0.00037843
0.000344572
0.0003104
0.000275886
0.000240979
0.000205629
0.000169777
0.000133346
9.6253e-05
5.83803e-05
1.96182e-05
0.00176843
0.00176396
0.00175927
0.00175432
0.00174911
0.00174364
0.00173787
0.0017318
0.0017254
0.00171868
0.0017116
0.00170416
0.00169633
0.00168809
0.00167944
0.00167034
0.00166078
0.00165075
0.00164023
0.00162919
0.00161762
0.00160549
0.00159281
0.00157954
0.00156568
0.0015512
0.0015361
0.00152036
0.00150398
0.00148693
0.00146923
0.00145085
0.00143181
0.00141209
0.00139171
0.00137064
0.00134892
0.00132654
0.00130351
0.00127984
0.00125556
0.00123066
0.00120519
0.00117913
0.00115254
0.00112542
0.0010978
0.0010697
0.00104117
0.0010122
0.000982858
0.000953136
0.000923097
0.000892734
0.000862109
0.000831212
0.000800102
0.000768763
0.00073725
0.000705542
0.000673685
0.000641651
0.000609476
0.000577127
0.000544627
0.000511938
0.000479072
0.000445985
0.000412677
0.000379104
0.000345249
0.000311068
0.000276528
0.000241581
0.000206176
0.000170255
0.00013374
9.65492e-05
5.85656e-05
1.96816e-05
0.0017418
0.00173743
0.00173283
0.001728
0.00172292
0.00171758
0.00171196
0.00170605
0.00169984
0.00169331
0.00168644
0.00167922
0.00167163
0.00166366
0.00165529
0.00164649
0.00163726
0.00162757
0.0016174
0.00160675
0.00159558
0.00158389
0.00157166
0.00155886
0.00154549
0.00153153
0.00151696
0.00150178
0.00148597
0.00146951
0.00145242
0.00143467
0.00141626
0.00139719
0.00137746
0.00135706
0.00133601
0.0013143
0.00129195
0.00126896
0.00124535
0.00122111
0.0011963
0.00117089
0.00114493
0.00111843
0.00109142
0.00106391
0.00103594
0.00100752
0.0009787
0.000949478
0.000919909
0.000889992
0.000859781
0.000829273
0.000798517
0.000767508
0.00073629
0.000704852
0.00067323
0.000641408
0.000609414
0.000577224
0.000544854
0.000512277
0.000479496
0.00044648
0.00041322
0.00037968
0.000345839
0.000311658
0.000277101
0.000242124
0.000206673
0.000170692
0.000134102
9.68213e-05
5.87362e-05
1.974e-05
0.00171531
0.00171103
0.00170654
0.00170183
0.00169687
0.00169166
0.00168619
0.00168044
0.00167441
0.00166806
0.0016614
0.0016544
0.00164704
0.00163932
0.00163122
0.00162271
0.00161378
0.00160442
0.0015946
0.00158431
0.00157354
0.00156226
0.00155045
0.00153811
0.00152521
0.00151174
0.00149769
0.00148304
0.00146778
0.0014519
0.0014354
0.00141825
0.00140046
0.00138201
0.00136292
0.00134317
0.00132278
0.00130173
0.00128004
0.00125771
0.00123476
0.00121119
0.00118702
0.00116226
0.00113694
0.00111106
0.00108466
0.00105774
0.00103034
0.00100247
0.00097418
0.000945466
0.000916376
0.000886917
0.000857132
0.000827025
0.000796638
0.000765972
0.000735064
0.00070391
0.000672541
0.000640947
0.000609149
0.000577133
0.00054491
0.000512458
0.000479778
0.000446844
0.000413645
0.000380149
0.000346334
0.000312164
0.000277602
0.000242604
0.000207117
0.000171084
0.000134428
9.70677e-05
5.88909e-05
1.97932e-05
0.00168895
0.00168477
0.00168039
0.00167578
0.00167095
0.00166588
0.00166055
0.00165496
0.00164909
0.00164293
0.00163646
0.00162967
0.00162254
0.00161506
0.00160722
0.00159899
0.00159036
0.00158131
0.00157182
0.00156189
0.00155149
0.0015406
0.00152921
0.0015173
0.00150485
0.00149186
0.0014783
0.00146417
0.00144944
0.00143411
0.00141817
0.0014016
0.00138441
0.00136658
0.00134811
0.00132899
0.00130924
0.00128883
0.0012678
0.00124612
0.00122382
0.0012009
0.00117738
0.00115326
0.00112857
0.00110331
0.00107751
0.00105118
0.00102436
0.000997053
0.000969295
0.000941096
0.000912496
0.000883503
0.000854156
0.000824462
0.000794458
0.000764148
0.000733566
0.000702711
0.00067161
0.000640258
0.000608674
0.000576846
0.000544785
0.000512473
0.000479909
0.000447071
0.000413946
0.000380508
0.000346731
0.000312583
0.000278025
0.000243016
0.000207503
0.000171429
0.000134717
9.72869e-05
5.90292e-05
1.98408e-05
0.00166273
0.00165864
0.00165436
0.00164986
0.00164515
0.00164021
0.00163503
0.00162959
0.00162388
0.0016179
0.00161162
0.00160504
0.00159813
0.00159089
0.00158329
0.00157533
0.00156698
0.00155823
0.00154907
0.00153947
0.00152943
0.00151891
0.00150792
0.00149643
0.00148442
0.00147188
0.0014588
0.00144516
0.00143094
0.00141614
0.00140075
0.00138475
0.00136813
0.00135089
0.00133303
0.00131453
0.0012954
0.00127562
0.00125522
0.00123419
0.00121253
0.00119025
0.00116737
0.00114389
0.00111982
0.00109518
0.00106999
0.00104425
0.00101801
0.000991261
0.000964044
0.000936367
0.000908264
0.000879747
0.000850848
0.000821579
0.00079197
0.000762031
0.000731788
0.000701247
0.000670429
0.000639335
0.000607979
0.000576356
0.000544472
0.000512315
0.000479881
0.000447153
0.000414117
0.000380748
0.000347022
0.000312907
0.000278366
0.000243357
0.000207828
0.000171723
0.000134966
9.74775e-05
5.915e-05
1.98826e-05
0.00163661
0.00163262
0.00162844
0.00162406
0.00161947
0.00161466
0.00160961
0.00160433
0.00159878
0.00159297
0.00158688
0.00158049
0.0015738
0.00156678
0.00155943
0.00155172
0.00154365
0.00153519
0.00152633
0.00151706
0.00150736
0.00149721
0.0014866
0.0014755
0.00146392
0.00145182
0.00143919
0.00142602
0.0014123
0.00139802
0.00138315
0.00136769
0.00135164
0.00133497
0.00131769
0.00129979
0.00128127
0.00126212
0.00124234
0.00122193
0.00120091
0.00117926
0.00115701
0.00113415
0.0011107
0.00108668
0.00106209
0.00103695
0.00101128
0.0009851
0.000958427
0.000931278
0.00090368
0.000875646
0.000847206
0.000818372
0.000789171
0.000759613
0.000729724
0.00069951
0.000668991
0.00063817
0.000607059
0.000575655
0.000543964
0.000511977
0.000479688
0.000447085
0.00041415
0.000380865
0.000347202
0.000313133
0.00027862
0.000243623
0.000208089
0.000171965
0.000135173
9.7638e-05
5.92525e-05
1.99182e-05
0.00161062
0.00160672
0.00160264
0.00159837
0.0015939
0.00158922
0.00158431
0.00157917
0.00157378
0.00156814
0.00156223
0.00155604
0.00154955
0.00154275
0.00153563
0.00152817
0.00152036
0.00151219
0.00150363
0.00149467
0.0014853
0.00147549
0.00146525
0.00145454
0.00144335
0.00143167
0.00141949
0.00140678
0.00139353
0.00137974
0.00136538
0.00135045
0.00133494
0.00131883
0.00130212
0.0012848
0.00126687
0.00124832
0.00122915
0.00120936
0.00118895
0.00116793
0.00114629
0.00112406
0.00110123
0.00107781
0.00105382
0.00102928
0.00100419
0.00097857
0.000952446
0.000925828
0.000898742
0.000871199
0.000843227
0.000814837
0.000786055
0.000756892
0.00072737
0.000697497
0.000667291
0.000636757
0.000605905
0.000574737
0.000543254
0.000511451
0.000479323
0.000446858
0.00041404
0.000380852
0.000347265
0.000313255
0.000278782
0.000243809
0.000208283
0.00017215
0.000135337
9.77667e-05
5.93357e-05
1.99474e-05
0.00158472
0.00158093
0.00157695
0.00157279
0.00156844
0.00156388
0.00155911
0.00155411
0.00154888
0.0015434
0.00153767
0.00153166
0.00152537
0.00151879
0.0015119
0.00150468
0.00149712
0.00148922
0.00148094
0.00147228
0.00146323
0.00145376
0.00144387
0.00143353
0.00142273
0.00141146
0.00139969
0.00138743
0.00137464
0.00136132
0.00134746
0.00133303
0.00131804
0.00130247
0.00128632
0.00126956
0.00125221
0.00123424
0.00121567
0.00119648
0.00117668
0.00115627
0.00113524
0.00111362
0.00109139
0.00106858
0.00104519
0.00102124
0.000996726
0.000971675
0.000946102
0.00092002
0.00089345
0.000866405
0.000838908
0.000810973
0.00078262
0.000753862
0.000724719
0.000695201
0.000665322
0.000635089
0.000604513
0.000573593
0.000542334
0.000510731
0.000478779
0.000446467
0.000413781
0.000380702
0.000347207
0.000313268
0.000278849
0.000243912
0.000208406
0.000172278
0.000135455
9.78622e-05
5.93988e-05
1.99698e-05
0.00155894
0.00155523
0.00155136
0.00154731
0.00154307
0.00153864
0.001534
0.00152915
0.00152407
0.00151876
0.00151319
0.00150737
0.00150127
0.0014949
0.00148822
0.00148124
0.00147393
0.00146628
0.00145828
0.00144992
0.00144117
0.00143202
0.00142247
0.00141248
0.00140206
0.00139117
0.00137982
0.00136798
0.00135563
0.00134277
0.00132938
0.00131545
0.00130097
0.00128592
0.0012703
0.00125409
0.0012373
0.0012199
0.00120191
0.00118331
0.0011641
0.00114429
0.00112387
0.00110284
0.00108122
0.00105901
0.00103621
0.00101284
0.000988904
0.000964419
0.000939398
0.000913854
0.000887805
0.000861264
0.000834249
0.000806776
0.000778862
0.000750521
0.000721769
0.000692617
0.000663079
0.000633162
0.000602874
0.00057222
0.000541199
0.000509811
0.00047805
0.000445906
0.000413365
0.000380412
0.00034702
0.000313167
0.000278815
0.000243928
0.000208455
0.000172344
0.000135524
9.79228e-05
5.94406e-05
1.99851e-05
0.00153325
0.00152964
0.00152587
0.00152193
0.00151781
0.0015135
0.00150899
0.00150428
0.00149935
0.00149419
0.0014888
0.00148315
0.00147725
0.00147107
0.00146461
0.00145785
0.00145078
0.00144338
0.00143565
0.00142756
0.00141911
0.00141028
0.00140105
0.00139141
0.00138134
0.00137083
0.00135987
0.00134844
0.00133652
0.0013241
0.00131117
0.00129771
0.00128372
0.00126918
0.00125407
0.0012384
0.00122215
0.00120531
0.00118788
0.00116986
0.00115123
0.001132
0.00111217
0.00109174
0.00107071
0.00104909
0.00102688
0.00100409
0.000980726
0.000956806
0.000932338
0.000907334
0.000881809
0.000855776
0.000829251
0.000802247
0.000774781
0.000746866
0.000718516
0.000689743
0.000660558
0.00063097
0.000600986
0.00057061
0.000539843
0.000508685
0.000477129
0.000445168
0.000412788
0.000379974
0.000346702
0.000312948
0.000278676
0.000243852
0.000208426
0.000172346
0.000135544
9.79472e-05
5.94606e-05
1.99931e-05
0.00150766
0.00150415
0.00150048
0.00149665
0.00149264
0.00148845
0.00148408
0.0014795
0.00147472
0.00146971
0.00146448
0.00145901
0.00145329
0.00144731
0.00144106
0.00143452
0.00142767
0.00142052
0.00141305
0.00140523
0.00139707
0.00138853
0.00137962
0.00137031
0.00136059
0.00135044
0.00133986
0.00132882
0.00131731
0.00130532
0.00129283
0.00127983
0.00126631
0.00125226
0.00123766
0.0012225
0.00120678
0.00119048
0.0011736
0.00115614
0.00113808
0.00111942
0.00110017
0.00108032
0.00105987
0.00103883
0.0010172
0.000994991
0.000972201
0.000948843
0.000924927
0.000900464
0.000875466
0.000849944
0.000823913
0.000797386
0.000770376
0.000742896
0.000714958
0.000686575
0.000657756
0.000628509
0.000598842
0.000568759
0.00053826
0.000507346
0.000476011
0.000444248
0.000412044
0.000379384
0.000346245
0.000312605
0.000278429
0.000243682
0.000208316
0.000172281
0.000135511
9.79337e-05
5.94574e-05
1.99934e-05
0.00148218
0.00147876
0.00147519
0.00147147
0.00146757
0.00146351
0.00145925
0.00145481
0.00145017
0.00144532
0.00144025
0.00143495
0.00142941
0.00142362
0.00141756
0.00141124
0.00140462
0.00139771
0.00139048
0.00138293
0.00137503
0.00136679
0.00135818
0.00134919
0.0013398
0.00133
0.00131978
0.00130912
0.00129801
0.00128643
0.00127437
0.00126182
0.00124876
0.00123518
0.00122106
0.00120641
0.0011912
0.00117542
0.00115908
0.00114216
0.00112465
0.00110656
0.00108788
0.0010686
0.00104872
0.00102826
0.0010072
0.00098556
0.000963336
0.000940537
0.000917172
0.000893249
0.000868779
0.000843772
0.000818239
0.000792194
0.000765646
0.00073861
0.000711094
0.000683111
0.000654669
0.000625776
0.000596439
0.000566663
0.000536447
0.000505792
0.000474692
0.000443142
0.000411128
0.000378637
0.000345646
0.000312135
0.000278068
0.000243413
0.000208122
0.000172148
0.000135424
9.78811e-05
5.94306e-05
1.99856e-05
0.00145679
0.00145347
0.00145
0.00144638
0.0014426
0.00143865
0.00143453
0.00143022
0.00142572
0.00142102
0.0014161
0.00141097
0.0014056
0.0014
0.00139414
0.00138802
0.00138162
0.00137493
0.00136794
0.00136065
0.00135302
0.00134506
0.00133674
0.00132805
0.00131899
0.00130953
0.00129966
0.00128937
0.00127864
0.00126746
0.00125581
0.00124368
0.00123106
0.00121794
0.0012043
0.00119013
0.00117541
0.00116015
0.00114433
0.00112794
0.00111098
0.00109343
0.0010753
0.00105658
0.00103727
0.00101737
0.000996882
0.000975803
0.000954139
0.000931896
0.000909079
0.000885696
0.000861754
0.000837263
0.000812232
0.000786673
0.000760595
0.000734008
0.000706923
0.00067935
0.000651296
0.000622769
0.000593775
0.000564318
0.000534398
0.000504016
0.000473166
0.000441844
0.000410035
0.000377728
0.000344901
0.000311533
0.000277591
0.000243043
0.000207842
0.000171943
0.00013528
9.77877e-05
5.9379e-05
1.99696e-05
0.00143151
0.00142828
0.00142491
0.0014214
0.00141773
0.0014139
0.0014099
0.00140572
0.00140136
0.0013968
0.00139204
0.00138707
0.00138187
0.00137645
0.00137078
0.00136486
0.00135867
0.0013522
0.00134545
0.0013384
0.00133103
0.00132334
0.0013153
0.00130692
0.00129816
0.00128903
0.0012795
0.00126956
0.0012592
0.0012484
0.00123715
0.00122544
0.00121325
0.00120057
0.00118738
0.00117368
0.00115945
0.00114468
0.00112937
0.00111349
0.00109706
0.00108005
0.00106246
0.00104429
0.00102553
0.00100619
0.000986253
0.000965731
0.000944621
0.000922929
0.000900656
0.00087781
0.000854396
0.000830423
0.000805896
0.000780827
0.000755223
0.000729093
0.000702446
0.000675292
0.000647636
0.000619486
0.000590846
0.000561721
0.000532111
0.000502016
0.000471431
0.00044035
0.000408762
0.000376654
0.000344005
0.000310796
0.000276994
0.000242568
0.000207473
0.000171664
0.000135078
9.76526e-05
5.93021e-05
1.99451e-05
0.00140634
0.00140321
0.00139993
0.00139652
0.00139296
0.00138925
0.00138537
0.00138132
0.00137709
0.00137268
0.00136807
0.00136325
0.00135823
0.00135298
0.00134749
0.00134176
0.00133578
0.00132953
0.001323
0.00131619
0.00130907
0.00130164
0.00129388
0.00128578
0.00127732
0.0012685
0.0012593
0.00124971
0.0012397
0.00122928
0.00121841
0.0012071
0.00119532
0.00118307
0.00117032
0.00115707
0.00114331
0.00112903
0.0011142
0.00109883
0.00108291
0.00106642
0.00104936
0.00103173
0.00101351
0.000994715
0.000975329
0.000955355
0.000934793
0.000913645
0.000891913
0.000869602
0.000846714
0.000823258
0.000799237
0.000774661
0.000749534
0.000723867
0.000697666
0.000670938
0.000643689
0.000615926
0.000587652
0.000558872
0.000529584
0.000499789
0.000469482
0.000438658
0.000407304
0.00037541
0.000342955
0.00030992
0.000276273
0.000241984
0.000207011
0.000171309
0.000134817
9.7474e-05
5.91988e-05
1.99118e-05
0.00138128
0.00137824
0.00137507
0.00137176
0.0013683
0.0013647
0.00136094
0.00135702
0.00135293
0.00134865
0.00134419
0.00133953
0.00133466
0.00132959
0.00132428
0.00131874
0.00131296
0.00130692
0.00130061
0.00129402
0.00128715
0.00127997
0.00127247
0.00126465
0.00125649
0.00124797
0.00123909
0.00122982
0.00122016
0.00121009
0.0011996
0.00118867
0.00117729
0.00116545
0.00115313
0.00114033
0.00112702
0.0011132
0.00109885
0.00108397
0.00106855
0.00105257
0.00103603
0.00101892
0.00100123
0.000982969
0.000964121
0.000944687
0.000924665
0.000904056
0.00088286
0.000861079
0.000838716
0.000815775
0.000792261
0.000768179
0.000743534
0.000718335
0.000692584
0.00066629
0.000639457
0.00061209
0.000584193
0.000555768
0.000526815
0.000497333
0.000467318
0.000436764
0.00040566
0.000373995
0.000341749
0.000308902
0.000275426
0.000241291
0.000206455
0.000170876
0.000134494
9.72514e-05
5.90688e-05
1.98694e-05
0.00135634
0.00135339
0.00135032
0.00134711
0.00134376
0.00134027
0.00133663
0.00133283
0.00132887
0.00132473
0.00132041
0.0013159
0.00131119
0.00130628
0.00130115
0.0012958
0.00129021
0.00128437
0.00127827
0.00127191
0.00126527
0.00125833
0.0012511
0.00124354
0.00123566
0.00122744
0.00121886
0.00120991
0.00120058
0.00119086
0.00118072
0.00117017
0.00115918
0.00114774
0.00113583
0.00112345
0.00111058
0.00109722
0.00108333
0.00106893
0.00105399
0.0010385
0.00102247
0.00100587
0.000988704
0.000970964
0.000952644
0.000933741
0.000914251
0.000894174
0.000873507
0.000852253
0.000830411
0.000807985
0.000784976
0.00076139
0.000737229
0.0007125
0.000687205
0.000661351
0.000634941
0.00060798
0.000580468
0.00055241
0.000523803
0.000494647
0.000464937
0.000434667
0.000403827
0.000372405
0.000340382
0.000307741
0.000274451
0.000240486
0.000205803
0.000170363
0.000134109
9.69832e-05
5.89111e-05
1.98178e-05
0.00133153
0.00132867
0.00132569
0.00132258
0.00131934
0.00131596
0.00131244
0.00130876
0.00130492
0.00130092
0.00129674
0.00129238
0.00128782
0.00128308
0.00127812
0.00127294
0.00126754
0.0012619
0.00125601
0.00124986
0.00124344
0.00123675
0.00122976
0.00122246
0.00121485
0.00120691
0.00119863
0.00118999
0.00118098
0.00117159
0.0011618
0.00115161
0.00114099
0.00112994
0.00111843
0.00110646
0.00109402
0.00108109
0.00106766
0.00105371
0.00103925
0.00102424
0.0010087
0.000992601
0.000975941
0.000958714
0.000940912
0.000922531
0.000903564
0.000884012
0.000863868
0.000843135
0.00082181
0.000799896
0.000777391
0.000754301
0.000730625
0.000706369
0.000681534
0.000656126
0.000630146
0.000603597
0.000576481
0.000548799
0.000520549
0.000491731
0.000462338
0.000432366
0.000401803
0.000370639
0.000338855
0.000306434
0.000273346
0.000239566
0.000205054
0.00016977
0.00013366
9.66692e-05
5.87256e-05
1.97568e-05
0.00130686
0.00130409
0.0013012
0.00129819
0.00129505
0.00129178
0.00128837
0.00128481
0.0012811
0.00127722
0.00127318
0.00126897
0.00126456
0.00125997
0.00125518
0.00125018
0.00124495
0.00123951
0.00123382
0.00122788
0.00122168
0.00121521
0.00120846
0.00120142
0.00119407
0.0011864
0.00117841
0.00117007
0.00116137
0.0011523
0.00114285
0.001133
0.00112274
0.00111206
0.00110094
0.00108938
0.00107735
0.00106484
0.00105184
0.00103835
0.00102434
0.00100981
0.000994737
0.000979127
0.000962961
0.000946236
0.000928941
0.000911071
0.000892619
0.000873583
0.000853955
0.000833738
0.000812925
0.000791519
0.000769516
0.00074692
0.00072373
0.00069995
0.000675578
0.00065062
0.000625075
0.000598946
0.000572233
0.000544937
0.000517054
0.000488585
0.000459522
0.00042986
0.000399588
0.000368696
0.000337165
0.000304979
0.000272109
0.000238531
0.000204205
0.000169094
0.000133146
9.63078e-05
5.85111e-05
1.9686e-05
0.00128234
0.00127966
0.00127686
0.00127395
0.00127091
0.00126774
0.00126444
0.001261
0.00125741
0.00125366
0.00124975
0.00124568
0.00124142
0.00123698
0.00123235
0.00122752
0.00122247
0.00121721
0.00121171
0.00120598
0.0012
0.00119375
0.00118723
0.00118043
0.00117334
0.00116593
0.00115821
0.00115016
0.00114176
0.001133
0.00112387
0.00111436
0.00110445
0.00109413
0.00108339
0.00107221
0.00106058
0.00104848
0.00103591
0.00102284
0.00100928
0.000995203
0.000980601
0.000965465
0.000949782
0.000933546
0.000916747
0.000899378
0.000881431
0.000862902
0.000843784
0.000824075
0.000803769
0.000782866
0.000761363
0.00073926
0.000716555
0.000693251
0.000669345
0.00064484
0.000619735
0.000594033
0.000567729
0.000540827
0.000513322
0.000485212
0.000456489
0.00042715
0.000397182
0.000366576
0.000335313
0.000303376
0.00027074
0.000237379
0.000203256
0.000168336
0.000132567
9.58997e-05
5.82685e-05
1.96058e-05
0.00125798
0.00125538
0.00125267
0.00124986
0.00124692
0.00124385
0.00124066
0.00123733
0.00123386
0.00123024
0.00122646
0.00122252
0.00121841
0.00121412
0.00120964
0.00120498
0.0012001
0.00119502
0.00118971
0.00118417
0.00117839
0.00117237
0.00116607
0.00115951
0.00115265
0.00114551
0.00113805
0.00113027
0.00112216
0.00111371
0.00110489
0.00109571
0.00108614
0.00107617
0.00106578
0.00105498
0.00104373
0.00103203
0.00101986
0.00100722
0.00099409
0.000980456
0.000966306
0.000951632
0.000936419
0.000920662
0.000904346
0.000887469
0.000870016
0.000851986
0.000833368
0.000814161
0.000794355
0.000773952
0.000752943
0.000731331
0.00070911
0.000686281
0.000662842
0.000638794
0.000614133
0.000588861
0.000562974
0.000536474
0.000509354
0.000481613
0.000453242
0.000424237
0.000394586
0.000364278
0.000333297
0.000301625
0.000269238
0.00023611
0.000202207
0.000167493
0.000131921
9.54429e-05
5.79958e-05
1.95154e-05
0.00123379
0.00123128
0.00122866
0.00122593
0.00122309
0.00122013
0.00121704
0.00121383
0.00121047
0.00120697
0.00120332
0.00119951
0.00119554
0.0011914
0.00118707
0.00118256
0.00117786
0.00117295
0.00116782
0.00116248
0.00115689
0.00115107
0.001145
0.00113866
0.00113204
0.00112514
0.00111794
0.00111044
0.0011026
0.00109444
0.00108593
0.00107705
0.00106781
0.00105817
0.00104814
0.00103769
0.00102682
0.00101551
0.00100374
0.000991504
0.000978789
0.000965584
0.000951873
0.000937648
0.000922893
0.000907601
0.000891759
0.000875361
0.000858393
0.000840852
0.000822726
0.000804012
0.0007847
0.00076479
0.000744272
0.000723147
0.000701407
0.000679054
0.000656082
0.000632491
0.000608277
0.000583441
0.000557976
0.000531884
0.000505157
0.000477794
0.000449785
0.000421125
0.000391803
0.000361807
0.00033112
0.000299728
0.000267604
0.000234725
0.000201058
0.000166568
0.000131211
9.49395e-05
5.76954e-05
1.94158e-05
0.00120979
0.00120736
0.00120483
0.0012022
0.00119945
0.00119659
0.0011936
0.00119049
0.00118725
0.00118387
0.00118034
0.00117666
0.00117282
0.00116882
0.00116465
0.00116029
0.00115575
0.00115101
0.00114606
0.0011409
0.00113551
0.00112989
0.00112402
0.0011179
0.00111152
0.00110485
0.0010979
0.00109065
0.00108309
0.00107521
0.00106699
0.00105842
0.00104948
0.00104018
0.00103048
0.00102038
0.00100987
0.000998925
0.00098754
0.000975701
0.000963392
0.000950604
0.000937319
0.00092353
0.00090922
0.000894383
0.000879002
0.000863072
0.000846578
0.000829516
0.000811873
0.000793644
0.000774819
0.000755395
0.000735362
0.00071472
0.000693459
0.000671579
0.000649073
0.000625941
0.000602176
0.000577778
0.00055274
0.000527062
0.000500735
0.000473758
0.00044612
0.000417815
0.000388832
0.00035916
0.000328782
0.000297682
0.000265837
0.000233222
0.000199807
0.000165558
0.000130433
9.43864e-05
5.73639e-05
1.93055e-05
0.001186
0.00118365
0.00118121
0.00117866
0.001176
0.00117324
0.00117035
0.00116735
0.00116422
0.00116095
0.00115754
0.00115399
0.00115028
0.00114642
0.00114239
0.00113818
0.00113379
0.00112922
0.00112444
0.00111946
0.00111425
0.00110883
0.00110317
0.00109726
0.00109109
0.00108466
0.00107795
0.00107095
0.00106365
0.00105603
0.00104809
0.00103981
0.00103118
0.00102219
0.00101282
0.00100306
0.000992893
0.000982311
0.000971297
0.00095984
0.000947924
0.000935539
0.000922668
0.000909303
0.000895426
0.00088103
0.000866098
0.000850625
0.000834594
0.000818001
0.00080083
0.000783078
0.000764731
0.000745787
0.000726234
0.000706069
0.000685282
0.000663873
0.000641832
0.000619158
0.000595843
0.000571886
0.000547278
0.000522019
0.000496099
0.000469515
0.000442256
0.000414317
0.000385684
0.000356347
0.00032629
0.000295496
0.000263943
0.000231608
0.00019846
0.000164468
0.000129592
9.37886e-05
5.70061e-05
1.91866e-05
0.00116243
0.00116016
0.0011578
0.00115534
0.00115277
0.0011501
0.00114732
0.00114441
0.00114139
0.00113823
0.00113494
0.00113151
0.00112793
0.0011242
0.00112031
0.00111625
0.00111201
0.00110759
0.00110298
0.00109817
0.00109315
0.00108791
0.00108244
0.00107674
0.00107078
0.00106458
0.0010581
0.00105134
0.00104429
0.00103693
0.00102926
0.00102127
0.00101293
0.00100424
0.00099518
0.000985744
0.000975914
0.00096568
0.000955024
0.000943937
0.0009324
0.000920406
0.000907936
0.000894981
0.000881525
0.000867558
0.000853064
0.000838036
0.000822457
0.000806321
0.000789613
0.000772328
0.000754451
0.000735979
0.000716898
0.000697205
0.000676889
0.000655947
0.000634368
0.000612151
0.000589286
0.000565771
0.000541596
0.00051676
0.000491251
0.000465066
0.000438194
0.000410628
0.000382355
0.000353365
0.00032364
0.000293165
0.000261917
0.000229876
0.000197012
0.000163293
0.000128683
9.314e-05
5.66159e-05
1.90563e-05
0.00113911
0.00113692
0.00113464
0.00113226
0.00112978
0.0011272
0.00112451
0.00112171
0.00111878
0.00111574
0.00111256
0.00110925
0.00110579
0.00110219
0.00109843
0.00109451
0.00109042
0.00108615
0.0010817
0.00107706
0.00107221
0.00106715
0.00106187
0.00105637
0.00105062
0.00104462
0.00103837
0.00103184
0.00102503
0.00101793
0.00101052
0.0010028
0.000994738
0.000986341
0.000977586
0.000968464
0.000958958
0.000949059
0.000938749
0.000928019
0.00091685
0.000905234
0.000893152
0.000880596
0.000867546
0.000853996
0.000839928
0.000825333
0.000810194
0.000794506
0.00077825
0.000761422
0.000744007
0.000725998
0.000707382
0.000688154
0.000668303
0.000647823
0.000626704
0.000604942
0.000582527
0.000559454
0.000535714
0.000511303
0.000486209
0.00046043
0.000433951
0.000406766
0.000378862
0.000350228
0.000320846
0.000290702
0.000259774
0.000228041
0.000195474
0.000162044
0.000127716
9.2451e-05
5.62031e-05
1.8919e-05
0.00111605
0.00111393
0.00111173
0.00110943
0.00110704
0.00110455
0.00110195
0.00109924
0.00109642
0.00109348
0.00109041
0.00108721
0.00108387
0.0010804
0.00107677
0.00107298
0.00106903
0.00106491
0.00106062
0.00105613
0.00105145
0.00104657
0.00104147
0.00103616
0.00103061
0.00102482
0.00101878
0.00101247
0.0010059
0.000999037
0.000991879
0.000984416
0.00097663
0.000968514
0.000960051
0.000951231
0.000942038
0.000932463
0.000922487
0.000912101
0.000901287
0.000890036
0.00087833
0.000866159
0.000853504
0.000840359
0.000826703
0.000812529
0.000797819
0.000782566
0.000766752
0.000750371
0.000733407
0.000715853
0.000697694
0.000678925
0.000659531
0.00063951
0.000618846
0.000597536
0.000575567
0.000552937
0.000529632
0.000505648
0.000480973
0.000455602
0.000429522
0.000402726
0.000375198
0.000346929
0.000317901
0.000288099
0.000257502
0.00022609
0.000193835
0.00016071
0.00012668
9.17092e-05
5.57551e-05
1.87689e-05
0.00109328
0.00109124
0.00108911
0.00108689
0.00108458
0.00108217
0.00107966
0.00107705
0.00107432
0.00107148
0.00106852
0.00106543
0.00106221
0.00105885
0.00105535
0.0010517
0.00104788
0.00104391
0.00103976
0.00103543
0.00103091
0.0010262
0.00102127
0.00101614
0.00101078
0.00100519
0.000999358
0.000993271
0.000986917
0.000980291
0.000973375
0.000966163
0.000958639
0.000950794
0.000942611
0.000934083
0.000925191
0.000915928
0.000906273
0.00089622
0.000885749
0.000874851
0.000863508
0.00085171
0.000839438
0.000826684
0.000813429
0.000799664
0.000785371
0.000770542
0.000755159
0.000739214
0.000722691
0.000705582
0.000687871
0.000669553
0.000650611
0.000631041
0.000610828
0.000589966
0.000568442
0.000546252
0.000523382
0.000499826
0.000475573
0.000450614
0.000424938
0.000398535
0.000371391
0.000343495
0.00031483
0.000285381
0.000255127
0.000224048
0.000192119
0.000159312
0.000125595
9.09352e-05
5.52914e-05
1.86148e-05
0.00107082
0.00106884
0.00106678
0.00106464
0.00106241
0.00106009
0.00105766
0.00105514
0.00105251
0.00104977
0.00104691
0.00104392
0.00104081
0.00103757
0.00103419
0.00103066
0.00102698
0.00102314
0.00101913
0.00101495
0.00101059
0.00100604
0.00100129
0.000996329
0.000991153
0.000985754
0.000980117
0.000974237
0.000968099
0.000961696
0.000955013
0.000948043
0.000940769
0.000933185
0.000925273
0.000917024
0.000908422
0.000899459
0.000890115
0.000880382
0.000870241
0.000859683
0.00084869
0.000837252
0.00082535
0.000812975
0.000800108
0.000786739
0.000772851
0.000758434
0.00074347
0.000727951
0.000711858
0.000695185
0.000677913
0.000660037
0.000641539
0.000622414
0.000602645
0.000582227
0.000561144
0.000539392
0.000516955
0.000493827
0.000469995
0.000445452
0.000420182
0.000394178
0.000367423
0.000339908
0.000311614
0.000282527
0.000252626
0.000221893
0.000190301
0.000157826
0.000124438
9.01036e-05
5.4787e-05
1.84451e-05
0.0010487
0.00104679
0.00104481
0.00104274
0.00104058
0.00103834
0.001036
0.00103356
0.00103102
0.00102837
0.00102561
0.00102273
0.00101973
0.0010166
0.00101333
0.00100992
0.00100637
0.00100266
0.000998791
0.000994755
0.000990541
0.000986145
0.000981555
0.000976767
0.000971767
0.000966552
0.000961106
0.000955425
0.000949493
0.000943305
0.000936846
0.000930108
0.000923076
0.000915742
0.00090809
0.000900111
0.000891788
0.000883113
0.000874067
0.000864642
0.00085482
0.000844591
0.000833935
0.000822845
0.0008113
0.000799292
0.0007868
0.000773816
0.00076032
0.000746303
0.000731746
0.000716641
0.000700968
0.00068472
0.000667878
0.000650435
0.000632373
0.000613685
0.000594354
0.000574374
0.000553728
0.00053241
0.000510404
0.000487703
0.000464293
0.000440166
0.000415305
0.000389703
0.000363343
0.000336214
0.000308299
0.000279582
0.000250044
0.000219667
0.000188425
0.000156295
0.000123248
8.92547e-05
5.42793e-05
1.82767e-05
0.00102693
0.00102509
0.00102317
0.00102117
0.00101909
0.00101692
0.00101466
0.00101231
0.00100985
0.0010073
0.00100463
0.00100185
0.000998947
0.000995923
0.000992767
0.000989477
0.000986043
0.000982462
0.000978723
0.000974824
0.000970753
0.000966506
0.000962071
0.000957445
0.000952614
0.000947574
0.000942311
0.00093682
0.000931087
0.000925105
0.00091886
0.000912345
0.000905544
0.00089845
0.000891046
0.000883326
0.00087527
0.000866872
0.000858113
0.000848985
0.000839468
0.000829555
0.000819224
0.000808469
0.000797269
0.000785614
0.000773484
0.000760872
0.000747755
0.000734126
0.000719965
0.000705262
0.000689997
0.000674163
0.00065774
0.000640721
0.000623085
0.000604826
0.000585926
0.000566377
0.000546162
0.000525274
0.000503695
0.00048142
0.00045843
0.000434718
0.000410269
0.000385071
0.00035911
0.000332372
0.000304841
0.000276503
0.000247336
0.000217324
0.000186442
0.000154669
0.000121977
8.83374e-05
5.37195e-05
1.80873e-05
0.00100558
0.0010038
0.00100195
0.00100002
0.000998007
0.000995913
0.000993729
0.000991456
0.000989084
0.000986613
0.000984036
0.00098135
0.000978548
0.000975627
0.000972578
0.0009694
0.000966082
0.000962622
0.00095901
0.000955242
0.000951308
0.000947205
0.000942919
0.000938448
0.000933779
0.000928908
0.00092382
0.000918512
0.000912968
0.000907184
0.000901144
0.000894843
0.000888264
0.0008814
0.000874236
0.000866763
0.000858964
0.000850832
0.000842348
0.000833505
0.000824282
0.000814673
0.000804655
0.000794223
0.000783354
0.00077204
0.000760261
0.000748007
0.000735258
0.000722004
0.000708225
0.000693912
0.000679045
0.000663614
0.000647599
0.000630993
0.000613774
0.000595936
0.000577458
0.000558333
0.000538543
0.000518079
0.000496924
0.000475069
0.000452498
0.000429201
0.000405162
0.000380371
0.00035481
0.000328467
0.000301326
0.000273371
0.000244583
0.000214945
0.000184433
0.000153028
0.000120701
8.74283e-05
5.31786e-05
1.79087e-05
0.000984617
0.000982897
0.000981105
0.00097924
0.000977296
0.000975272
0.000973162
0.000970964
0.000968672
0.000966284
0.000963792
0.000961196
0.000958488
0.000955664
0.000952717
0.000949645
0.000946438
0.000943093
0.000939601
0.000935959
0.000932156
0.000928188
0.000924045
0.000919722
0.000915207
0.000910496
0.000905576
0.000900441
0.000895079
0.000889483
0.000883639
0.000877542
0.000871174
0.00086453
0.000857594
0.000850358
0.000842805
0.000834928
0.000826707
0.000818136
0.000809195
0.000799877
0.00079016
0.000780037
0.000769487
0.000758501
0.000747058
0.00073515
0.000722755
0.000709863
0.000696455
0.000682519
0.000668036
0.000652997
0.000637379
0.000621174
0.000604362
0.000586934
0.00056887
0.000550161
0.000530788
0.000510742
0.000490005
0.000468567
0.000446411
0.000423527
0.000399898
0.000375512
0.000350353
0.000324409
0.000297661
0.000270095
0.000241692
0.000212435
0.000182302
0.000151273
0.000119323
8.64284e-05
5.2563e-05
1.76989e-05
0.000964169
0.000962506
0.000960774
0.000958971
0.000957092
0.000955135
0.000953095
0.00095097
0.000948754
0.000946446
0.000944037
0.000941528
0.000938909
0.000936179
0.00093333
0.00093036
0.000927259
0.000924025
0.000920648
0.000917126
0.000913448
0.000909611
0.000905604
0.000901423
0.000897055
0.000892498
0.000887737
0.00088277
0.000877581
0.000872165
0.000866509
0.000860606
0.000854441
0.000848008
0.00084129
0.000834281
0.000826963
0.000819329
0.000811361
0.000803052
0.000794381
0.000785341
0.000775913
0.000766087
0.000755843
0.000745172
0.000734053
0.000722478
0.000710424
0.000697882
0.00068483
0.00067126
0.000657149
0.000642488
0.000627255
0.000611441
0.000595025
0.000577997
0.000560337
0.000542034
0.00052307
0.000503434
0.000483108
0.000462081
0.000440336
0.000417861
0.000394638
0.000370657
0.0003459
0.000320354
0.000294001
0.000266828
0.000238814
0.000209944
0.000180196
0.000149552
0.000117987
8.54805e-05
5.20046e-05
1.75163e-05
0.000944126
0.000942517
0.00094084
0.000939095
0.000937276
0.000935383
0.000933408
0.000931352
0.000929208
0.000926974
0.000924643
0.000922214
0.00091968
0.000917039
0.000914281
0.000911407
0.000908406
0.000905276
0.000902008
0.0008986
0.00089504
0.000891326
0.000887447
0.0008834
0.000879172
0.00087476
0.000870151
0.000865341
0.000860316
0.000855072
0.000849593
0.000843876
0.000837903
0.00083167
0.00082516
0.000818366
0.000811272
0.00080387
0.000796143
0.000788082
0.000779669
0.000770896
0.000761743
0.000752201
0.00074225
0.000731881
0.000721073
0.000709817
0.000698091
0.000685885
0.000673178
0.000659959
0.000646208
0.000631913
0.000617053
0.000601617
0.000585585
0.000568946
0.000551679
0.000533774
0.00051521
0.000495976
0.000476054
0.000455432
0.000434091
0.000412021
0.000389202
0.000365624
0.000341267
0.00031612
0.000290164
0.000263385
0.000235765
0.000207286
0.00017793
0.000147678
0.000116507
8.43979e-05
5.13294e-05
1.72835e-05
0.000924743
0.000923186
0.000921564
0.000919875
0.000918115
0.000916282
0.000914371
0.000912381
0.000910306
0.000908143
0.000905887
0.000903537
0.000901084
0.000898527
0.000895858
0.000893075
0.00089017
0.00088714
0.000883976
0.000880676
0.00087723
0.000873634
0.000869877
0.000865958
0.000861863
0.00085759
0.000853126
0.000848467
0.000843598
0.000838517
0.000833208
0.000827667
0.000821878
0.000815835
0.000809523
0.000802935
0.000796054
0.000788874
0.000781376
0.000773553
0.000765386
0.000756867
0.000747977
0.000738707
0.000729036
0.000718956
0.000708445
0.000697494
0.000686082
0.000674199
0.000661822
0.000648941
0.000635535
0.000621592
0.000607091
0.000592022
0.000576361
0.000560099
0.000543213
0.000525693
0.000507518
0.000488676
0.000469148
0.000448922
0.000427978
0.000406306
0.000383885
0.000360704
0.000336744
0.000311993
0.000286432
0.000260048
0.000232821
0.000204737
0.000175775
0.000145919
0.000115147
8.34416e-05
5.07766e-05
1.71059e-05
0.000905732
0.000904222
0.000902649
0.000901011
0.000899304
0.000897527
0.000895674
0.000893745
0.000891733
0.000889636
0.000887449
0.000885171
0.000882793
0.000880314
0.000877727
0.000875029
0.000872213
0.000869276
0.000866209
0.000863011
0.000859669
0.000856184
0.000852542
0.000848743
0.000844773
0.000840631
0.000836302
0.000831784
0.000827063
0.000822136
0.000816987
0.000811612
0.000805996
0.000800134
0.000794009
0.000787616
0.000780938
0.000773967
0.000766687
0.00075909
0.000751157
0.00074288
0.000734241
0.000725229
0.000715826
0.000706022
0.000695795
0.000685137
0.000674026
0.000662452
0.000650392
0.000637836
0.000624762
0.00061116
0.000597005
0.000582289
0.000566987
0.00055109
0.000534575
0.00051743
0.000499633
0.000481175
0.000462032
0.000442194
0.000421641
0.00040036
0.000378332
0.000355545
0.000331979
0.000307622
0.000282456
0.000256466
0.000229635
0.000201947
0.000173384
0.00014393
0.000113564
8.22691e-05
5.00313e-05
1.68452e-05
0.000887625
0.000886161
0.000884636
0.000883048
0.000881393
0.000879671
0.000877874
0.000876004
0.000874052
0.00087202
0.000869899
0.00086769
0.000865384
0.00086298
0.000860471
0.000857856
0.000855125
0.000852277
0.000849302
0.0008462
0.000842959
0.000839578
0.000836046
0.00083236
0.000828509
0.00082449
0.00082029
0.000815907
0.000811326
0.000806543
0.000801546
0.000796329
0.000790877
0.000785185
0.000779237
0.000773028
0.000766541
0.000759769
0.000752695
0.000745311
0.000737599
0.000729552
0.000721149
0.000712383
0.000703232
0.00069369
0.000683732
0.000673352
0.000662526
0.000651245
0.000639487
0.00062724
0.000614483
0.000601204
0.00058738
0.000573001
0.000558043
0.000542496
0.000526335
0.00050955
0.000492118
0.000474029
0.000455258
0.000435796
0.000415621
0.00039472
0.000373075
0.000350671
0.000327491
0.000303521
0.000278743
0.000253143
0.000226703
0.000199409
0.000171243
0.000142189
0.00011223
8.13473e-05
4.95175e-05
1.66858e-05
0.000869732
0.000868308
0.000866825
0.000865281
0.000863672
0.000861997
0.000860251
0.000858433
0.000856536
0.000854561
0.000852501
0.000850354
0.000848113
0.000845778
0.000843341
0.0008408
0.000838147
0.00083538
0.000832491
0.000829478
0.00082633
0.000823047
0.000819616
0.000816037
0.000812296
0.000808393
0.000804314
0.000800056
0.000795606
0.000790961
0.000786107
0.000781038
0.000775741
0.000770211
0.000764431
0.000758397
0.000752091
0.000745508
0.000738629
0.000731449
0.000723947
0.000716119
0.000707942
0.00069941
0.000690501
0.000681208
0.000671509
0.000661395
0.000650843
0.000639844
0.000628374
0.000616425
0.000603972
0.000591006
0.000577501
0.000563448
0.000548822
0.000533613
0.000517797
0.000501361
0.000484284
0.000466554
0.000448147
0.000429052
0.000409247
0.000388721
0.000367451
0.000345427
0.000322628
0.000299042
0.000274649
0.000249438
0.00022339
0.000196492
0.000168725
0.000140077
0.000110528
8.0065e-05
4.86806e-05
1.63873e-05
0.000853186
0.000851802
0.00085036
0.000848859
0.000847295
0.000845666
0.000843969
0.000842201
0.000840357
0.000838437
0.000836433
0.000834345
0.000832167
0.000829897
0.000827527
0.000825056
0.000822476
0.000819786
0.000816977
0.000814047
0.000810987
0.000807794
0.000804458
0.000800977
0.000797339
0.000793543
0.000789576
0.000785435
0.000781107
0.000776588
0.000771866
0.000766935
0.000761781
0.0007564
0.000750775
0.000744902
0.000738764
0.000732356
0.000725658
0.000718666
0.00071136
0.000703733
0.000695766
0.000687451
0.000678767
0.000669706
0.000660247
0.00065038
0.000640082
0.000629346
0.000618146
0.000606475
0.000594306
0.000581631
0.000568425
0.000554678
0.000540364
0.000525473
0.000509981
0.000493875
0.000477133
0.000459742
0.00044168
0.000422934
0.000403481
0.000383311
0.000362401
0.00034074
0.000318307
0.00029509
0.000271071
0.000246236
0.000220569
0.000194056
0.000166681
0.00013843
0.000109287
7.92373e-05
4.82532e-05
1.6265e-05
0.00083643
0.00083508
0.000833672
0.000832209
0.000830683
0.000829095
0.00082744
0.000825717
0.00082392
0.000822048
0.000820096
0.000818063
0.000815941
0.00081373
0.000811422
0.000809017
0.000806505
0.000803887
0.000801152
0.000798301
0.000795322
0.000792215
0.000788969
0.000785582
0.000782043
0.000778349
0.000774489
0.00077046
0.000766249
0.000761852
0.000757257
0.000752459
0.000747444
0.000742207
0.000736732
0.000731015
0.00072504
0.0007188
0.000712278
0.000705468
0.000698351
0.000690921
0.000683157
0.000675052
0.000666586
0.00065775
0.000648523
0.000638895
0.000628845
0.000618363
0.000607425
0.000596023
0.000584131
0.000571739
0.000558823
0.000545372
0.000531362
0.000516781
0.000501604
0.00048582
0.000469405
0.000452346
0.00043462
0.000416216
0.00039711
0.00037729
0.000356735
0.000335432
0.000313362
0.000290511
0.000266863
0.000242404
0.000217118
0.000190992
0.000164011
0.000136162
0.00010743
7.7804e-05
4.72855e-05
1.59122e-05
0.000821862
0.000820542
0.000819167
0.000817737
0.000816246
0.000814695
0.000813078
0.000811394
0.000809638
0.00080781
0.000805903
0.000803917
0.000801844
0.000799685
0.000797431
0.000795082
0.000792629
0.000790072
0.000787402
0.000784618
0.00078171
0.000778677
0.000775508
0.000772202
0.000768747
0.000765142
0.000761374
0.000757442
0.000753332
0.000749041
0.000744556
0.000739873
0.000734978
0.000729867
0.000724523
0.000718943
0.00071311
0.000707018
0.00070065
0.000694001
0.00068705
0.000679793
0.000672209
0.00066429
0.000656017
0.000647381
0.000638361
0.000628947
0.000619118
0.000608864
0.000598161
0.000587
0.000575357
0.00056322
0.000550567
0.000537385
0.000523649
0.000509349
0.00049446
0.000478969
0.000462852
0.000446098
0.000428681
0.000410591
0.000391804
0.000372307
0.00035208
0.00033111
0.000309377
0.000286869
0.000263569
0.000239463
0.000214537
0.000188778
0.000162173
0.000134709
0.000106374
7.71517e-05
4.70097e-05
1.58527e-05
0.000806114
0.000804824
0.00080348
0.000802082
0.000800626
0.000799111
0.000797531
0.000795888
0.000794175
0.000792391
0.00079053
0.000788593
0.000786572
0.000784466
0.000782269
0.000779979
0.000777589
0.000775098
0.000772496
0.000769784
0.000766951
0.000763996
0.00076091
0.000757689
0.000754325
0.000750813
0.000747144
0.000743314
0.00073931
0.000735131
0.000730762
0.0007262
0.00072143
0.00071645
0.000711242
0.000705804
0.000700117
0.000694178
0.000687969
0.000681484
0.000674704
0.000667623
0.000660221
0.000652492
0.000644414
0.00063598
0.000627168
0.000617969
0.000608361
0.000598335
0.000587867
0.000576947
0.000565551
0.000553669
0.000541276
0.00052836
0.000514898
0.000500877
0.000486272
0.000471071
0.000455251
0.000438797
0.000421688
0.000403909
0.000385439
0.000366264
0.000346364
0.000325725
0.00030433
0.000282165
0.000259212
0.000235463
0.0002109
0.000185513
0.00015929
0.000132219
0.000104289
7.54938e-05
4.58469e-05
1.54196e-05
0.000794155
0.000792879
0.000791551
0.000790171
0.000788733
0.000787237
0.000785678
0.000784057
0.000782367
0.000780608
0.000778774
0.000776865
0.000774874
0.0007728
0.000770637
0.000768384
0.000766032
0.000763581
0.000761023
0.000758357
0.000755573
0.00075267
0.000749638
0.000746475
0.000743172
0.000739725
0.000736124
0.000732367
0.000728439
0.00072434
0.000720055
0.000715582
0.000710906
0.000706024
0.000700919
0.000695588
0.000690015
0.000684194
0.000678108
0.000671751
0.000665106
0.000658165
0.000650909
0.000643332
0.000635412
0.000627141
0.000618499
0.000609477
0.000600051
0.000590213
0.00057994
0.000569221
0.000558032
0.000546363
0.00053419
0.000521499
0.000508268
0.000494484
0.000480122
0.00046517
0.000449603
0.000433409
0.000416563
0.000399055
0.000380859
0.000361964
0.000342348
0.000322001
0.000300901
0.000279038
0.000256395
0.000232962
0.000208723
0.000183672
0.000157795
0.000131086
0.000103531
7.51193e-05
4.5804e-05
1.54544e-05
0.000779023
0.000777784
0.000776492
0.00077515
0.000773751
0.000772297
0.000770783
0.000769207
0.000767564
0.000765855
0.000764073
0.000762218
0.000760284
0.000758269
0.000756167
0.000753977
0.000751692
0.00074931
0.000746824
0.000744232
0.000741526
0.000738703
0.000735755
0.00073268
0.000729467
0.000726114
0.00072261
0.000718953
0.00071513
0.000711139
0.000706966
0.000702608
0.000698052
0.000693294
0.000688317
0.000683119
0.000677683
0.000672003
0.000666064
0.000659858
0.000653369
0.000646589
0.000639499
0.000632092
0.000624348
0.000616259
0.000607804
0.000598973
0.000589745
0.00058011
0.000570045
0.00055954
0.000548571
0.000537127
0.000525184
0.00051273
0.00049974
0.000486202
0.000472092
0.000457397
0.000442093
0.000426166
0.000409594
0.000392363
0.00037445
0.000355843
0.000336522
0.000316474
0.000295679
0.000274129
0.000251805
0.0002287
0.0002048
0.000180099
0.000154585
0.000128255
0.000101099
7.31208e-05
4.43515e-05
1.49043e-05
0.000770559
0.000769302
0.000767995
0.000766638
0.000765227
0.000763762
0.000762236
0.000760652
0.000759002
0.000757287
0.000755501
0.000753644
0.00075171
0.000749697
0.000747599
0.000745416
0.00074314
0.00074077
0.000738299
0.000735724
0.000733037
0.000730238
0.000727316
0.00072427
0.000721089
0.000717772
0.000714307
0.000710693
0.000706917
0.000702976
0.000698858
0.000694559
0.000690065
0.000685373
0.000680467
0.000675344
0.000669987
0.000664391
0.00065854
0.000652428
0.000646036
0.000639358
0.000632376
0.000625081
0.000617454
0.000609488
0.000601159
0.000592461
0.00058337
0.000573877
0.00056396
0.000553607
0.000542795
0.000531514
0.000519738
0.000507456
0.000494644
0.000481289
0.000467366
0.000452863
0.000437755
0.00042203
0.000405663
0.000388643
0.000370945
0.000352559
0.000333462
0.000313645
0.000293086
0.000271779
0.000249705
0.000226859
0.000203227
0.000178807
0.000153589
0.000127575
0.000100756
7.31225e-05
4.46143e-05
1.50602e-05
0.000755339
0.000754146
0.000752903
0.000751612
0.000750267
0.00074887
0.000747415
0.000745901
0.000744325
0.000742684
0.000740975
0.000739196
0.00073734
0.000735409
0.000733394
0.000731296
0.000729106
0.000726825
0.000724443
0.000721961
0.000719368
0.000716665
0.000713841
0.000710895
0.000707817
0.000704605
0.000701247
0.000697742
0.000694077
0.00069025
0.000686248
0.000682068
0.000677696
0.000673128
0.00066835
0.000663356
0.000658133
0.000652673
0.000646961
0.000640991
0.000634746
0.000628217
0.000621388
0.00061425
0.000606783
0.000598981
0.00059082
0.000582294
0.000573379
0.000564067
0.000554334
0.00054417
0.000533551
0.000522468
0.000510894
0.000498818
0.000486217
0.000473077
0.000459374
0.000445095
0.000430217
0.000414725
0.000398597
0.00038182
0.00036437
0.000346237
0.000327399
0.000307846
0.000287558
0.000266529
0.00024474
0.00022219
0.000198865
0.000174766
0.000149887
0.000124234
9.78073e-05
7.063e-05
4.27591e-05
1.43534e-05
0.000751239
0.000749981
0.000748678
0.00074733
0.000745931
0.000744482
0.000742978
0.000741419
0.000739799
0.000738119
0.000736372
0.00073456
0.000732674
0.000730715
0.000728675
0.000726556
0.000724348
0.000722051
0.000719657
0.000717166
0.000714567
0.000711861
0.000709038
0.000706095
0.000703023
0.00069982
0.000696475
0.000692986
0.00068934
0.000685535
0.000681558
0.000677406
0.000673065
0.000668531
0.00066379
0.000658837
0.000653656
0.000648243
0.000642581
0.000636664
0.000630473
0.000624004
0.000617237
0.000610164
0.000602766
0.000595034
0.000586949
0.0005785
0.000569666
0.000560439
0.000550793
0.00054072
0.000530195
0.000519209
0.000507734
0.000495763
0.000483267
0.000470237
0.000456646
0.000442484
0.000427723
0.000412354
0.00039635
0.000379701
0.000362382
0.000344384
0.000325683
0.000306272
0.000286129
0.000265252
0.000243619
0.000221234
0.000198081
0.00017417
0.000149492
0.000124067
9.78917e-05
7.09817e-05
4.32711e-05
1.45983e-05
0.000735229
0.000734084
0.000732892
0.000731655
0.000730368
0.000729031
0.000727639
0.000726193
0.000724686
0.000723119
0.000721487
0.000719788
0.000718016
0.000716172
0.000714248
0.000712243
0.000710151
0.00070797
0.000705693
0.000703318
0.000700837
0.000698248
0.000695543
0.000692719
0.000689767
0.000686684
0.00068346
0.000680092
0.000676568
0.000672887
0.000669034
0.000665008
0.000660794
0.000656388
0.000651776
0.000646954
0.000641907
0.000636628
0.000631102
0.000625323
0.000619273
0.000612947
0.000606324
0.000599399
0.00059215
0.000584572
0.000576642
0.000568351
0.000559679
0.000550616
0.000541138
0.000531236
0.000520886
0.000510077
0.000498785
0.000486998
0.000474692
0.000461855
0.000448461
0.0004345
0.000419944
0.000404784
0.000388994
0.000372562
0.000355466
0.000337695
0.000319226
0.000300052
0.000280153
0.000259524
0.000238148
0.000216028
0.000193152
0.00016953
0.000145162
0.000120074
9.42909e-05
6.78862e-05
4.09676e-05
1.37321e-05
)
;
boundaryField
{
inlet
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform 0;
}
wall
{
type freestreamPressure;
}
center
{
type symmetry;
}
plate
{
type zeroGradient;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //
|
|
0053f0a59fccc49f61238ae687dab545804488a0
|
e56cec9fe0e16436f2cdae4ab0b69080c488b368
|
/src/binaryTreeMaximumPathSum.cc
|
96fa08e90f73bfe33da90f230ba15962295ea1f9
|
[] |
no_license
|
sreenivaskodur/leetcode-solutions
|
34fb4ec55bfccf5eff1eab985d998e1638466a87
|
888a248ec397281198b3d427ed5f6c0ee7ccda11
|
refs/heads/master
| 2021-01-10T19:24:47.754433
| 2014-01-27T17:40:43
| 2014-01-27T17:40:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 988
|
cc
|
binaryTreeMaximumPathSum.cc
|
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
private:
int maxSum;
int maxPathSumHelper(TreeNode *root){
int l = (root->left == NULL) ? INT_MIN : maxPathSumHelper(root->left);
int r = (root->right == NULL) ? INT_MIN : maxPathSumHelper(root->right);
int result = root->val + ((l > r) ? l : r);
if(l < 0 and r < 0){
result = root->val;
}
maxSum = (maxSum > result) ? maxSum : result;
if(l > 0 and r > 0 and l + r + root->val > maxSum){
maxSum = l + r + root->val;
}
return result;
}
public:
int maxPathSum(TreeNode *root) {
if(root == NULL) return 0;
this->maxSum = INT_MIN;
maxPathSumHelper(root);
return maxSum;
}
};
|
b220eff61f007ca72436d7836fed45103494bc57
|
691abe5f62df930ae7420d00f48e5b2f7f57faed
|
/atcoder.jp/arc042/arc042_b/Main.cpp
|
361e8c986cdaff4a489f266bff5333c913d536ab
|
[] |
no_license
|
Volverman/procon-archive
|
2fa9d10d0a655590f2c6342c5e494deff5718c73
|
834adc4a70a275eb28cea6d724ee5cc5d926ffe7
|
refs/heads/master
| 2022-12-18T23:40:48.494023
| 2020-09-12T07:48:48
| 2020-09-12T07:48:48
| 294,258,109
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 819
|
cpp
|
Main.cpp
|
#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define MOD 1000000007
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
using P = pair<int,int>;
int main()
{
int x,y;
cin >> x >> y;
int N;
cin >> N;
vector<P> A(N);
REP(i,N) cin >> A[i].first >> A[i].second;
A.push_back(make_pair(A[0].first,A[0].second));
double MIN = INF;
REP(i,N){
int x1 = A[i].first;
int y1 = A[i].second;
int x2 = A[i+1].first;
int y2 = A[i+1].second;
int bunbo = abs((x1-x2)*y-(y1-y2)*x-x1*y2+x2*y1);
double bunsi = sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
MIN=min(MIN,bunbo/bunsi);
}
cout << fixed << setprecision(10) << MIN << endl;
}
|
44aed6fed1737efc75a7982621b30c2c71fca1a1
|
df0ea88f1b1dfb79f1aecff51d96d81702d2201f
|
/src/Ext/TechnoType/Body.cpp
|
8557942e0832624e4b1d0c96735d745aaf500734
|
[
"BSD-2-Clause"
] |
permissive
|
secsome/Antares
|
ea62178d0fca56156f8d8549382f1733dc380f68
|
412b5500bae41104c9da2bc4169cb06a784472b8
|
refs/heads/master
| 2023-06-08T01:02:22.743252
| 2021-06-27T12:48:09
| 2021-06-27T12:48:09
| 380,737,035
| 2
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 29,917
|
cpp
|
Body.cpp
|
#include "Body.h"
#include "../BuildingType/Body.h"
#include "../HouseType/Body.h"
#include "../Side/Body.h"
#include "../../Enum/Prerequisites.h"
#include "../../Misc/Debug.h"
#include "../../Utilities/TemplateDef.h"
#include <AbstractClass.h>
#include <HouseClass.h>
#include <PCX.h>
#include <Theater.h>
#include <VocClass.h>
#include <WarheadTypeClass.h>
template<> const DWORD Extension<TechnoTypeClass>::Canary = 0x44444444;
TechnoTypeExt::ExtContainer TechnoTypeExt::ExtMap;
// =============================
// member funcs
void TechnoTypeExt::ExtData::Initialize() {
auto pThis = this->OwnerObject();
this->PrerequisiteLists.resize(1);
this->Is_Deso = this->Is_Deso_Radiation = !strcmp(pThis->ID, "DESO");
this->Is_Cow = !strcmp(pThis->ID, "COW");
if(pThis->WhatAmI() == AircraftTypeClass::AbsID) {
this->CustomMissileTrailerAnim = AnimTypeClass::Find("V3TRAIL");
this->CustomMissileTakeoffAnim = AnimTypeClass::Find("V3TAKOFF");
this->SmokeAnim = AnimTypeClass::Find("SGRYSMK1");
}
this->EVA_UnitLost = VoxClass::FindIndex("EVA_UnitLost");
}
/*
EXT_LOAD(TechnoTypeClass)
{
if(CONTAINS(Ext_p, pThis))
{
Create(pThis);
ULONG out;
pStm->Read(&Ext_p[pThis], sizeof(ExtData), &out);
Ext_p[pThis]->Survivors_Pilots.Load(pStm);
Ext_p[pThis]->Weapons.Load(pStm);
Ext_p[pThis]->EliteWeapons.Load(pStm);
for ( int ii = 0; ii < Ext_p[pThis]->Weapons.get_Count(); ++ii )
SWIZZLE(Ext_p[pThis]->Weapons[ii].WeaponType);
for ( int ii = 0; ii < Ext_p[pThis]->EliteWeapons.get_Count(); ++ii )
SWIZZLE(Ext_p[pThis]->EliteWeapons[ii].WeaponType);
SWIZZLE(Ext_p[pThis]->Insignia_R);
SWIZZLE(Ext_p[pThis]->Insignia_V);
SWIZZLE(Ext_p[pThis]->Insignia_E);
}
}
EXT_SAVE(TechnoTypeClass)
{
if(CONTAINS(Ext_p, pThis))
{
ULONG out;
pStm->Write(&Ext_p[pThis], sizeof(ExtData), &out);
Ext_p[pThis]->Survivors_Pilots.Save(pStm);
Ext_p[pThis]->Weapons.Save(pStm);
Ext_p[pThis]->EliteWeapons.Save(pStm);
}
}
*/
void TechnoTypeExt::ExtData::LoadFromINIFile(CCINIClass* pINI)
{
auto pThis = this->OwnerObject();
const char * section = pThis->ID;
if(!pINI->GetSection(section)) {
return;
}
INI_EX exINI(pINI);
// survivors
this->Survivors_Pilots.Reserve(SideClass::Array->Count);
for(int i=this->Survivors_Pilots.Count; i<SideClass::Array->Count; ++i) {
this->Survivors_Pilots[i] = nullptr;
}
this->Survivors_Pilots.Count = SideClass::Array->Count;
this->Survivors_PilotCount = pINI->ReadInteger(section, "Survivor.Pilots", this->Survivors_PilotCount);
this->Survivors_PilotChance.Read(exINI, section, "Survivor.%sPilotChance");
this->Survivors_PassengerChance.Read(exINI, section, "Survivor.%sPassengerChance");
char flag[256];
for(int i = 0; i < SideClass::Array->Count; ++i) {
_snprintf_s(flag, 255, "Survivor.Side%d", i);
if(pINI->ReadString(section, flag, "", Ares::readBuffer)) {
if((this->Survivors_Pilots[i] = InfantryTypeClass::Find(Ares::readBuffer)) == nullptr) {
if(!INIClass::IsBlank(Ares::readBuffer)) {
Debug::INIParseFailed(section, flag, Ares::readBuffer);
}
}
}
}
// prereqs
// subtract the default list, get tag (not less than 0), add one back
auto const prerequisiteLists = static_cast<size_t>(
Math::max(pINI->ReadInteger(section, "Prerequisite.Lists",
static_cast<int>(this->PrerequisiteLists.size()) - 1), 0) + 1);
this->PrerequisiteLists.resize(prerequisiteLists);
Prereqs::Parse(pINI, section, "Prerequisite", this->PrerequisiteLists[0]);
Prereqs::Parse(pINI, section, "PrerequisiteOverride", pThis->PrerequisiteOverride);
for(auto i = 0u; i < this->PrerequisiteLists.size(); ++i) {
_snprintf_s(flag, 255, "Prerequisite.List%u", i);
Prereqs::Parse(pINI, section, flag, this->PrerequisiteLists[i]);
}
Prereqs::Parse(pINI, section, "Prerequisite.Negative", this->PrerequisiteNegatives);
if(pINI->ReadString(section, "Prerequisite.RequiredTheaters", "", Ares::readBuffer)) {
this->PrerequisiteTheaters = 0;
char* context = nullptr;
for(char *cur = strtok_s(Ares::readBuffer, ",", &context); cur; cur = strtok_s(nullptr, ",", &context)) {
signed int idx = Theater::FindIndex(cur);
if(idx != -1) {
this->PrerequisiteTheaters |= (1 << idx);
} else {
Debug::INIParseFailed(section, "Prerequisite.RequiredTheaters", cur);
}
}
}
// new secret lab
this->Secret_RequiredHouses
= pINI->ReadHouseTypesList(section, "SecretLab.RequiredHouses", this->Secret_RequiredHouses);
this->Secret_ForbiddenHouses
= pINI->ReadHouseTypesList(section, "SecretLab.ForbiddenHouses", this->Secret_ForbiddenHouses);
this->Is_Deso = pINI->ReadBool(section, "IsDesolator", this->Is_Deso);
this->Is_Deso_Radiation = pINI->ReadBool(section, "IsDesolator.RadDependant", this->Is_Deso_Radiation);
this->Is_Cow = pINI->ReadBool(section, "IsCow", this->Is_Cow);
this->Is_Spotlighted = pINI->ReadBool(section, "HasSpotlight", this->Is_Spotlighted);
this->Spot_Height = pINI->ReadInteger(section, "Spotlight.StartHeight", this->Spot_Height);
this->Spot_Distance = pINI->ReadInteger(section, "Spotlight.Distance", this->Spot_Distance);
if(pINI->ReadString(section, "Spotlight.AttachedTo", "", Ares::readBuffer)) {
if(!_strcmpi(Ares::readBuffer, "body")) {
this->Spot_AttachedTo = SpotlightAttachment::Body;
} else if(!_strcmpi(Ares::readBuffer, "turret")) {
this->Spot_AttachedTo = SpotlightAttachment::Turret;
} else if(!_strcmpi(Ares::readBuffer, "barrel")) {
this->Spot_AttachedTo = SpotlightAttachment::Barrel;
} else {
Debug::INIParseFailed(section, "Spotlight.AttachedTo", Ares::readBuffer);
}
}
this->Spot_DisableR = pINI->ReadBool(section, "Spotlight.DisableRed", this->Spot_DisableR);
this->Spot_DisableG = pINI->ReadBool(section, "Spotlight.DisableGreen", this->Spot_DisableG);
this->Spot_DisableB = pINI->ReadBool(section, "Spotlight.DisableBlue", this->Spot_DisableB);
this->Spot_Reverse = pINI->ReadBool(section, "Spotlight.IsInverted", this->Spot_Reverse);
this->Is_Bomb = pINI->ReadBool(section, "IsBomb", this->Is_Bomb);
/*
this is too late - Art files are loaded before this hook fires... brilliant
if(pINI->ReadString(section, "WaterVoxel", "", buffer, 256)) {
this->WaterAlt = 1;
}
*/
this->Insignia.Read(exINI, section, "Insignia.%s");
this->Parachute_Anim.Read(exINI, section, "Parachute.Anim");
// new on 08.11.09 for #342 (Operator=)
if(pINI->ReadString(section, "Operator", "", Ares::readBuffer)) { // try to read the flag
this->IsAPromiscuousWhoreAndLetsAnyoneRideIt = (strcmp(Ares::readBuffer, "_ANY_") == 0); // set whether this type accepts all operators
if(!this->IsAPromiscuousWhoreAndLetsAnyoneRideIt) { // if not, find the specific operator it allows
if(auto const pOperator = InfantryTypeClass::Find(Ares::readBuffer)) {
this->Operator = pOperator;
} else if(!INIClass::IsBlank(Ares::readBuffer)) {
Debug::INIParseFailed(section, "Operator", Ares::readBuffer);
}
}
}
this->InitialPayload_Types.Read(exINI, section, "InitialPayload.Types");
this->InitialPayload_Nums.Read(exINI, section, "InitialPayload.Nums");
this->CameoPal.LoadFromINI(&CCINIClass::INI_Art(), pThis->ImageFile, "CameoPalette");
if(pINI->ReadString(section, "Prerequisite.StolenTechs", "", Ares::readBuffer)) {
this->RequiredStolenTech.reset();
char* context = nullptr;
for(char *cur = strtok_s(Ares::readBuffer, ",", &context); cur; cur = strtok_s(nullptr, ",", &context)) {
signed int idx = atoi(cur);
if(idx > -1 && idx < 32) {
this->RequiredStolenTech.set(idx);
} else if(idx != -1) {
Debug::INIParseFailed(section, "Prerequisite.StolenTechs", cur, "Expected a number between 0 and 31 inclusive");
}
}
}
this->ImmuneToEMP.Read(exINI, section, "ImmuneToEMP");
this->EMP_Modifier.Read(exINI, section, "EMP.Modifier");
this->EMP_Sparkles.Read(exINI, section, "EMP.Sparkles");
if(pINI->ReadString(section, "EMP.Threshold", "inair", Ares::readBuffer)) {
if(_strcmpi(Ares::readBuffer, "inair") == 0) {
this->EMP_Threshold = -1;
} else if((_strcmpi(Ares::readBuffer, "yes") == 0) || (_strcmpi(Ares::readBuffer, "true") == 0)) {
this->EMP_Threshold = 1;
} else if((_strcmpi(Ares::readBuffer, "no") == 0) || (_strcmpi(Ares::readBuffer, "false") == 0)) {
this->EMP_Threshold = 0;
} else {
this->EMP_Threshold = pINI->ReadInteger(section, "EMP.Threshold", this->EMP_Threshold);
}
}
if(pINI->ReadString(section, "VeteranAbilities", "", Ares::readBuffer)) {
char* context = nullptr;
for(char *cur = strtok_s(Ares::readBuffer, ",", &context); cur; cur = strtok_s(nullptr, ",", &context)) {
if(!_strcmpi(cur, "empimmune")) {
this->VeteranAbilityEMPIMMUNE = true;
this->EliteAbilityEMPIMMUNE = true;
}
}
}
if(pINI->ReadString(section, "EliteAbilities", "", Ares::readBuffer)) {
char* context = nullptr;
for(char *cur = strtok_s(Ares::readBuffer, ",", &context); cur; cur = strtok_s(nullptr, ",", &context)) {
if(!_strcmpi(cur, "empimmune")) {
this->EliteAbilityEMPIMMUNE = true;
}
}
}
// #733
this->ProtectedDriver.Read(exINI, section, "ProtectedDriver");
this->ProtectedDriver_MinHealth.Read(exINI, section, "ProtectedDriver.MinHealth");
this->CanDrive.Read(exINI, section, "CanDrive");
// #346, #464, #970, #1014
this->PassengersGainExperience.Read(exINI, section, "Experience.PromotePassengers");
this->ExperienceFromPassengers.Read(exINI, section, "Experience.FromPassengers");
this->PassengerExperienceModifier.Read(exINI, section, "Experience.PassengerModifier");
this->MindControlExperienceSelfModifier.Read(exINI, section, "Experience.MindControlSelfModifier");
this->MindControlExperienceVictimModifier.Read(exINI, section, "Experience.MindControlVictimModifier");
this->SpawnExperienceOwnerModifier.Read(exINI, section, "Experience.SpawnOwnerModifier");
this->SpawnExperienceSpawnModifier.Read(exINI, section, "Experience.SpawnModifier");
this->ExperienceFromAirstrike.Read(exINI, section, "Experience.FromAirstrike");
this->AirstrikeExperienceModifier.Read(exINI, section, "Experience.AirstrikeModifier");
this->Insignia_ShowEnemy.Read(exINI, section, "Insignia.ShowEnemy");
this->VoiceRepair.Read(exINI, section, "VoiceIFVRepair");
this->VoiceAirstrikeAttack.Read(exINI, section, "VoiceAirstrikeAttack");
this->VoiceAirstrikeAbort.Read(exINI, section, "VoiceAirstrikeAbort");
this->HijackerEnterSound.Read(exINI, section, "VehicleThief.EnterSound");
this->HijackerLeaveSound.Read(exINI, section, "VehicleThief.LeaveSound");
this->HijackerKillPilots.Read(exINI, section, "VehicleThief.KillPilots");
this->HijackerBreakMindControl.Read(exINI, section, "VehicleThief.BreakMindControl");
this->HijackerAllowed.Read(exINI, section, "VehicleThief.Allowed");
this->HijackerOneTime.Read(exINI, section, "VehicleThief.OneTime");
this->IronCurtain_Modifier.Read(exINI, section, "IronCurtain.Modifier");
this->ForceShield_Modifier.Read(exINI, section, "ForceShield.Modifier");
this->Chronoshift_Allow.Read(exINI, section, "Chronoshift.Allow");
this->Chronoshift_IsVehicle.Read(exINI, section, "Chronoshift.IsVehicle");
this->CameoPCX.Read(&CCINIClass::INI_Art(), pThis->ImageFile, "CameoPCX");
this->AltCameoPCX.Read(&CCINIClass::INI_Art(), pThis->ImageFile, "AltCameoPCX");
this->CanBeReversed.Read(exINI, section, "CanBeReversed");
// #305
this->RadarJamRadius.Read(exINI, section, "RadarJamRadius");
// #1208
this->PassengerTurret.Read(exINI, section, "PassengerTurret");
// #617 powered units
this->PoweredBy.Read(exINI, section, "PoweredBy");
//#1623 - AttachEffect on unit-creation
this->AttachedTechnoEffect.Read(exINI);
this->BuiltAt.Read(exINI, section, "BuiltAt");
this->Cloneable.Read(exINI, section, "Cloneable");
this->ClonedAt.Read(exINI, section, "ClonedAt");
this->CarryallAllowed.Read(exINI, section, "Carryall.Allowed");
this->CarryallSizeLimit.Read(exINI, section, "Carryall.SizeLimit");
// #680, 1362
this->ImmuneToAbduction.Read(exINI, section, "ImmuneToAbduction");
this->FactoryOwners.Read(exINI, section, "FactoryOwners");
this->ForbiddenFactoryOwners.Read(exINI, section, "FactoryOwners.Forbidden");
this->FactoryOwners_HaveAllPlans.Read(exINI, section, "FactoryOwners.HaveAllPlans");
// issue #896235: cyclic gattling
this->GattlingCyclic.Read(exINI, section, "Gattling.Cycle");
// #245 custom missiles
if(auto pAircraftType = specific_cast<AircraftTypeClass*>(pThis)) {
this->IsCustomMissile.Read(exINI, section, "Missile.Custom");
this->CustomMissileData.Read(exINI, section, "Missile");
this->CustomMissileData.GetEx()->Type = pAircraftType;
this->CustomMissileWarhead.Read(exINI, section, "Missile.Warhead");
this->CustomMissileEliteWarhead.Read(exINI, section, "Missile.EliteWarhead");
this->CustomMissileTakeoffAnim.Read(exINI, section, "Missile.TakeOffAnim");
this->CustomMissileTrailerAnim.Read(exINI, section, "Missile.TrailerAnim");
this->CustomMissileTrailerSeparation.Read(exINI, section, "Missile.TrailerSeparation");
this->CustomMissileWeapon.Read(exINI, section, "Missile.Weapon");
this->CustomMissileEliteWeapon.Read(exINI, section, "Missile.EliteWeapon");
}
// non-crashable aircraft
this->Crashable.Read(exINI, section, "Crashable");
this->CrashSpin.Read(exINI, section, "CrashSpin");
this->AirRate.Read(exINI, section, "AirRate");
// tiberium
this->TiberiumProof.Read(exINI, section, "TiberiumProof");
this->TiberiumRemains.Read(exINI, section, "TiberiumRemains");
this->TiberiumSpill.Read(exINI, section, "TiberiumSpill");
this->TiberiumTransmogrify.Read(exINI, section, "TiberiumTransmogrify");
// refinery and storage
this->Refinery_UseStorage.Read(exINI, section, "Refinery.UseStorage");
// cloak
this->CloakSound.Read(exINI, section, "CloakSound");
this->DecloakSound.Read(exINI, section, "DecloakSound");
this->CloakPowered.Read(exINI, section, "Cloakable.Powered");
this->CloakDeployed.Read(exINI, section, "Cloakable.Deployed");
this->CloakAllowed.Read(exINI, section, "Cloakable.Allowed");
this->CloakStages.Read(exINI, section, "Cloakable.Stages");
// sensors
this->SensorArray_Warn.Read(exINI, section, "SensorArray.Warn");
this->EVA_UnitLost.Read(exINI, section, "EVA.Lost");
// linking units for type selection
this->GroupAs.Read(pINI, section, "GroupAs");
// crew settings
this->Crew_TechnicianChance.Read(exINI, section, "Crew.TechnicianChance");
this->Crew_EngineerChance.Read(exINI, section, "Crew.EngineerChance");
// drain settings
this->Drain_Local.Read(exINI, section, "Drain.Local");
this->Drain_Amount.Read(exINI, section, "Drain.Amount");
// smoke when damaged
this->SmokeAnim.Read(exINI, section, "Smoke.Anim");
this->SmokeChanceRed.Read(exINI, section, "Smoke.ChanceRed");
this->SmokeChanceDead.Read(exINI, section, "Smoke.ChanceDead");
// hunter seeker
this->HunterSeekerDetonateProximity.Read(exINI, section, "HunterSeeker.DetonateProximity");
this->HunterSeekerDescendProximity.Read(exINI, section, "HunterSeeker.DescendProximity");
this->HunterSeekerAscentSpeed.Read(exINI, section, "HunterSeeker.AscentSpeed");
this->HunterSeekerDescentSpeed.Read(exINI, section, "HunterSeeker.DescentSpeed");
this->HunterSeekerEmergeSpeed.Read(exINI, section, "HunterSeeker.EmergeSpeed");
this->HunterSeekerIgnore.Read(exINI, section, "HunterSeeker.Ignore");
this->CivilianEnemy.Read(exINI, section, "CivilianEnemy");
// particles
this->DamageSparks.Read(exINI, section, "DamageSparks");
this->ParticleSystems_DamageSmoke.Read(exINI, section, "DamageSmokeParticleSystems");
this->ParticleSystems_DamageSparks.Read(exINI, section, "DamageSparksParticleSystems");
// berserking options
this->BerserkROFMultiplier.Read(exINI, section, "Berserk.ROFMultiplier");
// super weapon
this->DesignatorRange.Read(exINI, section, "DesignatorRange");
this->InhibitorRange.Read(exINI, section, "InhibitorRange");
// assault options
this->AssaulterLevel.Read(exINI, section, "Assaulter.Level");
// crush
this->OmniCrusher_Aggressive.Read(exINI, section, "OmniCrusher.Aggressive");
this->CrushDamage.Read(exINI, section, "CrushDamage.%s");
this->CrushDamageWarhead.Read(exINI, section, "CrushDamage.Warhead");
//this->ReloadRate.Read(exINI, section, "ReloadRate");
//this->ReloadAmount.Read(exINI, section, "ReloadAmount");
//this->EmptyReloadAmount.Read(exINI, section, "EmptyReloadAmount");
this->Saboteur.Read(exINI, section, "Saboteur");
// note the wrong spelling of the tag for consistency
this->CanPassiveAcquire_Guard.Read(exINI, section, "CanPassiveAquire.Guard");
this->CanPassiveAcquire_Cloak.Read(exINI, section, "CanPassiveAquire.Cloak");
// self healing
//this->SelfHealing_Rate.Read(exINI, section, "SelfHealing.Rate");
//this->SelfHealing_Amount.Read(exINI, section, "SelfHealing.%sAmount");
//this->SelfHealing_Max.Read(exINI, section, "SelfHealing.%sMax");
this->PassengersWhitelist.Read(exINI, section, "Passengers.Allowed");
this->PassengersBlacklist.Read(exINI, section, "Passengers.Disallowed");
this->NoManualUnload.Read(exINI, section, "NoManualUnload");
this->NoManualFire.Read(exINI, section, "NoManualFire");
//this->NoManualEnter.Read(exINI, section, "NoManualEnter");
// quick fix - remove after the rest of weapon selector code is done
return;
}
/*
// weapons
int WeaponCount = pINI->ReadInteger(section, "WeaponCount", pData->Weapons.get_Count());
if(WeaponCount < 2)
{
WeaponCount = 2;
}
while(WeaponCount < pData->Weapons.get_Count())
{
pData->Weapons.RemoveItem(pData->Weapons.get_Count() - 1);
}
if(WeaponCount > pData->Weapons.get_Count())
{
pData->Weapons.SetCapacity(WeaponCount, nullptr);
pData->Weapons.set_Count(WeaponCount);
}
while(WeaponCount < pData->EliteWeapons.get_Count())
{
pData->EliteWeapons.RemoveItem(pData->EliteWeapons.get_Count() - 1);
}
if(WeaponCount > pData->EliteWeapons.get_Count())
{
pData->EliteWeapons.SetCapacity(WeaponCount, nullptr);
pData->EliteWeapons.set_Count(WeaponCount);
}
WeaponStruct *W = &pData->Weapons[0];
ReadWeapon(W, "Primary", section, pINI);
W = &pData->EliteWeapons[0];
ReadWeapon(W, "ElitePrimary", section, pINI);
W = &pData->Weapons[1];
ReadWeapon(W, "Secondary", section, pINI);
W = &pData->EliteWeapons[1];
ReadWeapon(W, "EliteSecondary", section, pINI);
for(int i = 0; i < WeaponCount; ++i)
{
W = &pData->Weapons[i];
_snprintf(flag, 256, "Weapon%d", i);
ReadWeapon(W, flag, section, pINI);
W = &pData->EliteWeapons[i];
_snprintf(flag, 256, "EliteWeapon%d", i);
ReadWeapon(W, flag, section, pINI);
}
void TechnoTypeClassExt::ReadWeapon(WeaponStruct *pWeapon, const char *prefix, const char *section, CCINIClass *pINI)
{
char buffer[256];
char flag[64];
pINI->ReadString(section, prefix, "", buffer);
if(strlen(buffer))
{
pWeapon->WeaponType = WeaponTypeClass::FindOrAllocate(buffer);
}
CCINIClass *pArtINI = CCINIClass::INI_Art;
CoordStruct FLH;
// (Elite?)(Primary|Secondary)FireFLH - FIRE suffix
// (Elite?)(Weapon%d)FLH - no suffix
if(prefix[0] == 'W' || prefix[5] == 'W') // W EliteW
{
_snprintf(flag, 64, "%sFLH", prefix);
}
else
{
_snprintf(flag, 64, "%sFireFLH", prefix);
}
pArtINI->Read3Integers((int *)&FLH, section, flag, (int *)&pWeapon->FLH);
pWeapon->FLH = FLH;
_snprintf(flag, 64, "%sBarrelLength", prefix);
pWeapon->BarrelLength = pArtINI->ReadInteger(section, flag, pWeapon->BarrelLength);
_snprintf(flag, 64, "%sBarrelThickness", prefix);
pWeapon->BarrelThickness = pArtINI->ReadInteger(section, flag, pWeapon->BarrelThickness);
_snprintf(flag, 64, "%sTurretLocked", prefix);
pWeapon->TurretLocked = pArtINI->ReadBool(section, flag, pWeapon->TurretLocked);
}
*/
const char* TechnoTypeExt::ExtData::GetSelectionGroupID() const
{
return this->GroupAs ? this->GroupAs : this->OwnerObject()->ID;
}
const char* TechnoTypeExt::GetSelectionGroupID(ObjectTypeClass* pType)
{
if(auto pExt = TechnoTypeExt::ExtMap.Find(static_cast<TechnoTypeClass*>(pType))) {
return pExt->GetSelectionGroupID();
}
return pType->ID;
}
bool TechnoTypeExt::HasSelectionGroupID(ObjectTypeClass* pType, const char* pID)
{
auto id = TechnoTypeExt::GetSelectionGroupID(pType);
return (_strcmpi(id, pID) == 0);
}
bool TechnoTypeExt::ExtData::CameoIsElite(HouseClass const* const pHouse) const
{
auto const pCountry = pHouse->Type;
auto const pType = this->OwnerObject();
auto const pExt = TechnoTypeExt::ExtMap.Find(pType);
if(!pType->AltCameo && !pExt->AltCameoPCX.Exists()) {
return false;
}
switch(pType->WhatAmI()) {
case AbstractType::InfantryType:
if(pHouse->BarracksInfiltrated && !pType->Naval && pType->Trainable) {
return true;
} else {
return pCountry->VeteranInfantry.FindItemIndex(static_cast<InfantryTypeClass*>(pType)) != -1;
}
case AbstractType::UnitType:
if(pHouse->WarFactoryInfiltrated && !pType->Naval && pType->Trainable) {
return true;
} else {
return pCountry->VeteranUnits.FindItemIndex(static_cast<UnitTypeClass*>(pType)) != -1;
}
case AbstractType::AircraftType:
return pCountry->VeteranAircraft.FindItemIndex(static_cast<AircraftTypeClass*>(pType)) != -1;
case AbstractType::BuildingType:
if(auto const pItem = pType->UndeploysInto) {
return pCountry->VeteranUnits.FindItemIndex(static_cast<UnitTypeClass*>(pItem)) != -1;
} else {
auto const pData = HouseTypeExt::ExtMap.Find(pCountry);
return pData->VeteranBuildings.Contains(static_cast<BuildingTypeClass*>(pType));
}
}
return false;
}
bool TechnoTypeExt::ExtData::CanBeBuiltAt(
BuildingTypeClass const* const pFactoryType) const
{
auto const pBExt = BuildingTypeExt::ExtMap.Find(pFactoryType);
return (this->BuiltAt.empty() && !pBExt->Factory_ExplicitOnly)
|| this->BuiltAt.Contains(pFactoryType);
}
bool TechnoTypeExt::ExtData::CarryallCanLift(UnitClass * Target) {
if(Target->ParasiteEatingMe) {
return false;
}
auto TargetData = TechnoTypeExt::ExtMap.Find(Target->Type);
UnitTypeClass *TargetType = Target->Type;
bool canCarry = !TargetType->Organic && !TargetType->NonVehicle;
if(TargetData->CarryallAllowed.isset()) {
canCarry = !!TargetData->CarryallAllowed;
}
if(!canCarry) {
return false;
}
if(this->CarryallSizeLimit.isset()) {
int maxSize = this->CarryallSizeLimit;
if(maxSize != -1) {
return maxSize >= static_cast<TechnoTypeClass *>(Target->Type)->Size;
}
}
return true;
}
bool TechnoTypeExt::ExtData::IsGenericPrerequisite() const
{
if(this->GenericPrerequisite.empty()) {
bool isGeneric = false;
for(auto const& Prereq : GenericPrerequisite::Array) {
if(Prereq->Alternates.FindItemIndex(this->OwnerObject()) != -1) {
isGeneric = true;
break;
}
}
this->GenericPrerequisite = isGeneric;
}
return this->GenericPrerequisite;
}
// =============================
// load / save
template <typename T>
void TechnoTypeExt::ExtData::Serialize(T& Stm) {
Stm
.Process(this->Survivors_Pilots)
.Process(this->Survivors_PilotChance)
.Process(this->Survivors_PassengerChance)
.Process(this->Survivors_PilotCount)
.Process(this->Crew_TechnicianChance)
.Process(this->Crew_EngineerChance)
.Process(this->PrerequisiteLists)
.Process(this->PrerequisiteNegatives)
.Process(this->PrerequisiteTheaters)
.Process(this->GenericPrerequisite)
.Process(this->Secret_RequiredHouses)
.Process(this->Secret_ForbiddenHouses)
.Process(this->Is_Deso)
.Process(this->Is_Deso_Radiation)
.Process(this->Is_Cow)
.Process(this->Is_Spotlighted)
.Process(this->Spot_Height)
.Process(this->Spot_Distance)
.Process(this->Spot_AttachedTo)
.Process(this->Spot_DisableR)
.Process(this->Spot_DisableG)
.Process(this->Spot_DisableB)
.Process(this->Spot_Reverse)
.Process(this->Is_Bomb)
//.Process(this->Weapons)
//.Process(this->EliteWeapons)
.Process(this->Insignia)
.Process(this->Insignia_ShowEnemy)
.Process(this->Parachute_Anim)
.Process(this->Operator)
.Process(this->IsAPromiscuousWhoreAndLetsAnyoneRideIt)
.Process(this->CameoPal)
.Process(this->InitialPayload_Types)
.Process(this->InitialPayload_Nums)
.Process(this->RequiredStolenTech)
.Process(this->ImmuneToEMP)
.Process(this->VeteranAbilityEMPIMMUNE)
.Process(this->EliteAbilityEMPIMMUNE)
.Process(this->EMP_Threshold)
.Process(this->EMP_Modifier)
.Process(this->EMP_Sparkles)
.Process(this->IronCurtain_Modifier)
.Process(this->ForceShield_Modifier)
.Process(this->Chronoshift_Allow)
.Process(this->Chronoshift_IsVehicle)
.Process(this->ProtectedDriver)
.Process(this->ProtectedDriver_MinHealth)
.Process(this->CanDrive)
.Process(this->AlternateTheaterArt)
.Process(this->PassengersGainExperience)
.Process(this->ExperienceFromPassengers)
.Process(this->PassengerExperienceModifier)
.Process(this->MindControlExperienceSelfModifier)
.Process(this->MindControlExperienceVictimModifier)
.Process(this->SpawnExperienceOwnerModifier)
.Process(this->SpawnExperienceSpawnModifier)
.Process(this->ExperienceFromAirstrike)
.Process(this->AirstrikeExperienceModifier)
.Process(this->VoiceRepair)
.Process(this->VoiceAirstrikeAttack)
.Process(this->VoiceAirstrikeAbort)
.Process(this->HijackerEnterSound)
.Process(this->HijackerLeaveSound)
.Process(this->HijackerKillPilots)
.Process(this->HijackerBreakMindControl)
.Process(this->HijackerAllowed)
.Process(this->HijackerOneTime)
.Process(this->WaterImage)
.Process(this->CloakSound)
.Process(this->DecloakSound)
.Process(this->CloakPowered)
.Process(this->CloakDeployed)
.Process(this->CloakAllowed)
.Process(this->CloakStages)
.Process(this->SensorArray_Warn)
.Process(this->CameoPCX)
.Process(this->AltCameoPCX)
.Process(this->GroupAs)
.Process(this->ReversedByHouses)
.Process(this->CanBeReversed)
.Process(this->RadarJamRadius)
.Process(this->PassengerTurret)
.Process(this->PoweredBy)
.Process(this->AttachedTechnoEffect)
.Process(this->BuiltAt)
.Process(this->Cloneable)
.Process(this->ClonedAt)
.Process(this->CarryallAllowed)
.Process(this->CarryallSizeLimit)
.Process(this->ImmuneToAbduction)
.Process(this->FactoryOwners)
.Process(this->ForbiddenFactoryOwners)
.Process(this->FactoryOwners_HaveAllPlans)
.Process(this->GattlingCyclic)
.Process(this->Crashable)
.Process(this->CrashSpin)
.Process(this->AirRate)
.Process(this->CivilianEnemy)
.Process(this->IsCustomMissile)
.Process(this->CustomMissileData)
.Process(this->CustomMissileWarhead)
.Process(this->CustomMissileEliteWarhead)
.Process(this->CustomMissileTakeoffAnim)
.Process(this->CustomMissileTrailerAnim)
.Process(this->CustomMissileTrailerSeparation)
.Process(this->CustomMissileWeapon)
.Process(this->CustomMissileEliteWeapon)
.Process(this->TiberiumProof)
.Process(this->TiberiumRemains)
.Process(this->TiberiumSpill)
.Process(this->TiberiumTransmogrify)
.Process(this->Refinery_UseStorage)
.Process(this->EVA_UnitLost)
.Process(this->Drain_Local)
.Process(this->Drain_Amount)
.Process(this->SmokeChanceRed)
.Process(this->SmokeChanceDead)
.Process(this->SmokeAnim)
.Process(this->HunterSeekerDetonateProximity)
.Process(this->HunterSeekerDescendProximity)
.Process(this->HunterSeekerAscentSpeed)
.Process(this->HunterSeekerDescentSpeed)
.Process(this->HunterSeekerEmergeSpeed)
.Process(this->HunterSeekerIgnore)
.Process(this->DesignatorRange)
.Process(this->InhibitorRange)
.Process(this->DamageSparks)
.Process(this->ParticleSystems_DamageSmoke)
.Process(this->ParticleSystems_DamageSparks)
.Process(this->BerserkROFMultiplier)
.Process(this->AssaulterLevel)
.Process(this->OmniCrusher_Aggressive)
.Process(this->CrushDamage)
.Process(this->CrushDamageWarhead)
.Process(this->ReloadRate)
.Process(this->ReloadAmount)
.Process(this->EmptyReloadAmount)
.Process(this->Saboteur)
.Process(this->CanPassiveAcquire_Guard)
.Process(this->CanPassiveAcquire_Cloak)
.Process(this->SelfHealing_Rate)
.Process(this->SelfHealing_Amount)
.Process(this->SelfHealing_Max)
.Process(this->PassengersWhitelist)
.Process(this->PassengersBlacklist)
.Process(this->NoManualUnload)
.Process(this->NoManualFire)
.Process(this->NoManualEnter);
}
void TechnoTypeExt::ExtData::LoadFromStream(AresStreamReader &Stm) {
Extension<TechnoTypeClass>::LoadFromStream(Stm);
this->Serialize(Stm);
}
void TechnoTypeExt::ExtData::SaveToStream(AresStreamWriter &Stm) {
Extension<TechnoTypeClass>::SaveToStream(Stm);
this->Serialize(Stm);
}
// =============================
// container
TechnoTypeExt::ExtContainer::ExtContainer() : Container("TechnoTypeClass") {
}
TechnoTypeExt::ExtContainer::~ExtContainer() = default;
// =============================
// container hooks
DEFINE_HOOK(711835, TechnoTypeClass_CTOR, 5)
{
GET(TechnoTypeClass*, pItem, ESI);
TechnoTypeExt::ExtMap.FindOrAllocate(pItem);
return 0;
}
DEFINE_HOOK(711AE0, TechnoTypeClass_DTOR, 5)
{
GET(TechnoTypeClass*, pItem, ECX);
TechnoTypeExt::ExtMap.Remove(pItem);
return 0;
}
DEFINE_HOOK_AGAIN(716DC0, TechnoTypeClass_SaveLoad_Prefix, 5)
DEFINE_HOOK(7162F0, TechnoTypeClass_SaveLoad_Prefix, 6)
{
GET_STACK(TechnoTypeClass*, pItem, 0x4);
GET_STACK(IStream*, pStm, 0x8);
TechnoTypeExt::ExtMap.PrepareStream(pItem, pStm);
return 0;
}
DEFINE_HOOK(716DAC, TechnoTypeClass_Load_Suffix, A)
{
TechnoTypeExt::ExtMap.LoadStatic();
return 0;
}
DEFINE_HOOK(717094, TechnoTypeClass_Save_Suffix, 5)
{
TechnoTypeExt::ExtMap.SaveStatic();
return 0;
}
DEFINE_HOOK_AGAIN(716132, TechnoTypeClass_LoadFromINI, 5)
DEFINE_HOOK(716123, TechnoTypeClass_LoadFromINI, 5)
{
GET(TechnoTypeClass*, pItem, EBP);
GET_STACK(CCINIClass*, pINI, 0x380);
TechnoTypeExt::ExtMap.LoadFromINI(pItem, pINI);
return 0;
}
DEFINE_HOOK(679CAF, RulesClass_LoadAfterTypeData_CompleteInitialization, 5) {
//GET(CCINIClass*, pINI, ESI);
for(auto const& pType : *BuildingTypeClass::Array) {
auto const pExt = BuildingTypeExt::ExtMap.Find(pType);
pExt->CompleteInitialization();
}
return 0;
}
|
36df9c2b22d717ea55ad675953c73b6e5f496d9d
|
915df68a021c45fabadfeb9533a719992f209eca
|
/gabarito_prova/questao_02.cpp
|
7b36dd97b25e6c9d195844717ca0db1c9b8495ad
|
[] |
no_license
|
senapk/ed_2018_1
|
a09e6a3da4b108feee385a6df2283263afd8dbb8
|
d06848deea86e1218dbe9942fdcc42201be6f7ec
|
refs/heads/master
| 2020-04-09T18:32:12.806810
| 2018-06-29T20:14:44
| 2018-06-29T20:14:44
| 124,239,446
| 1
| 4
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 999
|
cpp
|
questao_02.cpp
|
#include <iostream>
#define NL 5
#define NC 5
#define OPEN 0
#define TREE 1
#define BURN 2
bool queimar(int mat[NL][NC], int c, int l){
if((c < 0) || (c >= NC) || (l < 0) || (l >= NL))
return false;
if(mat[l][c] != TREE)
return false;
mat[l][c] = BURN;
if(c == NC - 1) //ultima coluna
return true;
bool result = queimar(mat, c - 1, l) || queimar(mat, c + 1, l) ||
queimar(mat, c, l - 1) || queimar(mat, c, l + 1);
if(result)
std::cout << "(l:" << l << ",c:" << c << ")";
return result;
}
int main(){
int mat[NL][NC] = { {0, 0, 1, 0, 1},
{0, 1, 0, 1, 1},
{1, 0, 1, 1, 0},
{0, 1, 1, 0, 0},
{1, 1, 0, 0, 0}};
//esse laco vai imprimir o caminho inverso até o comeco
//(l:1,c:3)(l:2,c:3)(l:2,c:2)(l:3,c:2)(l:3,c:1)(l:4,c:1)(l:4,c:0)
for(int l = 0; l < NL; l++)
queimar(mat, 0, l);
return 0;
}
|
b9b352aa190967d42e87b41c0789127fdf596440
|
68e09b438498177bc00f734ba043390a4baca4ee
|
/RubeusCore/Source/Architecture/game.cpp
|
65c66a0af70ec0c679f35be6d08e19d806d7b0aa
|
[
"MIT"
] |
permissive
|
sdslabs/Rubeus
|
75912743419c487a225593caf809faf0c1d89c18
|
03c39a1f1c0465ba16609f273e8a8bde85590ea3
|
refs/heads/v3
| 2021-06-12T04:40:10.397731
| 2021-03-22T23:00:44
| 2021-03-22T23:00:44
| 134,358,438
| 187
| 24
|
MIT
| 2023-07-22T14:09:24
| 2018-05-22T04:00:10
|
C++
|
UTF-8
|
C++
| false
| false
| 337
|
cpp
|
game.cpp
|
#include <game.h>
#include <engine.h>
namespace Rubeus
{
RGame * RGame::CurrentGame = NULL;
RLevel * RGame::CurrentLevel = NULL;
RGame::RGame()
: m_StartupLevel("")
{
Rubeus::UtilityComponents::RLogger::CreateLogFile();
m_Engine = new Rubeus::REngine();
CurrentGame = this;
}
RGame::~RGame()
{
delete m_Engine;
}
}
|
1317089901106bab82e0ba71ff706f3adc62d540
|
65433ee18c4d2f48099bc7b4d8b3ce7f859cb395
|
/Fundamentals/CustomArray/Source.cpp
|
47e4408e4eb4946fb031bab4fda6812c71bf57e8
|
[] |
no_license
|
dileepbalakrishnan/CPP
|
81cbd915d8cdeb7c61f56bedab330a26fcfbfdfa
|
bf21b734443c59e59571e9877b9d27a4076ea9ca
|
refs/heads/master
| 2020-06-03T15:10:13.426432
| 2019-06-25T17:16:05
| 2019-06-25T17:16:05
| 191,620,729
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,644
|
cpp
|
Source.cpp
|
#include<iostream>
class IndexOutOfBoundsException{};
class IntArray
{
private:
int* _ptr{ nullptr };
int _size{0};
public:
IntArray() = default;
explicit IntArray(int size)
{
if (size != 0)
{
_ptr = new int[size] {};
_size = size;
}
}
// Copy constructor to prevent shallow copying
/*IntArray(IntArray const& source)
{
if (source.Size() > 0)
{
_size = source.Size();
_ptr = new int[_size];
for (int i = 0; i < _size; i++)
{
_ptr[i] = source[i];
}
}
}*/
// Another way of copying objects aprat from copy constructors
// This is called copy-swap idiom
IntArray& operator=(IntArray source)
{
Swap(*this, source);
return *this;
}
friend void Swap(IntArray& a, IntArray& b)
{
std::swap(a._size, b._size);
std::swap(a._ptr, b._ptr);
}
~IntArray()
{
delete[] _ptr;
}
int Size() const
{
return _size;
}
bool IsEmpty()
{
return _size == 0;
}
int& operator[](int index)
{
if (!IsValidIndex(index))
{
throw IndexOutOfBoundsException();
}
return _ptr[index];
}
int operator[](int index) const
{
if (!IsValidIndex(index))
{
throw IndexOutOfBoundsException();
}
return _ptr[index];
}
bool IsValidIndex(int index) const
{
return _size >= 0 && index < _size;
}
// When overloading the << operator, the irst parameter is implicitly the calling object.
// So we should either overload it as friend function or as a free function.
// However, the canonical way is to overload it as free function.
// https://stackoverflow.com/questions/16291623/operator-overloading-c-too-many-parameters-for-operation
// https://stackoverflow.com/questions/4421706/what-are-the-basic-rules-and-idioms-for-operator-overloading
/*friend std::ostream& operator<<(std::ostream& os, const IntArray& arr)
{
os << "[";
for (int i = 0; i < arr.Size(); i++)
{
os << arr[i] << ' ';
}
os << "]";
return os;
}*/
};
std::ostream& operator<<(std::ostream& os, const IntArray& arr)
{
os << "[";
for (int i = 0; i < arr.Size(); i++)
{
os << arr[i] << ' ';
}
os << "]";
return os;
}
int main()
{
IntArray a{ 5 };
try
{
a[0] = 1;
a[5] = 10;
std::cout << a[0];
}
catch (const IndexOutOfBoundsException& ex)
{
std::cout << "Error : Index was out of range!" << std::endl;
}
for (int i = 0; i < a.Size(); i++)
{
a[i] = i;
}
std::cout << a;
IntArray b = a;
std::cout << std::endl << "Copied a to b" << std::endl;
for (int i = 0; i < b.Size(); i++)
{
b[i] *= 2;
}
std::cout << b;
return 0;
}
|
d5159c18bd03f1ae6cd7c789b9e0223a3cf7e4c2
|
0f3b6f1788df3feadd79df39e0bd930874572e01
|
/C++ Language/textstats.cpp
|
e3f189df9b172617cce8695e2396a337d1d91817
|
[] |
no_license
|
ROOOOO/Study
|
978c0c81cdc75573ac1480da2427bcf0e23e12ae
|
caf5636f8c12979ba6aa9941e6293f3ad8cfc3a7
|
refs/heads/master
| 2021-01-10T16:10:50.001231
| 2016-03-18T18:27:23
| 2016-03-18T18:27:23
| 54,218,816
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,068
|
cpp
|
textstats.cpp
|
#include "textstats.hpp"
#include <algorithm>
void get_tokens(const string &s, const unordered_set<char> &delimiters, vector<string> &tokens){
int i, pos=0, len = 0, l = (int)s.length();
for(i = 0; i<=l; i++, len++){
if(delimiters.find(s[i])!=delimiters.end() || s[i]=='\0'){
string s1 = s.substr(pos, len);
if(len!=0){
int l1 = (int)s1.length();
for(int j = 0; j<l1; j++){
s1[j] = tolower(s1[j]);
}
tokens.push_back(s1);
}
len = -1;
pos = i+1;
}
}
}
void get_type_freq(const vector<string> &tokens, map<string, int> &freqdi){
for(string s : tokens){
if(freqdi.find(s)!=freqdi.end()){
freqdi[s]++;
}
else{
freqdi.insert(pair<string, int>(s, 1));
}
}
}
void get_types(const vector<string> &tokens,vector<string> &wtypes){
for(string s : tokens){
bool push = true;
int l = (int)wtypes.size();
for(int i = 0; i<l; i++){
if(wtypes[i]==s){
push = false;
break;
}
}
if(push) wtypes.push_back(s);
}
sort(wtypes.begin(), wtypes.end());
}
void get_x_length_words(const vector<string> &wtypes, int x, vector<string> &words){
for(string s : wtypes){
if(s.length()>=x) words.push_back(s);
}
}
void get_x_freq_words( const map<string, int> &freqdi, int x, vector<string> &words){
for (auto it = freqdi.begin(); it != freqdi.end(); ++it){
if(it->second>=x) words.push_back(it->first);
}
}
void get_words_by_length_dict(const vector<string> &wtypes, map<int, vector<string> > &lengthdi){
for(string s :wtypes){
int l = (int)s.length();
if(lengthdi.find(l)==lengthdi.end()){
lengthdi.insert(pair<int, vector<string> >(l, vector<string>()));
for(string s1 : wtypes){
if(s1.length()==l) lengthdi[l].push_back(s1);
}
}
}
}
|
2562ea1bd5c1c588f355d96ca4a8942ab65d0d3f
|
90a3d0060d256592ccd1aded3d901b9cccb8ad04
|
/ircd/info.cc
|
7f75782fe245e67f62b0d6e1b51aa9294a3ae850
|
[
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
Evidlo/construct-1
|
f2e327463e9489256ec54ae0988544f3912d564c
|
6bd26ecbb3ed36653fdcb964b34ee24e86b17241
|
refs/heads/master
| 2020-05-18T04:00:58.847758
| 2019-04-25T10:16:24
| 2019-04-25T10:16:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 9,964
|
cc
|
info.cc
|
// Matrix Construct
//
// Copyright (C) Matrix Construct Developers, Authors & Contributors
// Copyright (C) 2016-2018 Jason Volk <jason@zemos.net>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
#include <RB_INC_SYS_RESOURCE_H
#include <RB_INC_UNISTD_H
#include <RB_INC_CPUID_H
decltype(ircd::info::credits)
ircd::info::credits
{
"Inspired by the original Internet Relay Chat daemon from Jarkko Oikarinen",
" ",
"This - is The Construct",
" ",
"Internet Relay Chat daemon: Matrix Construct",
" ",
"Copyright (C) 2016-2018 Matrix Construct Developers, Authors & Contributors",
"Permission to use, copy, modify, and/or distribute this software for any",
"purpose with or without fee is hereby granted, provided that the above",
"copyright notice and this permission notice is present in all copies.",
" ",
nullptr
};
void
ircd::info::dump()
{
// This message flashes information about IRCd itself for this execution.
log::info
{
"%s %ld %s. configured: %s; compiled: %s; executed: %s; %s",
BRANDING_VERSION,
__cplusplus,
__VERSION__,
configured,
compiled,
startup,
RB_DEBUG_LEVEL? "(DEBUG MODE)" : ""
};
// This message flashes information about our dependencies which are being
// assumed for this execution.
log::info
{
"%s. glibc %s. boost %s. RocksDB %s. SpiderMonkey %s. sodium %s. %s. libmagic %d.",
PACKAGE_STRING,
glibc_version_str,
boost_version_str,
db::version_str,
js::version(js::ver::IMPLEMENTATION),
nacl::version(),
openssl::version().second,
magic::version()
};
// This message flashes posix information about the system and platform IRCd
// is running on when ::uname() is available
#ifdef HAVE_SYS_UTSNAME_H
log::info
{
"%s %s %s %s %s",
utsname.sysname,
utsname.nodename,
utsname.release,
utsname.version,
utsname.machine
};
#endif
// This message flashes posix information about the resource limits
log::debug
{
"AS=%lu DATA=%lu RSS=%lu NOFILE=%lu; RTTIME=%lu"
" page_size=%zu iov_max=%zu aio_max=%zu aio_reqprio_max=%zu",
rlimit_as,
rlimit_data,
rlimit_rss,
rlimit_nofile,
rlimit_rttime,
page_size,
iov_max,
aio_max,
aio_reqprio_max,
};
// This message flashes standard information about the system and platform
// IRCd is compiled for and running on.
log::debug
{
"cpu[%s] max_align=%zu hw_conc=%zu d_inter=%zu c_inter=%zu",
cpuvendor,
max_align,
hardware_concurrency,
destructive_interference,
constructive_interference,
};
// This message flashes standard hardware feature information
#ifdef __x86_64__
log::debug
{
"0..01 [%08x|%08x|%08x|%08x] "
"0..07 [%08x|%08x|%08x|%08x]",
uint32_t(cpuid[1]),
uint32_t(cpuid[1] >> 32),
uint32_t(cpuid[1] >> 64),
uint32_t(cpuid[1] >> 96),
uint32_t(cpuid[3]),
uint32_t(cpuid[3] >> 32),
uint32_t(cpuid[3] >> 64),
uint32_t(cpuid[3] >> 96),
};
#endif
#ifdef __x86_64__
log::debug
{
"8..01 [%08x|%08x|%08x|%08x] "
"8..1c [%08x|%08x|%08x|%08x]",
uint32_t(cpuid[5]),
uint32_t(cpuid[5] >> 32),
uint32_t(cpuid[5] >> 64),
uint32_t(cpuid[5] >> 96),
uint32_t(cpuid[6]),
uint32_t(cpuid[6] >> 32),
uint32_t(cpuid[6] >> 64),
uint32_t(cpuid[6] >> 96),
};
#endif
}
//
// Primary information
//
decltype(ircd::info::server_agent)
ircd::info::server_agent
{
BRANDING_NAME " (IRCd " BRANDING_VERSION ")"
};
decltype(ircd::info::user_agent)
ircd::info::user_agent
{
BRANDING_NAME " (IRCd " BRANDING_VERSION ")"
};
decltype(ircd::info::version)
ircd::info::version
{
RB_VERSION
};
decltype(ircd::info::name)
ircd::info::name
{
PACKAGE_NAME
};
extern "C" const char *const
ircd_version
{
RB_VERSION
};
extern "C" const char *const
ircd_name
{
PACKAGE_NAME
};
//
// Third party dependency information
//
/// Provides tcmalloc version information if tcmalloc is linked in to IRCd.
struct ircd::info::tc_version
{
int major{0}, minor{0};
char patch[64] {0};
std::string version {"unavailable"};
}
const ircd::info::tc_version;
/*
const char* tc_version(int* major, int* minor, const char** patch);
ircd::tc_version::tc_version()
:version{::tc_version(&major, &minor, reinterpret_cast<const char **>(&patch))}
{}
*/
decltype(ircd::info::glibc_version)
ircd::info::glibc_version
{
__GNU_LIBRARY__,
__GLIBC__,
__GLIBC_MINOR__,
};
char ircd_info_glibc_version_str_buf[32];
decltype(ircd::info::glibc_version_str)
ircd::info::glibc_version_str
(
ircd_info_glibc_version_str_buf,
::snprintf(ircd_info_glibc_version_str_buf, sizeof(ircd_info_glibc_version_str_buf),
"%d.%d.%d",
glibc_version[0],
glibc_version[1],
glibc_version[2])
);
//
// Host information
//
#ifdef HAVE_SYS_UTSNAME_H
decltype(ircd::info::utsname)
ircd::info::utsname{[]
{
struct ::utsname utsname;
syscall(::uname, &utsname);
return utsname;
}()};
#endif
decltype(ircd::info::kname)
ircd::info::kname
{
#ifdef HAVE_SYS_UTSNAME_H
utsname.sysname
#endif
};
decltype(ircd::info::kversion_str)
ircd::info::kversion_str
{
#ifdef HAVE_SYS_UTSNAME_H
utsname.release
#endif
};
decltype(ircd::info::kversion)
ircd::info::kversion
{
[] // major
{
const auto str(split(kversion_str, '.').first);
return try_lex_cast<int>(str)?
lex_cast<int>(str):
0;
}(),
[] // minor
{
auto str(split(kversion_str, '.').second);
str = split(str, '.').first;
return try_lex_cast<int>(str)?
lex_cast<int>(str):
0;
}(),
// patch
0
};
//
// System information
//
#ifdef HAVE_SYS_RESOURCE_H
static uint64_t
_get_rlimit(const int &resource)
{
rlimit rlim;
ircd::syscall(getrlimit, resource, &rlim);
return rlim.rlim_cur;
}
#else
static uint64_t
_get_rlimit(const int &resource)
{
return 0;
}
#endif
decltype(ircd::info::rlimit_rttime)
ircd::info::rlimit_rttime
{
#ifdef RLIMIT_RTTIME
_get_rlimit(RLIMIT_RTTIME)
#endif
};
decltype(ircd::info::rlimit_nofile)
ircd::info::rlimit_nofile
{
#ifdef RLIMIT_NOFILE
_get_rlimit(RLIMIT_NOFILE)
#endif
};
decltype(ircd::info::rlimit_rss)
ircd::info::rlimit_rss
{
#ifdef RLIMIT_RSS
_get_rlimit(RLIMIT_RSS)
#endif
};
decltype(ircd::info::rlimit_data)
ircd::info::rlimit_data
{
#ifdef RLIMIT_DATA
_get_rlimit(RLIMIT_DATA)
#endif
};
decltype(ircd::info::rlimit_as)
ircd::info::rlimit_as
{
#ifdef RLIMIT_AS
_get_rlimit(RLIMIT_AS)
#endif
};
#ifdef _SC_CLK_TCK
decltype(ircd::info::clk_tck)
ircd::info::clk_tck
{
size_t(syscall(::sysconf, _SC_CLK_TCK))
};
#else
decltype(ircd::info::clk_tck)
ircd::info::clk_tck
{
1 // prevent #DE
};
#endif
decltype(ircd::info::aio_reqprio_max)
ircd::info::aio_reqprio_max
{
#ifdef _SC_AIO_PRIO_DELTA_MAX
size_t(syscall(::sysconf, _SC_AIO_PRIO_DELTA_MAX))
#endif
};
decltype(ircd::info::aio_max)
ircd::info::aio_max
{
#ifdef _SC_AIO_MAX
0 //size_t(syscall(::sysconf, _SC_AIO_MAX))
#endif
};
decltype(ircd::info::iov_max)
ircd::info::iov_max
{
#ifdef _SC_IOV_MAX
size_t(syscall(::sysconf, _SC_IOV_MAX))
#endif
};
decltype(ircd::info::page_size)
ircd::info::page_size
{
#ifdef _SC_PAGESIZE
size_t(syscall(::sysconf, _SC_PAGESIZE))
#endif
};
//
// Platform information
//
#ifdef __x86_64__
static ircd::uint128_t
get_cpuid(const uint &leaf,
const uint &subleaf)
{
using ircd::uint128_t;
uint32_t reg[4];
asm volatile
(
"cpuid" "\n\t"
: "=a" (reg[0]),
"=b" (reg[1]),
"=c" (reg[2]),
"=d" (reg[3])
: "0" (leaf),
"2" (subleaf)
);
return uint128_t
{
(uint128_t(reg[3]) << 96) | // edx
(uint128_t(reg[2]) << 64) | // ecx
(uint128_t(reg[1]) << 32) | // ebx
(uint128_t(reg[0]) << 0) // eax
};
}
#else
static ircd::uint128_t
get_cpuid(const uint &leaf,
const uint &subleaf)
{
return 0;
}
#endif
decltype(ircd::info::cpuid)
ircd::info::cpuid
{
get_cpuid(0x00000000U, 0),
get_cpuid(0x00000001U, 0),
0UL,
get_cpuid(0x00000007U, 0U),
get_cpuid(0x80000000U, 0),
get_cpuid(0x80000001U, 0),
get_cpuid(0x8000001CU, 0), //AMD Vol.2 13.4.3.3 (LWP)
0UL,
};
char
_cpuvendor_[12];
decltype(ircd::info::cpuvendor)
ircd::info::cpuvendor{[&]
{
const auto b
{
reinterpret_cast<const uint8_t *>(cpuid + 0)
};
_cpuvendor_[0] = b[4];
_cpuvendor_[1] = b[5];
_cpuvendor_[2] = b[6];
_cpuvendor_[3] = b[7];
_cpuvendor_[4] = b[12];
_cpuvendor_[5] = b[13];
_cpuvendor_[6] = b[14];
_cpuvendor_[7] = b[15];
_cpuvendor_[8] = b[8];
_cpuvendor_[9] = b[9];
_cpuvendor_[10] = b[10];
_cpuvendor_[11] = b[11];
return string_view
{
_cpuvendor_, sizeof(_cpuvendor_)
};
}()};
decltype(ircd::info::constructive_interference)
ircd::info::constructive_interference
{
#ifdef __cpp_lib_hardware_interference_size
std::hardware_constructive_interference_size
#else
0
#endif
};
decltype(ircd::info::destructive_interference)
ircd::info::destructive_interference
{
#ifdef __cpp_lib_hardware_interference_size
std::hardware_destructive_interference_size
#else
0
#endif
};
decltype(ircd::info::hardware_concurrency)
ircd::info::hardware_concurrency
{
std::thread::hardware_concurrency()
};
decltype(ircd::info::max_align)
ircd::info::max_align
{
alignof(std::max_align_t)
};
//
// Build information
//
decltype(ircd::info::startup)
ircd::info::startup
{
rstrip(ctime(&startup_time), '\n')
};
decltype(ircd::info::compiled)
ircd::info::compiled
{
__TIMESTAMP__
};
decltype(ircd::info::configured)
ircd::info::configured
{
rstrip(ctime(&configured_time), '\n')
};
decltype(ircd::info::startup_time)
ircd::info::startup_time
{
std::time(nullptr)
};
decltype(ircd::info::configured_time)
ircd::info::configured_time
{
RB_TIME_CONFIGURED
};
decltype(ircd::info::commit)
ircd::info::commit
{
RB_VERSION_COMMIT
};
decltype(ircd::info::branch)
ircd::info::branch
{
RB_VERSION_BRANCH
};
decltype(ircd::info::tag)
ircd::info::tag
{
RB_VERSION_TAG
};
|
5bee7b8bb2f71fabc683ef7da0b79aed0c2faacd
|
da7adaf6568083dddfe74684f0812a0942dff0c4
|
/src/compiler/libsherpa/utf8.cxx
|
0e27a70d681f79db322b59e7bfc95562c784dc85
|
[] |
no_license
|
LakatosI/bitc
|
ea29692b87c430018b9a68da642a77d9b3137bf6
|
e9f37d026ad2eeba221c73b2b6d7628c1b914205
|
refs/heads/master
| 2021-12-02T23:58:23.784850
| 2012-03-19T04:06:42
| 2012-03-19T04:06:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,839
|
cxx
|
utf8.cxx
|
/**************************************************************************
*
* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, The EROS
* Group, LLC.
* Copyright (C) 2004, 2005, 2006, Johns Hopkins University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* - Redistributions of source code must contain the above
* copyright notice, this list of conditions, and the following
* disclaimer.
*
* - 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.
*
* - Neither the names of the copyright holders nor the names of any
* of any 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
* OWNER 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.
*
**************************************************************************/
#include <stdint.h>
#include "utf8.hxx"
namespace sherpa {
// Decode a UTF-8 character, returning the start of next character via
// snext. Note that this decoder ignores the recent ISO-10646
// resolution, and works for private code points.
//
// Note that this assumes that the input character is canonically
// encoded (i.e. not encoded using perverse length), but does not
// check. The natural implementation of a lexer implementing ungetChar
// is to use utf8_encode on the character being returned to determine
// how far it should back up the input pointer, but if the character
// is perversely encoded this will not work. The fix is for the code
// below to range check the input and generate a ExBadValue exception,
// and then provide a raw_utf8_decode for people who need to fix
// content having bad encodings.
uint32_t
utf8_decode(const char *s, const char **snext)
{
uint32_t ucs4 = ~0u;
const uint8_t *sb = (uint8_t *)s;
if (*sb <= 127) {
ucs4 = *sb++;
}
else if (*sb <= 223) {
ucs4 = (*sb++ - 192)*64;
ucs4 += (*sb++ - 128);
}
else if (*sb <= 239) {
ucs4 = (*sb++ - 192)*4096;
ucs4 += (*sb++ - 128)*64;
ucs4 += (*sb++ - 128);
}
else if (*sb <= 247) {
ucs4 = (*sb++ - 192)*262144;
ucs4 += (*sb++ - 128)*4096;
ucs4 += (*sb++ - 128)*64;
ucs4 += (*sb++ - 128);
}
else if (*sb <= 251) {
ucs4 = (*sb++ - 192)*16777216;
ucs4 += (*sb++ - 128)*262144;
ucs4 += (*sb++ - 128)*4096;
ucs4 += (*sb++ - 128)*64;
ucs4 += (*sb++ - 128);
}
else if (*sb <= 253) {
ucs4 = (*sb++ - 192)*1073741824;
ucs4 += (*sb++ - 128)*16777216;
ucs4 += (*sb++ - 128)*262144;
ucs4 += (*sb++ - 128)*4096;
ucs4 += (*sb++ - 128)*64;
ucs4 += (*sb++ - 128);
}
if (snext) *snext = (char *)sb;
return ucs4;
}
unsigned
utf8_encode(uint32_t ucs4, char utf[7])
{
char *utf8 = utf;
if (ucs4 <= 0x7f) {
*utf8++ = ucs4;
}
else if (ucs4 <= 0x7ff) {
*utf8++ = 192u + (ucs4 / 64);
*utf8++ = 128u + (ucs4 % 64);
}
else if (ucs4 <= 0xffff) {
*utf8++ = 224u + (ucs4 / 4096);
*utf8++ = 128u + ((ucs4 / 64) % 64);
*utf8++ = 128u + (ucs4 % 64);
}
else if (ucs4 <= 0x1fffff) {
*utf8++ = 240 + (ucs4 / 262144);
*utf8++ = 128u + ((ucs4 / 4096) % 64);
*utf8++ = 128u + ((ucs4 / 64) % 64);
*utf8++ = 128u + (ucs4 % 64);
}
else if (ucs4 <= 0x3ffffff) {
*utf8++ = 248u + (ucs4 / 16777216);
*utf8++ = 128u + ((ucs4 / 262144) % 64);
*utf8++ = 128u + ((ucs4 / 4096) % 64);
*utf8++ = 128u + ((ucs4 / 64) % 64);
*utf8++ = 128u + (ucs4 % 64);
}
else if (ucs4 <= 0x7fffffff) {
*utf8++ = 252u + (ucs4 / 1073741824);
*utf8++ = 128u + ((ucs4 / 16777216) % 64);
*utf8++ = 128u + ((ucs4 / 262144) % 64);
*utf8++ = 128u + ((ucs4 / 4096) % 64);
*utf8++ = 128u + ((ucs4 / 64) % 64);
*utf8++ = 128u + (ucs4 % 64);
}
*utf8 = 0;
return utf8 - utf;
}
} /* namespace sherpa */
|
3489a2f6a551a776b5a59852ebbac7b2e408f8f1
|
bc6e1c20e2542169f92597a00bbb8f281d409512
|
/src/generator/digest.h
|
2c5c1dea14a97af59a74cbb3c8b560ab5dafeaaf
|
[] |
no_license
|
wiku30/Plagiarism_Detection
|
dbcc034351761e6a835cc8e9feafc2bcb80fc7a2
|
2efbe2124e5c15a2b227f53bf5086d93d3dee428
|
refs/heads/master
| 2022-02-19T16:19:25.074895
| 2019-09-16T22:45:04
| 2019-09-16T22:45:04
| 208,911,535
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 398
|
h
|
digest.h
|
#pragma once
#include "cmp_kr.h"
#include <vector>
class digest: public cmp_kr
{
private:
const static int hash_length;
const static int window_range;
std::vector<long long> window;
std::vector<long long> list;
int length() const{return -1;}
int head;
bool isvalid;
public:
digest();
void load(const source& input);
const std::vector<long long> & getlist() const;
int size() const;
};
|
8423ded6fa6fcf335bd5e0ac93dae862bb2e6ba3
|
8e524bdb31b913a26e10f0a2798240ebfbbe6dae
|
/xlserialport.h
|
173107298bfff36693a9777442086d00ef11ac21
|
[] |
no_license
|
xuleicode/xlSerialPort
|
6e11c939df8d0d91b70f8cf55d2dbefb221a2ca4
|
4c0c65391f06ea2faeb495161543b95e1d557c19
|
refs/heads/master
| 2021-09-06T01:20:51.692953
| 2018-02-01T06:40:36
| 2018-02-01T06:40:36
| 119,655,852
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,328
|
h
|
xlserialport.h
|
#ifndef XLSERIALPORT_H
#define XLSERIALPORT_H
#include <QtWidgets/QMainWindow>
#include "ui_xlserialport.h"
#include "qdrawwidget.h"
#include "qcomwidget.h"
class QAction;
class QToolBar;
class QPushButton;
class QLabel;
class QMenu;
class QSystemTrayIcon;
class QString;
class QTimer;
class QDockWidget;
class MainWindow;
class xlSerialPort : public QMainWindow
{
Q_OBJECT
public:
xlSerialPort(QWidget *parent = 0);
~xlSerialPort();
private:
Ui::xlSerialPortClass ui;
//Action
QAction *AcFileOpen;
QAction *AcFileSave;
QAction *AcAbout;
QAction *AcToolBar1;
QAction *AcComWid;
QAction *AcPlotWid;
QAction *AcScreenShot;
//toolbar
QToolBar *toolBar1;
//label
QLabel *statusMsg;
QLabel *labelTime;
QSystemTrayIcon *systemTray;
QTimer* m_pTimer;
MainWindow* m_centralWidget;
QDockWidget *dockGraph1;
QDrawWidget* m_drawWidget;
QDockWidget* dockCom;
QComWidget* m_comWidget;
ParseData* m_parseData;
private:
void setupUI();
void initUI();
void initThread();
void SetsystemTray();
private slots:
void timedisplay();
void ShowComWidget();
void ShowPlotWidget();
void ShowToolBar();
void About();
void setShowDockeGraph1PropertyCheck(bool);
void setShowDockeComPropertyCheck(bool);
public slots:
void showStatusMessage(QString);
signals:
void screenShot();
};
#endif // XLSERIALPORT_H
|
97f2e690e14b7a5a47cd8061ed198507de6a6e05
|
3f88611f912020102df75d168a178d1c31b1755d
|
/src/detailgraphicsitem.h
|
952c9b0cd903b921f915d8a69b13371a0344f3cd
|
[] |
no_license
|
polevov/Sirius
|
a5e42cf6b0a68b76306a26d2bc6d2af4d70d0b36
|
aeedae4af090b2f05b6620838ffea45e554cdb50
|
refs/heads/master
| 2021-05-08T17:47:10.393630
| 2018-05-30T03:43:27
| 2018-05-30T03:43:27
| 119,488,201
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 508
|
h
|
detailgraphicsitem.h
|
#ifndef DETAILGRAPHICSITEM_H
#define DETAILGRAPHICSITEM_H
#include <QGraphicsPathItem>
class DetailGraphicsItem : public QGraphicsPathItem
{
public:
explicit DetailGraphicsItem(QGraphicsItem *parent = Q_NULLPTR);
explicit DetailGraphicsItem(const QPainterPath &path, QGraphicsItem *parent = Q_NULLPTR);
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
signals:
public slots:
};
#endif // DETAILGRAPHICSITEM_H
|
e4688396ef4b585fdc197f42d17525819bf4a7ee
|
294c54b1112ca31b3e7452327c6f6276484918ca
|
/TheMole/Main.cpp
|
1f39348eb6412b9b7c505ed074b0793ae7218672
|
[] |
no_license
|
LamePancake/The-Mole
|
511ce0b7d40080a173eacbd3e19e6ebc637268aa
|
711afd008177d367cf3af003e64c4215c217f3db
|
refs/heads/master
| 2021-01-10T16:51:04.122879
| 2016-04-12T20:14:55
| 2016-04-12T20:14:55
| 53,621,029
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 12,101
|
cpp
|
Main.cpp
|
#include <iostream>
#include <unordered_map>
#include <string>
#include <SDL2pp\SDL2pp.hh>
#include <SDL2\SDL_main.h>
#include <memory>
#include "GameManager.h"
#include "GameScreen.h"
#include "MenuScreen.h"
#include "LevelSelectScreen.h"
#include "Input.h"
#include "CutsceneScreen.h"
#include "CreditsScreen.h"
#include "ControlsScreen.h"
#include "OptionsScreen.h"
#include "OpeningScreen.h"
#include "ClosingScreen.h"
using std::string;
using std::unordered_map;
using std::shared_ptr;
int main(int argc, char** argv) {
try {
std::string startScreen("opening");
using namespace SDL2pp;
uint32_t subsystems = SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER;
SDL sdl(subsystems);
SDLTTF sdl_ttf;
SDLImage image;
SDLMixer sdlMixer(MIX_INIT_OGG | MIX_INIT_MP3);
Mixer mixer(44100, MIX_DEFAULT_FORMAT, 2, 2048);
unordered_map<string, string> soundEffects;
soundEffects["dig"] = "./Assets/Audio/digging.ogg";
soundEffects["jump"] = "./Assets/Audio/jump_11.wav";
soundEffects["eat"] = "./Assets/Audio/yum.ogg";
soundEffects["dig_miss_side"] = "./Assets/Audio/swish-11.wav";
soundEffects["door_finish"] = "./Assets/Audio/door_finish.ogg";
soundEffects["door_progress"] = "./Assets/Audio/door_progress.ogg";
soundEffects["switch_on"] = "./Assets/Audio/switch_on.ogg";
soundEffects["select"] = "./Assets/Audio/menu_selection.ogg";
soundEffects["accept"] = "./Assets/Audio/menu_accept.ogg";
soundEffects["decline"] = "./Assets/Audio/menu_decline.ogg";
soundEffects["warning"] = "./Assets/Audio/menu_warning.ogg";
soundEffects["borin1"] = "./Assets/Audio/borin_voice1.ogg";
soundEffects["borin2"] = "./Assets/Audio/borin_voice2.ogg";
soundEffects["borin3"] = "./Assets/Audio/borin_voice3.ogg";
soundEffects["alien1"] = "./Assets/Audio/alien_voice1.ogg";
soundEffects["alien2"] = "./Assets/Audio/alien_voice2.ogg";
soundEffects["alien3"] = "./Assets/Audio/alien_voice3.ogg";
soundEffects["viking1"] = "./Assets/Audio/viking_voice1.ogg";
soundEffects["viking2"] = "./Assets/Audio/viking_voice2.ogg";
soundEffects["viking3"] = "./Assets/Audio/viking_voice3.ogg";
soundEffects["toad1"] = "./Assets/Audio/toad_voice1.ogg";
soundEffects["toad2"] = "./Assets/Audio/toad_voice2.ogg";
soundEffects["toad3"] = "./Assets/Audio/toad_voice3.ogg";
soundEffects["win"] = "./Assets/Audio/Jingle_Achievement_00.mp3";
soundEffects["lose"] = "./Assets/Audio/Jingle_Lose_00.mp3";
soundEffects["checkpoint"] = "./Assets/Audio/Pickup_03.wav";
soundEffects["explosion"] = "./Assets/Audio/Explosion.wav";
soundEffects["laser"] = "./Assets/Audio/laser.wav";
soundEffects["turret"] = "./Assets/Audio/turret.wav";
SoundEffectBank bank(soundEffects);
vector<string> borinVoices = { "borin1", "borin2", "borin3" };
vector<string> alienVoices = { "alien1", "alien2", "alien3" };
vector<string> vikingVoices = { "viking1", "viking2", "viking3" };
vector<string> toadVoices = { "toad1", "toad2", "toad3" };
SDL_DisplayMode mode;
SDL_GetCurrentDisplayMode(0, &mode);
// Straightforward wrappers around corresponding SDL2 objects
// These take full care of proper object destruction and error checking
Window window("The Mole", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, SDL_WINDOW_FULLSCREEN);
Renderer renderer(window, -1, SDL_RENDERER_ACCELERATED);
//renderer.SetLogicalSize(1280, 720);
unordered_map<string, shared_ptr<Screen>> screens;
shared_ptr<Screen> menu(new MenuScreen(bank));
shared_ptr<Screen> levelSelect(new LevelSelectScreen(bank));
shared_ptr<OpeningScreen> opening(new OpeningScreen(bank));
shared_ptr<ClosingScreen> closing(new ClosingScreen(bank));
shared_ptr<Screen> den(new GameScreen("./Assets/Levels/den_level.txt", "./Assets/Textures/den_bg.png", "./Assets/SavedData/den_score.txt", "viking", bank, ".\\Assets\\Audio\\Innovating PSG_Snabisch.mp3"));
shared_ptr<Screen> viking(new GameScreen("./Assets/Levels/viking_level.txt", "./Assets/Textures/viking_bg.png", "./Assets/SavedData/viking_score.txt", "grass", bank, ".\\Assets\\Audio\\All the same day NES_Snabisch.wav"));
shared_ptr<Screen> grass(new GameScreen("./Assets/Levels/grass_level.txt", "./Assets/Textures/grasslands_bg.png", "./Assets/SavedData/grasslands_score.txt", "starscape", bank, ".\\Assets\\Audio\\Merry dance PSG_Snabisch.mp3"));
shared_ptr<Screen> starscape(new GameScreen("./Assets/Levels/starscape_level.txt", "./Assets/Textures/starscape_bg.png", "./Assets/SavedData/starscape_score.txt", "boss", bank, ".\\Assets\\Audio\\For the silent night PSG_Snabisch.mp3"));
shared_ptr<Screen> boss(new GameScreen("./Assets/Levels/boss_level.txt", "./Assets/Textures/boss_bg.png", "./Assets/SavedData/boss_score.txt", "postfight", bank, ".\\Assets\\Audio\\BossMain.wav"));
shared_ptr<Screen> denIntro(new CutsceneScreen("./Assets/Textures/dialog_box.png", "./Assets/Textures/den_bg.png", "./Assets/Textures/Borin_den_dialog.png", 4, 0.8, "./Assets/Textures/Toad_dialog.png", 6, 0.50, bank, "denpost", "./Assets/Dialog/den_dialog.txt", "Borin", "Toad", borinVoices, toadVoices, ".\\Assets\\Audio\\Battle of the Champs.wav"));
shared_ptr<Screen> vikingIntro(new CutsceneScreen("./Assets/Textures/dialog_box.png", "./Assets/Textures/grasslands_bg.png", "./Assets/Textures/Borin_den_dialog.png", 4, 0.8, "./Assets/Textures/Adalbert_dialog.png", 4, 0.8, bank, "vikingpost", "./Assets/Dialog/viking_dialog.txt", "Borin", "Adalbert", borinVoices, vikingVoices, ".\\Assets\\Audio\\high tech lab.flac"));
shared_ptr<Screen> grassIntro(new CutsceneScreen("./Assets/Textures/dialog_box.png", "./Assets/Textures/viking_bg.png", "./Assets/Textures/Borin_dialog.png", 4, 0.8, "./Assets/Textures/Cornelius_dialog.png", 4, 0.8, bank, "grasspost", "./Assets/Dialog/grassland_dialog.txt", "Borin", "Cornelius", borinVoices, vikingVoices, ".\\Assets\\Audio\\Cheer up PSG 8-bit Loop_v2_Snabisch.mp3"));
shared_ptr<Screen> starscapeIntro(new CutsceneScreen("./Assets/Textures/dialog_box.png", "./Assets/Textures/starscape_bg.png", "./Assets/Textures/Borin_dialog.png", 4, 0.8, "./Assets/Textures/Adalbert_dialog.png", 4, 0.8, bank, "starscapepost", "./Assets/Dialog/starscape_dialog.txt", "Borin", "Adalbert", borinVoices, vikingVoices, ".\\Assets\\Audio\\high tech lab.flac"));
shared_ptr<Screen> bossIntro(new CutsceneScreen("./Assets/Textures/dialog_box.png", "./Assets/Textures/boss_bg.png", "./Assets/Textures/Borin_dialog.png", 4, 0.8, "./Assets/Textures/Watch_dialog.png", 4, 0.8, bank, "bosslevel", "./Assets/Dialog/final_battle_dialog.txt", "Borin", "The Underwatch", borinVoices, alienVoices, ".\\Assets\\Audio\\The Organ 2 NES_Snabisch.wav"));
// The Pre Dialog Intro screens
shared_ptr<Screen> denPreIntro(new GameScreen("./Assets/Levels/preden_level.txt", "./Assets/Textures/den_bg.png", "./Assets/SavedData/den_score.txt", "denintro", bank, ".\\Assets\\Audio\\Innovating PSG_Snabisch.mp3", true));
shared_ptr<Screen> vikingPreIntro(new GameScreen("./Assets/Levels/previking_level.txt", "./Assets/Textures/grasslands_bg.png", "./Assets/SavedData/viking_score.txt", "vikingintro", bank, ".\\Assets\\Audio\\All the same day NES_Snabisch.wav", true));
shared_ptr<Screen> grassPreIntro(new GameScreen("./Assets/Levels/pregrass_level.txt", "./Assets/Textures/viking_bg.png", "./Assets/SavedData/grasslands_score.txt", "grassintro", bank, ".\\Assets\\Audio\\Merry dance PSG_Snabisch.mp3", true));
shared_ptr<Screen> starscapePreIntro(new GameScreen("./Assets/Levels/prestarscape_level.txt", "./Assets/Textures/starscape_bg.png", "./Assets/SavedData/starscape_score.txt", "starscapeintro", bank, ".\\Assets\\Audio\\For the silent night PSG_Snabisch.mp3", true));
shared_ptr<Screen> bossPreIntro(new GameScreen("./Assets/Levels/preboss_level.txt", "./Assets/Textures/boss_bg.png", "./Assets/SavedData/boss_score.txt", "bossintro", bank, ".\\Assets\\Audio\\The Organ 2 NES_Snabisch.wav", true));
// The Post Dialog Intro screens
//
shared_ptr<Screen> denPostIntro(new GameScreen("./Assets/Levels/postden_level.txt", "./Assets/Textures/den_bg.png", "./Assets/SavedData/den_score.txt", "denlevel", bank, ".\\Assets\\Audio\\Innovating PSG_Snabisch.mp3", true));
shared_ptr<Screen> vikingPostIntro(new GameScreen("./Assets/Levels/postviking_level.txt", "./Assets/Textures/grasslands_bg.png", "./Assets/SavedData/viking_score.txt", "vikinglevel", bank, ".\\Assets\\Audio\\All the same day NES_Snabisch.wav", true));
shared_ptr<Screen> grassPostIntro(new GameScreen("./Assets/Levels/postgrass_level.txt", "./Assets/Textures/viking_bg.png", "./Assets/SavedData/grasslands_score.txt", "grasslevel", bank, ".\\Assets\\Audio\\Merry dance PSG_Snabisch.mp3", true));
shared_ptr<Screen> starscapePostIntro(new GameScreen("./Assets/Levels/poststarscape_level.txt", "./Assets/Textures/starscape_bg.png", "./Assets/SavedData/starscape_score.txt", "starscapelevel", bank, ".\\Assets\\Audio\\For the silent night PSG_Snabisch.mp3", true));
shared_ptr<Screen> bossPostIntro(new GameScreen("./Assets/Levels/postboss_level.txt", "./Assets/Textures/boss_bg.png", "./Assets/SavedData/boss_score.txt", "bosslevel", bank, ".\\Assets\\Audio\\The Organ 2 NES_Snabisch.wav", true));
// Post Boss Fight Screens
shared_ptr<Screen> postFight(new GameScreen("./Assets/Levels/postfight_level.txt", "./Assets/Textures/boss_bg.png", "./Assets/SavedData/boss_score.txt", "postfightintro", bank, ".\\Assets\\Audio\\high tech lab.flac", true));
shared_ptr<Screen> postFightIntro(new CutsceneScreen("./Assets/Textures/dialog_box.png", "./Assets/Textures/boss_bg.png", "./Assets/Textures/Borin_dialog.png", 4, 0.8, "./Assets/Textures/Adalbert_dialog.png", 4, 0.8, bank, "closing", "./Assets/Dialog/post_fight_dialog.txt", "Borin", "Adalbert", borinVoices, vikingVoices, ".\\Assets\\Audio\\high tech lab.flac"));
shared_ptr<Screen> credits(new CreditsScreen(bank));
shared_ptr<Screen> controls(new ControlsScreen(bank));
shared_ptr<Screen> options(new OptionsScreen(bank));
screens.insert({ "opening", opening });
screens.insert({ "menu", menu });
screens.insert({ "levelSelect", levelSelect });
screens.insert({ "credits", credits });
screens.insert({ "controls", controls });
screens.insert({ "options", options });
screens.insert({ "closing", closing });
screens.insert({ "denlevel", den });
screens.insert({ "vikinglevel", viking });
screens.insert({ "grasslevel", grass });
screens.insert({ "starscapelevel", starscape });
screens.insert({ "bosslevel", boss });
screens.insert({ "denintro", denIntro });
screens.insert({ "vikingintro", vikingIntro });
screens.insert({ "grassintro", grassIntro });
screens.insert({ "starscapeintro", starscapeIntro });
screens.insert({ "bossintro", bossIntro });
screens.insert({ "den", denPreIntro });
screens.insert({ "viking", vikingPreIntro });
screens.insert({ "grass", grassPreIntro });
screens.insert({ "starscape", starscapePreIntro });
screens.insert({ "boss", bossPreIntro });
screens.insert({ "denpost", denPostIntro });
screens.insert({ "vikingpost", vikingPostIntro });
screens.insert({ "grasspost", grassPostIntro });
screens.insert({ "starscapepost", starscapePostIntro });
screens.insert({ "bosspost", bossPostIntro });
screens.insert({ "postfight", postFight });
screens.insert({ "postfightintro", postFightIntro });
GameManager::_instance = new GameManager(std::move(sdl), std::move(image), std::move(mixer), std::move(sdl_ttf), std::move(window), std::move(renderer), screens);
bank.LoadSounds();
GameManager::_instance->Loop(startScreen);
}
catch (SDL2pp::Exception& e) {
// Exception stores SDL_GetError() result and name of function which failed
std::cerr << "Error in: " << e.GetSDLFunction() << std::endl;
std::cerr << " Reason: " << e.GetSDLError() << std::endl;
}
catch (std::exception& e) {
// This also works (e.g. "SDL_Init failed: No available video device")
std::cerr << e.what() << std::endl;
}
delete GameManager::_instance;
return 0;
}
|
220d17b875f49781e618802506e03998b694661e
|
2cbcfb9b9046ac131dc01a6fd048b6920d29cd42
|
/CPlusPlus/LeetCode/393. UTF-8 编码验证/main.cpp
|
6ca6f080db83ca5303f49061bbb11f2c6020e576
|
[] |
no_license
|
pulinghao/LeetCode_Python
|
6b530a0e491ea302b1160fa73582e838338da3d1
|
82ece6ed353235dcd36face80f5d87df12d56a2c
|
refs/heads/master
| 2022-08-12T21:19:43.510729
| 2022-08-08T03:04:52
| 2022-08-08T03:04:52
| 252,371,954
| 2
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,588
|
cpp
|
main.cpp
|
//
// main.cpp
// 393. UTF-8 编码验证
//
// Created by pulinghao on 2022/3/13.
//
#include <iostream>
#include "common.h"
class Solution {
public:
bool validUtf8(vector<int>& data) {
int i = 0;
bool res = true;
while (i < data.size()) {
int num = data[i];
if ((num >> 7) == 0) {
i++;
} else if ((num >> 5) == 0b110) {
i++;
if (i < data.size() && (data[i] >> 6) == 0b10) {
i++;
} else {
res = false;
break;
}
} else if ((num >> 4) == 0b1110) {
i += 2;
if (i < data.size() && (data[i] >> 6) == 0b10 && (data[i - 1] >> 6) == 0b10) {
i++;
} else {
res = false;
break;
}
} else if ((num >> 3) == 0b11110){
i += 3;
if (i < data.size() && (data[i] >> 6) == 0b10&& (data[i - 1] >> 6) == 0b10 && (data[i - 2] >> 6) == 0b10) {
i++;
} else {
res = false;
break;
}
} else {
res = false;
break;
}
}
return res;
}
};
int main(int argc, const char * argv[]) {
string data = "[240,162,138,147]";
vector<int> input = stringToIntegerVector(data);
// insert code here...
std::cout << Solution().validUtf8(input);
return 0;
}
|
884c21ff3fd5fa41db364db6fefa88e23dc1a4b0
|
bdc0b8809d52933c10f8eb77442bd0b4453f28f9
|
/install/test_msgs/include/test_msgs/msg/nested.hpp
|
e23c9346901541f169c369f4a6042f5ae442391b
|
[] |
no_license
|
ClaytonCalabrese/BuiltRos2Eloquent
|
967f688bbca746097016dbd34563716bd98379e3
|
76bca564bfd73ef73485e5c7c48274889032e408
|
refs/heads/master
| 2021-03-27T22:42:12.976367
| 2020-03-17T14:24:07
| 2020-03-17T14:24:07
| 247,810,969
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 315
|
hpp
|
nested.hpp
|
// generated from rosidl_generator_cpp/resource/idl.hpp.em
// generated code does not contain a copyright notice
#ifndef TEST_MSGS__MSG__NESTED_HPP_
#define TEST_MSGS__MSG__NESTED_HPP_
#include "test_msgs/msg/nested__struct.hpp"
#include "test_msgs/msg/nested__traits.hpp"
#endif // TEST_MSGS__MSG__NESTED_HPP_
|
df11e98058fdc79569fdef4f3e147d01493c6bb7
|
81e9adcb28394b5e19c1dbf561bd5b5bd6ec993f
|
/Leetcode/Design/155_Min_Stack.cpp
|
ea6ccf2d400acd6d3b94f8a1ddfceb4d930f50c2
|
[] |
no_license
|
poweihuang17/practice_leetcode_and_interview
|
eeb8d0091b56a5cc4ea566f1395dee1cfe021604
|
59c17c221ddc6e2a4dc95cf11fda34574611c832
|
refs/heads/master
| 2021-05-03T05:52:49.369265
| 2018-05-10T02:10:31
| 2018-05-10T02:10:31
| 120,585,290
| 5
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 957
|
cpp
|
155_Min_Stack.cpp
|
#include <utility>
#include <stack>
#include <algorithm>
#include <climits>
using namespace std;
class MinStack {
public:
/** initialize your data structure here. */
MinStack() {
}
void push(int x) {
if(s.size())
s.push(make_pair(x,min(x, this->getMin())));
else
s.push(make_pair(x,x));
}
void pop() {
s.pop();
}
int top() {
return s.top().first;
}
int getMin() {
return s.top().second;
}
private:
//Save current value and current min value.
stack < pair<int,int> > s;
};
int main()
{
MinStack m;
m.push(-2);
m.push(0);
m.push(-3);
m.getMin();
m.pop();
m.top();
m.getMin();
}
/**
* Your MinStack object will be instantiated and called as such:
* MinStack obj = new MinStack();
* obj.push(x);
* obj.pop();
* int param_3 = obj.top();
* int param_4 = obj.getMin();
*/
|
346d4dfa9498c39b9b3c52559d6a7e1a10a3a06c
|
b30ff12e385530d8d5a555a2df28ed414b6195f3
|
/src/threadprivate.h
|
17de9e2c1ca59c9820b7e9917f48dc73625621b4
|
[] |
no_license
|
AIXHB/tjvm
|
ad5c0080e6454f65744e0882c8f250cdb1ff6d03
|
d76c814d35ec9e5ad49942981d63fd0684db7499
|
refs/heads/master
| 2021-01-22T00:29:12.993102
| 2017-07-22T11:51:21
| 2017-07-22T11:51:21
| 102,189,780
| 0
| 0
| null | 2017-09-02T10:42:39
| 2017-09-02T10:42:39
| null |
UTF-8
|
C++
| false
| false
| 811
|
h
|
threadprivate.h
|
#ifndef _THREADPRIVATE_H_
#define _THREADPRIVATE_H_
#include <boost/smart_ptr.hpp>
#include "def.h"
#include "stackframe.h"
#include "frame.h"
using namespace boost;
class ThreadPrivate;
class StackFrame;
class Frame;
typedef shared_ptr<Frame> FramePtr;
typedef shared_ptr<StackFrame> StackFramePtr;
typedef shared_ptr<ThreadPrivate> ThreadPrivatePtr;
class ThreadPrivate
{
private:
j_int pc;
StackFramePtr stack;
ThreadPrivate();
public:
void setPC(j_int pc){
this->pc = pc;
}
j_int getPC(){
return this->pc;
}
void setStack(StackFramePtr stack){
this->stack = stack;
}
StackFramePtr getStack(){
return this->stack;
}
void pushFrame(FramePtr frame);
FramePtr popFrame();
FramePtr currentFrame();
static ThreadPrivatePtr build();
};
#endif
|
b01f7bb692a8a31b5c390176d82d00f3159f449c
|
072e33158adce4d5f3344bf51832ae16de06e848
|
/Titan Quest/Titan Quest/IMovable.h
|
8be7eb83549e38e8019761150701dceb3cf9e38d
|
[] |
no_license
|
Rauf145/Titan-Quest
|
20a74c0143cb05e83bd7c7a8b44a3e88621ae4c8
|
bbea8babd2e86dbf1bc127a868137c0cbfb02482
|
refs/heads/master
| 2021-08-08T16:29:14.830678
| 2017-11-10T18:09:47
| 2017-11-10T18:09:47
| 108,013,970
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 154
|
h
|
IMovable.h
|
#pragma once
#include "Enums.h"
class IMovable
{
Direction direction;
public:
virtual void move(Direction dir) = 0;
//IMovable();
//~IMovable();
};
|
c53b9e57993b78c1fdf837b5ad381330cdf23c88
|
bb277a8fad2b58001fd7d3464ae3015c6ebcaeb9
|
/include/microgin/Context.hpp
|
eaac797c8b98805ab6198c002a1d728d4c965642
|
[] |
no_license
|
linjunjj/microgin
|
46473acd2a5065fdf28b6a0459338aa21df7e93f
|
3b7ab9e4d11da885ed7453ba524ed3a5af38912c
|
refs/heads/master
| 2022-04-24T05:50:46.039426
| 2020-04-26T13:54:18
| 2020-04-26T13:54:18
| 251,304,026
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,830
|
hpp
|
Context.hpp
|
//
// Created by 林俊 on 2020/3/30.
//
#ifndef MICROGIN_CONTEXT_HPP
#define MICROGIN_CONTEXT_HPP
#include <memory>
#include <boost/beast/core.hpp>
#include <boost/beast/http.hpp>
#include <boost/beast/http/message.hpp>
#include <boost/beast/http/dynamic_body.hpp>
#include "microgin/Dict.hpp"
#include "Types.hpp"
#include <boost/beast/core.hpp>
namespace microgin {
template <class Stream>
struct send_lambda {
Stream &stream_;
bool &close_;
boost::system::error_code &ec_;
explicit
send_lambda(
Stream &stream,
bool &close,
boost::system::error_code &ec): stream_(stream), close_(close),ec_(ec){
}
template <bool isRequest, class Body, class Fields> void
operator()(boost::beast::http::message<isRequest, Body, Fields> &&msg) const {
close_ = msg.need_eof();
boost::beast::http::serializer<isRequest, Body, Fields> sr{msg};
boost::beast::http::write(stream_,sr,ec_);
}
};
class Context {
public:
typedef std::shared_ptr<Context> sptr;
static sptr make(boost::asio::ip::tcp::socket &socket, bool &close, boost::system::error_code &ec);
virtual void ParseGetParam() = 0;
virtual Dict<std::string, std::string> &GetParams() = 0;
virtual void ShouldBindJSON(json &j) = 0;
virtual void JSON(int status, const json &json) = 0;
virtual void File(const std::string &filename) = 0;
friend class RequestHandler;
private:
virtual void set_parameter(boost::string_view param) = 0;
virtual void set_target(boost::string_view target) = 0;
virtual void set_version(unsigned int version) = 0;
virtual void set_keep_alive(bool keep_alive) = 0;
virtual void set_body(boost::string_view body) = 0;
};
}
#endif
|
7426a155bf4d1a0c07bceb95bc91d53432b0207f
|
16954e0be4e1a21cd672bccc68a3ad65b613af76
|
/1.7.cpp
|
43011a8a2b6caac45d6135001ced6d01cd4f2b16
|
[] |
no_license
|
ryandev421/cracking-the-coding-interview-5th
|
8b30cd139a3e837059acca44009483f995f0ef7d
|
5c94e85e651da0db2002df385310c8fb9f035b7a
|
refs/heads/master
| 2021-10-24T04:44:59.908778
| 2019-03-22T00:44:08
| 2019-03-22T00:44:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,335
|
cpp
|
1.7.cpp
|
#include <iostream>
#include <string>
#include <vector>
using namespace std;
string compressString(string str);
string shortenWithSameAlpha(char alpha, int duplicated_cnt);
void make_zeros(vector<vector<int> > &matrix)
{
if (matrix.size() == 0) {
return ;
}
vector<bool> rows (matrix.size(), false);
vector<bool> columns (matrix[0].size(), false);
for (int i = 0; i < matrix.size(); i++) {
for (int j = 0; j < matrix[i].size(); j++) {
if (matrix[i][j] == 0) {
rows[i] = true;
columns[j] = true;
}
}
}
for (int i = 0; i < matrix.size(); i++) {
for (int j = 0; j < matrix[i].size(); j++) {
if (rows[i] || columns[j]) {
matrix[i][j] = 0;
}
}
}
}
int main()
{
vector<vector<int> > matrix;
for (int i = 0; i < 5; i++) {
vector<int> row;
for(int j = 0; j < 8; j++) {
if ((i*8+j)%14 ==0){
row.push_back(0);
} else {
row.push_back(i*8+j);
}
}
matrix.push_back(row);
}
make_zeros(matrix);
for (int i = 0; i < 5; i++) {
for(int j = 0;j < 8; j++) {
cout << matrix[i][j] << " ";
}
cout << endl;
}
return 0;
}
|
b772d0e4b9bef5a6ca0f14568738d175391a7e8b
|
c93341f1ef69942cceb3ce6b4c0e88815a2f07a1
|
/ec_conb.cpp
|
b4a9c5d030222454125d3d6cac1cdb4967e53faa
|
[] |
no_license
|
lashavih/Spoj-Solutions
|
00217ec3d001f41cfb8c75e7bbc88ce7cefa8cfc
|
a24bdc43a71d1d902269a92c81b8b834fa9d94a5
|
refs/heads/master
| 2020-04-12T05:37:52.769790
| 2016-12-15T06:44:59
| 2016-12-15T06:44:59
| 59,835,505
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 521
|
cpp
|
ec_conb.cpp
|
#include<bits/stdc++.h>
#define ll long long int
#define mp make_pair
#define pb push_back
#define si(x) scanf("%d",&x)
#define pi(x) printf("%d\n",x)
#define s(x) scanf("%lld",&x)
#define p(x) printf("%lld\n",x)
using namespace std;
int main(){
int n,i,j;
si(n);
int a[n];
for(i=0;i<n;i++){
si(a[i]);
}
for(i=0;i<n;i++){
if(a[i]%2==0){
int temp=0;int x=a[i];
while (x!=0){
temp=temp<<1;
temp=temp+(x&1);
x=x>>1;
}
a[i]=temp;
}
}
for(i=0;i<n;i++){
pi(a[i]);
}
return 0;
}
|
3cb3e2b5c4a0db6f4b263cf1d1207fe84a21aa05
|
785df77400157c058a934069298568e47950e40b
|
/include/HydStatic_StEqQ.hxx
|
b3c521c7287b9674c5dfb20cbd8cd4c8f0727b6a
|
[] |
no_license
|
amir5200fx/Tonb
|
cb108de09bf59c5c7e139435e0be008a888d99d5
|
ed679923dc4b2e69b12ffe621fc5a6c8e3652465
|
refs/heads/master
| 2023-08-31T08:59:00.366903
| 2023-08-31T07:42:24
| 2023-08-31T07:42:24
| 230,028,961
| 9
| 3
| null | 2023-07-20T16:53:31
| 2019-12-25T02:29:32
|
C++
|
UTF-8
|
C++
| false
| false
| 634
|
hxx
|
HydStatic_StEqQ.hxx
|
#pragma once
#ifndef _HydStatic_StEqQ_Header
#define _HydStatic_StEqQ_Header
#include <HydStatic_EqQ.hxx>
namespace tnbLib
{
class HydStatic_StEqQ
: public HydStatic_EqQ
{
/*Private Data*/
public:
static TnbHydStatic_EXPORT const HydStatic_EqQ null;
HydStatic_StEqQ()
{}
HydStatic_StEqQ
(
const Standard_Real theHeel,
const Standard_Real theArm,
const Standard_Real theParam0,
const Standard_Real theParam1
)
: HydStatic_EqQ(theHeel, theArm, theParam0, theParam1)
{}
Standard_Boolean IsStable() const override
{
return Standard_True;
}
};
}
#endif // !_HydStatic_StEqQ_Header
|
73d4ebfdbf8ccb939c50ab6f241320475ceb0836
|
28f18e6b5ec90ecbe68272ef1572f29c3e9b0a53
|
/include/boost/geometry/strategies/geographic/buffer_join_miter.hpp
|
b479f5fb5741f8ae245fc6ed613e9546355e659f
|
[
"BSL-1.0"
] |
permissive
|
boostorg/geometry
|
24efac7a54252b7ac25cd2e9154e9228e53b40b7
|
3755fab69f91a5e466404f17f635308314301303
|
refs/heads/develop
| 2023-08-19T01:14:39.091451
| 2023-07-28T09:14:33
| 2023-07-28T09:14:33
| 7,590,021
| 400
| 239
|
BSL-1.0
| 2023-09-14T17:20:26
| 2013-01-13T15:59:29
|
C++
|
UTF-8
|
C++
| false
| false
| 4,308
|
hpp
|
buffer_join_miter.hpp
|
// Boost.Geometry
// Copyright (c) 2022 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_GEOMETRY_STRATEGIES_GEOGRAPHIC_BUFFER_JOIN_MITER_HPP
#define BOOST_GEOMETRY_STRATEGIES_GEOGRAPHIC_BUFFER_JOIN_MITER_HPP
#include <boost/range/value_type.hpp>
#include <boost/geometry/core/radian_access.hpp>
#include <boost/geometry/srs/spheroid.hpp>
#include <boost/geometry/strategies/buffer.hpp>
#include <boost/geometry/strategies/geographic/buffer_helper.hpp>
#include <boost/geometry/strategies/geographic/parameters.hpp>
#include <boost/geometry/util/math.hpp>
#include <boost/geometry/util/select_calculation_type.hpp>
namespace boost { namespace geometry
{
namespace strategy { namespace buffer
{
template
<
typename FormulaPolicy = strategy::andoyer,
typename Spheroid = srs::spheroid<double>,
typename CalculationType = void
>
class geographic_join_miter
{
public :
//! \brief Constructs the strategy with a spheroid
//! \param spheroid The spheroid to be used
//! \param miter_limit The miter limit, to avoid excessively long miters around sharp corners
explicit inline geographic_join_miter(Spheroid const& spheroid,
double miter_limit = 5.0)
: m_spheroid(spheroid)
, m_miter_limit(valid_limit(miter_limit))
{}
//! \brief Constructs the strategy
//! \param miter_limit The miter limit, to avoid excessively long miters around sharp corners
explicit inline geographic_join_miter(double miter_limit = 5.0)
: m_miter_limit(valid_limit(miter_limit))
{}
#ifndef DOXYGEN_SHOULD_SKIP_THIS
//! Fills output_range with a sharp shape around a vertex
template <typename Point, typename DistanceType, typename RangeOut>
inline bool apply(Point const& , Point const& vertex,
Point const& perp1, Point const& perp2,
DistanceType const& buffer_distance,
RangeOut& range_out) const
{
using calc_t = typename select_calculation_type
<
Point,
typename boost::range_value<RangeOut>::type,
CalculationType
>::type;
using helper = geographic_buffer_helper<FormulaPolicy, calc_t>;
calc_t const lon_rad = get_as_radian<0>(vertex);
calc_t const lat_rad = get_as_radian<1>(vertex);
calc_t first_azimuth;
calc_t angle_diff;
if (! helper::calculate_angles(lon_rad, lat_rad, perp1, perp2, m_spheroid,
angle_diff, first_azimuth))
{
return false;
}
calc_t const half = 0.5;
calc_t const half_angle_diff = half * angle_diff;
calc_t const azi = math::wrap_azimuth_in_radian(first_azimuth + half_angle_diff);
calc_t const cos_angle = std::cos(half_angle_diff);
if (cos_angle == 0)
{
// It is opposite, perp1==perp2, do not generate a miter cap
return false;
}
// If it is sharp (angle close to 0), the distance will become too high and will be capped.
calc_t const max_distance = m_miter_limit * geometry::math::abs(buffer_distance);
calc_t const distance = (std::min)(max_distance, buffer_distance / cos_angle);
range_out.push_back(perp1);
helper::append_point(lon_rad, lat_rad, distance, azi, m_spheroid, range_out);
range_out.push_back(perp2);
return true;
}
template <typename NumericType>
inline NumericType max_distance(NumericType const& distance) const
{
return distance * m_miter_limit;
}
#endif // DOXYGEN_SHOULD_SKIP_THIS
private :
double valid_limit(double miter_limit) const
{
if (miter_limit < 1.0)
{
// It should always exceed the buffer distance
miter_limit = 1.0;
}
return miter_limit;
}
Spheroid m_spheroid;
double m_miter_limit;
};
}} // namespace strategy::buffer
}} // namespace boost::geometry
#endif // BOOST_GEOMETRY_STRATEGIES_GEOGRAPHIC_BUFFER_JOIN_MITER_HPP
|
6809d0f4d4a668c627927c3d0507c75c77a65cd4
|
e8bc94644559fd8f3dbb371cac7082746334dee7
|
/uno_h34rt_l3ds.ino
|
d366facd7b452afe8a8cb5c2a6a6b964f4652493
|
[] |
no_license
|
fbdan/Arduino-Raspberry-Projects
|
cfa3fc9ef3bf2cf148a25c74c7d77e20c8bc5014
|
d36a59911a1933f6cfe9275f4857818992366c17
|
refs/heads/master
| 2021-06-12T11:16:17.289030
| 2016-12-26T21:43:40
| 2016-12-26T21:43:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,578
|
ino
|
uno_h34rt_l3ds.ino
|
/*
GONNA MAKE HISTORY!
Heart-shaped leds
lvl: intermediate
8 LEDS
HAVE TO BRING IN RED LEDS DONE~
Florea Bogdan
Nothing new to add for now
Versiunea 1.0
Tired to work anymore 2:55 AM 17.08.2016
16.08.2016
*/
void StandBy()
{
int count = 0;
while(count % 3 == 0) {
for (int i = 13; i > 5; i--)
{
digitalWrite(i, HIGH);
delay(150);
digitalWrite(i, LOW);
delay(150);
}
count++;
}
}
void metodaX()
{
for (int i = 6; i <= 10; i++) {
digitalWrite(i, HIGH);
delay(500);
digitalWrite(i, LOW);
delay(500);
digitalWrite(i+1, HIGH);
delay(500);
digitalWrite(i+1, LOW);
delay(500);
digitalWrite(i+2, HIGH);
delay(210);
}
}
void setup() {
Serial.begin(9600);
Serial.println("Led-uri in forma de inima!");
Serial.println("Apasati A, B, C sau D pentru combinatii de culori");
pinMode(13, OUTPUT);// initialize digital pin 13 as an output.
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);// initialize digital pin 10
pinMode(9, OUTPUT);
pinMode(8, OUTPUT);
pinMode(7, OUTPUT);
pinMode(6, OUTPUT);
}
void loop() {
int count = 0;
char data = Serial.read();
switch (data)
{
case 'A':
Serial.println("Desenam inimioara!");
for (int i = 6; i <= 13; i++) {
digitalWrite(i, HIGH); // turn the LED on (HIGH is the voltage level)
delay(200); // wait for 200ms
digitalWrite(i, LOW); // turn
delay(200);
}
break;
case 'B':
Serial.println("Intreaga mea inimioara!");
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
digitalWrite(8, HIGH);
digitalWrite(9, HIGH);
digitalWrite(10, HIGH);
digitalWrite(11, HIGH);
digitalWrite(12, HIGH);
digitalWrite(13, HIGH);
delay(2100);
break;
case 'C':
//pare pe breadboard
Serial.println("Distractie cu pare!");
for (int i = 6; i <= 13; i++)
{
if (i % 2 == 0)
digitalWrite(i, HIGH);
else
digitalWrite(i, LOW);
}
break;
case 'D':
Serial.println("Distractie cu impare!");
for (int i = 6; i <= 13; i++)
{
if (i % 2 == 0)
digitalWrite(i, HIGH);
else
digitalWrite(i, LOW);
}
break;
case 'X':
Serial.println("X move");
delay(500);
metodaX();
break;
default:
delay(1000);
StandBy();
break;
}
}
|
f1bd513b18c0eda7419998af3d1c6f82a6f67ee8
|
e246e6b676a5d24a4f377ae0e9cb36c579f60f26
|
/Program.hpp
|
448da2243f10e58d0209c60a18da7aff0193d6d0
|
[] |
no_license
|
yamhih/process_monitor
|
76165f20f608855bc06352a09c882ffc9847aa8b
|
e34814d06ae263ee16f3352c8857825777a1e49c
|
refs/heads/master
| 2020-03-29T18:32:08.069762
| 2013-08-16T17:39:22
| 2013-08-16T17:39:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 937
|
hpp
|
Program.hpp
|
#include <sys/types.h>
#include <sys/socket.h>
//#include <unordered_map>
#include <map>
#include <string>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include "utils.hpp"
#include <fcntl.h>
class ArgvParse
{
public:
ArgvParse(const char *cmd);
~ArgvParse();
char *const *get();
private:
void parse_cmd();
private:
std::string argv; //use as argv
std::string cmd;
std::vector<std::string> v_argv;
};
class Program
{
public:
enum State
{
RUNNING=1,
STOPPED,
STOPPING,
STARTING,
BACKOFF,
FATAL,
EXITED,
UNKNOWN,
};
public:
Program(const char *cmd);
~Program();
void stop();
void start();
State get_state();
void update_state(State s);
int get_pid();
private:
void parse_cmd();
private:
State state;
int pid;
ArgvParse argv;
};
|
5d5010f1ab1f1222a2cc9e93b7fce9cebc5e3aa9
|
bda1a38febd5b251a2fd6da56781d580d0dde5df
|
/LeetCode/SumofRootToBinaryNumbers.cpp
|
e7b17e62e4ad9e89897eae5ed50d3fe535e21530
|
[] |
no_license
|
FernandoZhuang/LeetCode
|
d9d8919e3985a3daa48206762163de8be1888810
|
a05f097ac515450ad776ad73b658da37479a3df3
|
refs/heads/master
| 2020-04-20T10:03:27.814403
| 2020-01-31T08:03:47
| 2020-01-31T08:03:47
| 168,780,527
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 662
|
cpp
|
SumofRootToBinaryNumbers.cpp
|
#include <iostream>
#include <vector>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
int mod = 1000000007;
void dfs(TreeNode* root, long long sum, vector<int>& addup) {
if (!root) { return; }
sum = (root->val + sum * 2) % mod;
dfs(root->left, sum, addup);
dfs(root->right, sum, addup);
if (!root->left && !root->right) {
addup.push_back(sum);
}
}
int sumRootToLeaf(TreeNode* root) {
int sum = 0, res = 0;
vector<int> addup;
dfs(root, sum, addup);
for (auto i : addup) { res = (res + i) % mod; }
return res;
}
int main() {
return 0;
}
|
0cebc4fffec862b7058b93e8bb0a764b7ea9f979
|
e2e133e5bfa0537e76c376e1e0a670af3ee2a24a
|
/ed2016/src/Commands/JoystickClimberArm.cpp
|
0812e7516150f56a4964f98eef0b54e188fef5ff
|
[] |
no_license
|
team116/ed2016
|
7b196ec8c0f0b6b558863ef877b07dd352e9e96f
|
9bc51718b57a5cd1a84fc0b7795f4f84d0d95279
|
refs/heads/master
| 2021-01-20T17:26:32.392150
| 2016-12-02T01:44:06
| 2016-12-02T01:44:06
| 49,338,847
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,067
|
cpp
|
JoystickClimberArm.cpp
|
#include "JoystickClimberArm.h"
#include <Subsystems/Climber.h>
#include <OI.h>
JoystickClimberArm::JoystickClimberArm()
{
Requires(&*climber);
}
// Called just before this Command runs the first time
void JoystickClimberArm::Initialize()
{
}
// Called repeatedly when this Command is scheduled to run
void JoystickClimberArm::Execute()
{
float speed = oi->getFrontWinchY();
if (speed < 0.0)
{
climber->setClimber(Utils::VerticalDirection::DOWN, -speed);
}
else if (speed > 0.0)
{
climber->setClimber(Utils::VerticalDirection::UP, speed);
}
else
{
climber->setClimber(Utils::VerticalDirection::V_STILL, 0.0);
}
}
// Make this return true when this Command no longer needs to run execute()
bool JoystickClimberArm::IsFinished()
{
return false;
}
// Called once after isFinished returns true
void JoystickClimberArm::End()
{
climber->setClimber(Utils::VerticalDirection::V_STILL, 0.0);
}
// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void JoystickClimberArm::Interrupted()
{
End();
}
|
40eef212b6225493f0c39e4ace6b42fdbd2ba99a
|
a2022a756328e52fe4e63dc398533e5f0dd073bf
|
/DoorbellDetector/DoorbellDetector/DoorbellDetector.ino
|
ee360db8b9a2feffde46f92182c79f883e93358c
|
[] |
no_license
|
rossdargan/Arduino-Projects
|
16ae3b11eff4def062cb76420888a8191e2ed5a9
|
e17362bbedfcb8950827c014b10895ad6a9073a5
|
refs/heads/master
| 2021-01-21T12:49:52.924861
| 2016-04-17T13:54:48
| 2016-04-17T13:54:48
| 3,023,388
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,496
|
ino
|
DoorbellDetector.ino
|
#define analogPin A0 // RF data pin = Analog pin 0
byte dataBuffer[40];
int dataCounter = 0;
int lowDataCounter = 0;
int highDataCounter = 0;
int maxSignalLength = 30;
const unsigned int upperThreshold = 100;
const unsigned int lowerThreshold = 80;
int ding[] = {2,2,2,1,3,4,1,3,4,1,4,1,3,4,1,4,2,2,1,4};
void setup() {
Serial.begin(115200);
}
void loop() {
lowDataCounter = 0;
while (analogRead(analogPin) > upperThreshold)
lowDataCounter++;
// HIGH signal
highDataCounter = 0;
while(analogRead(analogPin) < lowerThreshold)
highDataCounter++;
if(lowDataCounter >=2 && lowDataCounter <=5)
{
if(highDataCounter >= 25 && highDataCounter <= 27)
{
//This could be it, now to capture the rest of the signal.
capture();
}
}
}
void capture()
{
byte found=1;
int mistakes =0;
Serial.println("in here!");
// got HIGH; read the rest of the data into dataBuffer
for (int i = 0; i < sizeof(dataBuffer); i = i+2) {
// LOW signals
lowDataCounter = 0;
while (analogRead(analogPin) > upperThreshold && lowDataCounter < maxSignalLength)
lowDataCounter++;
dataBuffer[i] = dataCounter;
// HIGH signal
highDataCounter = 0;
while(analogRead(analogPin) < lowerThreshold && highDataCounter < maxSignalLength)
highDataCounter++;
int number = getNumber(lowDataCounter,highDataCounter);
Serial.print(number);
if(ding[i/2]!=number)
{
if(i==0 && number==4)
{
//this can pass
}
else
{
// Serial.println("WRONG");
found=0;
//break;
mistakes ++;
}
}
}
if(found==1)
{
Serial.println("YAY!");
}
else
{
Serial.print("Found mistakes: ");
Serial.println(mistakes);
}
}
int getNumber(byte low, byte high)
{
if(translateValue(low)==0)
{
if(translateValue(high)==0)
{
//0,0 == 1
return 1;
}
else if(translateValue(high)==1)
{
//0,1==2
return 2;
}
}
else
{
if(translateValue(high)==0)
{
//1,0 == 3
return 3;
}
else if(translateValue(high)==1)
{
//1,1==4
return 4;
}
}
return 9;
}
int translateValue(byte in)
{
if(in >2 && in < 5)
{
return 0;
}
if(in > 6 && in < 10)
{
return 1;
}
return -1;
}
|
eac53a909e7945a4e8ec857e9abbfd3d4ef2c144
|
5dfd73d000548e0bc5ef2008cf2c0886ff71a839
|
/symgen/optparse.cpp
|
1f22071c2381e79e7ddff5a3f9c6578010ae7059
|
[] |
no_license
|
resonancellc/gen3tools
|
ab234d039b0cc514ac0e9beb5811b363c0e60cf8
|
4542b2b0c5ac20ef20b341d28f4f35db27b2e789
|
refs/heads/master
| 2020-06-22T23:47:28.849810
| 2019-06-27T22:47:35
| 2019-06-27T22:47:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,536
|
cpp
|
optparse.cpp
|
#include "global.hpp"
#include "optparse.hpp"
#include <cstring>
using namespace std;
extern int runSelfTest();
static const char SOPT_TEMPLATE[] = { "-t" };
static const char FOPT_TEMPLATE[] = { "--template" };
static const char SOPT_ELF[] = { "-e" };
static const char FOPT_ELF[] = { "--elf" };
static const char FOPT_SELFTEST[] = { "--selftest" };
#define TESTOPTION(option) \
((strncmp(argv[i], SOPT_##option, sizeof(SOPT_##option)) == 0 || strncmp(argv[i], FOPT_##option, sizeof(FOPT_##option)) == 0) && i+1 < argc)
void printHelp()
{
cout << "pgegen -t <template.ini> -e <file.elf>" << endl;
cout << "This program outputs to stdout. If you wish to put it to a file, make sure to redirect it." << endl;
cout << " " << SOPT_TEMPLATE << " " << FOPT_TEMPLATE << " <template.ini>" << endl;
cout << " " << "Passes in the .ini file which will be filled in by this program." << endl;
cout << " " << SOPT_ELF << " " << FOPT_ELF << " <file.elf>" << endl;
cout << " " << "Passes in the .elf file which will be parsed to retrieve the data needed." << endl;
}
bool parseOptions(int argc, char* argv[])
{
int i;
for (i = 1; i < argc; i++)
{
if (strncmp(argv[i], FOPT_SELFTEST, sizeof(FOPT_SELFTEST)) == 0)
{
runSelfTest();
exit(0);
return false;
}
if (TESTOPTION(TEMPLATE))
{
templateFilename = new string(argv[++i]);
continue;
}
if (TESTOPTION(ELF))
{
symFilename = new string(argv[++i]);
continue;
}
}
return templateFilename != nullptr && symFilename != nullptr;
}
|
985b56807c056bbcdfa8917e3ca7f702f7dc8940
|
4cfb40675297dcb2d5999889aeef643be3351d42
|
/alternating_current_test/tst_apptest.cpp
|
33c0f639223b831a3d2b27d0d57ca2dc86940034
|
[] |
no_license
|
MikhailSklyarov1/KiNPO
|
5c8a7ed613749cefadbc125ef3d0d0599cf35779
|
3aae38267faf4cb57c6d4c9d540eab8781bd8523
|
refs/heads/master
| 2023-05-30T19:27:26.309486
| 2021-06-17T14:47:09
| 2021-06-17T14:47:09
| 355,274,370
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 51,723
|
cpp
|
tst_apptest.cpp
|
#include <QtTest>
#include <graph.h>
#include <branch.h>
#include <QObject>
#include <declaration.h>
Q_DECLARE_METATYPE(Element);
Q_DECLARE_METATYPE(ComplexVal);
Q_DECLARE_METATYPE(QVector<Element>);
Q_DECLARE_METATYPE(Branch);
Q_DECLARE_METATYPE(Graph);
Q_DECLARE_METATYPE(Link);
typedef QMap<int, Branch> branchList;
typedef QVector<QMap<int, int>> contourList;
typedef QVector<QVector<ComplexVal>> coefMatr;
class AppTest : public QObject
{
Q_OBJECT
public:
AppTest(QObject *parent);
AppTest();
~AppTest();
private slots:
void initTestCase();
void initTestCase();
void cleanupTestCase();
void test_getSpanningTree();
void test_getSpanningTree_data();
void test_findPath();
void test_findPath_data();
void test_calculateResistance();
void test_calculateResistance_data();
void test_cyclicCurrentsCalculation();
void test_cyclicCurrentsCalculation_data();
void test_currentCalculation();
void test_currentCalculation_data();
void test_solveEquations();
void test_solveEquations_data();
void test_findIndependentContours();
void test_findIndependentContours_data();
private:
Branch b;
QVector<branchList> b_list1; //списки ветвей для 8 тестовых ситуаций
QVector<branchList> b_list2;
QVector<contourList> c_list; //списки контуров для 8 тестовых ситуаций
QVector<QVector<ComplexVal>> ccurr_list;
QMap<int, int> contour;
void doData();
};
AppTest::AppTest(QObject *parent)
: QObject(parent)
{
}
AppTest::AppTest()
{
b_list1.resize(8);
b_list2.resize(7);
c_list.resize(8);
ccurr_list.resize(8);
doData();
}
AppTest::~AppTest()
{
}
void AppTest::initTestCase()
{
}
void AppTest::cleanupTestCase()
{
}
template<typename T>
bool compareVects(const QVector<T> & first, const QVector<T> & second)
{
if(first.count() != second.count())
return false;
for(int i = 0; i < first.count(); i++)
if(!second.contains(first[i]) || second.count(first[i]) != first.count(first[i]))
return false;
return true;
}
void AppTest::test_getSpanningTree()
{
Graph t;
QVector<int> l;
QFETCH(Graph, in_graph);
QFETCH(Graph, tree);
QFETCH(QVector<int>, links);
in_graph.getSkeletalTree(t, l);
bool b = compareVects(l, links);
QVERIFY2(t==tree && b, "Result checking failed");
}
void AppTest::test_getSpanningTree_data()
{
QTest::addColumn<Graph>("in_graph");
QTest::addColumn<Graph>("tree");
QTest::addColumn<QVector<int>>("links");
Graph graph;
QVector<int> links;
Graph exp_graph;
graph.insertEdge(QString("a"), 1, QString("b"));
graph.insertEdge(QString("a"), 2, QString("b"));
graph.insertEdge(QString("a"), 3, QString("b"));
graph.insertEdge(QString("a"), 4, QString("b"));
exp_graph.insertEdge(QString("a"), 1, QString("b"));
links.append(2);
links.append(3);
links.append(4);
QTest::newRow("Все ребра кратные") << graph << exp_graph << links;
graph.clear();
exp_graph.clear();
links.clear();
graph.insertEdge(QString("a"), 1, QString("b"));
graph.insertEdge(QString("a"), 2, QString("c"));
graph.insertEdge(QString("a"), 3, QString("d"));
graph.insertEdge(QString("b"), 4, QString("c"));
graph.insertEdge(QString("b"), 5, QString("d"));
graph.insertEdge(QString("c"), 6, QString("d"));
exp_graph.insertEdge(QString("a"), 1, QString("b"));
exp_graph.insertEdge(QString("a"), 2, QString("c"));
exp_graph.insertEdge(QString("a"), 3, QString("d"));
links.append(4);
links.append(5);
links.append(6);
QTest::newRow("Граф полный") << graph << exp_graph << links;
graph.clear();
exp_graph.clear();
links.clear();
graph.insertEdge(QString(), 1, QString());
exp_graph.insertNode(QString());
links.append(1);
QTest::newRow("Граф состоит из одной петли") << graph << exp_graph << links;
graph.clear();
exp_graph.clear();
links.clear();
graph.insertEdge(QString(), 1, QString());
graph.insertEdge(QString(), 2, QString());
graph.insertEdge(QString(), 3, QString());
exp_graph.insertNode(QString());
links.append(1);
links.append(2);
links.append(3);
QTest::newRow("Граф состоит из несольких петель") << graph << exp_graph << links;
graph.clear();
exp_graph.clear();
links.clear();
graph.insertEdge(QString("a"), 1, QString("b"));
graph.insertEdge(QString("a"), 2, QString("c"));
graph.insertEdge(QString("a"), 3, QString("a"));
graph.insertEdge(QString("b"), 4, QString("c"));
graph.insertEdge(QString("b"), 5, QString("d"));
graph.insertEdge(QString("c"), 6, QString("d"));
exp_graph.insertEdge(QString("a"), 1, QString("b"));
exp_graph.insertEdge(QString("a"), 2, QString("c"));
exp_graph.insertEdge(QString("b"), 5, QString("d"));
links.append(3);
links.append(4);
links.append(6);
QTest::newRow("Граф содержит петли") << graph << exp_graph << links;
graph.clear();
exp_graph.clear();
links.clear();
graph.insertEdge(QString("a"), 1, QString("b"));
graph.insertEdge(QString("a"), 2, QString("g"));
graph.insertEdge(QString("b"), 3, QString("c"));
graph.insertEdge(QString("b"), 4, QString("d"));
graph.insertEdge(QString("c"), 5, QString("d"));
graph.insertEdge(QString("c"), 6, QString("g"));
graph.insertEdge(QString("d"), 7, QString("g"));
exp_graph.insertEdge(QString("a"), 1, QString("b"));
exp_graph.insertEdge(QString("a"), 2, QString("g"));
exp_graph.insertEdge(QString("b"), 3, QString("c"));
exp_graph.insertEdge(QString("b"), 4, QString("d"));
links.append(5);
links.append(6);
links.append(7);
QTest::newRow("Граф простой") << graph << exp_graph << links;
graph.clear();
exp_graph.clear();
links.clear();
graph.insertEdge(QString("a"), 1, QString("b"));
graph.insertEdge(QString("a"), 2, QString("g"));
graph.insertEdge(QString("b"), 3, QString("c"));
graph.insertEdge(QString("b"), 4, QString("d"));
graph.insertEdge(QString("c"), 5, QString("d"));
graph.insertEdge(QString("c"), 6, QString("g"));
graph.insertEdge(QString("d"), 7, QString("g"));
graph.insertEdge(QString("a"), 8, QString("b"));
graph.insertEdge(QString("a"), 9, QString("g"));
exp_graph.insertEdge(QString("a"), 1, QString("b"));
exp_graph.insertEdge(QString("a"), 2, QString("g"));
exp_graph.insertEdge(QString("b"), 3, QString("c"));
exp_graph.insertEdge(QString("b"), 4, QString("d"));
links.append(5);
links.append(6);
links.append(7);
links.append(8);
links.append(9);
QTest::newRow("Граф содержит кратные ребра") << graph << exp_graph << links;
graph.clear();
exp_graph.clear();
links.clear();
graph.insertEdge(QString("a"), 1, QString("b"));
graph.insertEdge(QString("a"), 2, QString("g"));
graph.insertEdge(QString("b"), 3, QString("c"));
graph.insertEdge(QString("b"), 4, QString("d"));
graph.insertEdge(QString("c"), 5, QString("d"));
graph.insertEdge(QString("c"), 6, QString("g"));
graph.insertEdge(QString("d"), 7, QString("g"));
graph.insertEdge(QString("a"), 8, QString("b"));
graph.insertEdge(QString("a"), 9, QString("g"));
graph.insertEdge(QString("c"), 10, QString("c"));
exp_graph.insertEdge(QString("a"), 1, QString("b"));
exp_graph.insertEdge(QString("a"), 2, QString("g"));
exp_graph.insertEdge(QString("b"), 3, QString("c"));
exp_graph.insertEdge(QString("b"), 4, QString("d"));
links.append(5);
links.append(6);
links.append(7);
links.append(8);
links.append(9);
links.append(10);
QTest::newRow("Граф содержит кратные ребра и петли") << graph << exp_graph << links;
graph.clear();
exp_graph.clear();
links.clear();
graph.insertEdge(QString("a"), 1, QString("b"));
graph.insertEdge(QString("a"), 2, QString("c"));
graph.insertEdge(QString("a"), 3, QString("d"));
graph.insertEdge(QString("b"), 4, QString("c"));
graph.insertEdge(QString("b"), 5, QString("d"));
graph.insertEdge(QString("c"), 6, QString("d"));
graph.insertEdge(QString("a"), 7, QString("b"));
graph.insertEdge(QString("c"), 8, QString("c"));
exp_graph.insertEdge(QString("a"), 1, QString("b"));
exp_graph.insertEdge(QString("a"), 2, QString("c"));
exp_graph.insertEdge(QString("a"), 3, QString("d"));
links.append(4);
links.append(5);
links.append(6);
links.append(7);
links.append(8);
QTest::newRow("Полный граф с кратными ребрами и петлями") << graph << exp_graph << links;
graph.clear();
exp_graph.clear();
links.clear();
graph.insertEdge(QString("a"), 1, QString("b"));
exp_graph.insertEdge(QString("a"), 1, QString("b"));
QTest::newRow(" Граф состоит из одного ребра") << graph << exp_graph << links;
graph.clear();
exp_graph.clear();
links.clear();
graph.insertEdge(QString("a"), 1, QString("b"));
graph.insertEdge(QString("a"), 2, QString("c"));
graph.insertEdge(QString("a"), 3, QString("d"));
graph.insertEdge(QString("b"), 4, QString("c"));
graph.insertEdge(QString("d"), 5, QString("d"));
graph.insertEdge(QString("b"), 6, QString("d"));
graph.insertEdge(QString("c"), 7, QString("d"));
graph.insertEdge(QString("a"), 8, QString("b"));
graph.insertEdge(QString("c"), 9, QString("c"));
exp_graph.insertEdge(QString("a"), 1, QString("b"));
exp_graph.insertEdge(QString("a"), 2, QString("c"));
exp_graph.insertEdge(QString("a"), 3, QString("d"));
links.append(4);
links.append(5);
links.append(6);
links.append(7);
links.append(8);
links.append(9);
QTest::newRow("Комплексный тест") << graph << exp_graph << links;
graph.clear();
exp_graph.clear();
links.clear();
}
void AppTest::test_findPath()
{
QVector<int> p;
QFETCH(Graph, graph);
QFETCH(QString, begin);
QFETCH(QString, goal);
QFETCH(bool, isFind);
QFETCH(QVector<QVector<int>>, path);
bool retval = graph.findPath(begin, goal, p);
bool res = false;
for(int i = 0; i < path.count(); i++)
{
if(path[i] == p)
{
res = true;
i=path.count();
}
}
QVERIFY2((retval==isFind) && res, "Result checking failed");
}
void AppTest::test_findPath_data()
{
QString begin, goal;
Graph g;
QVector<QVector<int>> path(4);
bool isFind;
QTest::addColumn<Graph>("graph");
QTest::addColumn<QString>("begin");
QTest::addColumn<QString>("goal");
QTest::addColumn<bool>("isFind");
QTest::addColumn<QVector<QVector<int>>>("path");
begin = "k";
goal="f";
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "h");
g.insertEdge("b", 5, "g");
g.insertEdge("c", 6, "f");
g.insertEdge("c", 7, "e");
isFind = false;
QTest::newRow("Начальный узел отсутствует в графе") << g << begin
<<goal << isFind << path;
g.clear();
begin = "a";
goal="k";
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "h");
g.insertEdge("b", 5, "g");
g.insertEdge("c", 6, "f");
g.insertEdge("c", 7, "e");
isFind = false;
QTest::newRow("Конечный узел отсутствует в графе") << g << begin
<<goal << isFind << path;
g.clear();
begin = "k";
goal="p";
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "h");
g.insertEdge("b", 5, "g");
g.insertEdge("c", 6, "f");
g.insertEdge("c", 7, "e");
isFind = false;
QTest::newRow("Начальный и конечный узел отсутствуют в графе") << g
<< begin <<goal << isFind << path;
g.clear();
begin = "a";
goal="b";
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "h");
g.insertEdge("b", 5, "g");
g.insertEdge("c", 6, "f");
g.insertEdge("c", 7, "e");
isFind = true;
path[0].append(1);
QTest::newRow("Узлы смежные") << g << begin <<goal << isFind << path;
g.clear();
path[0].clear();
begin = "a";
goal="f";
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "h");
g.insertEdge("b", 5, "g");
g.insertEdge("c", 6, "f");
g.insertEdge("c", 7, "e");
isFind = true;
path[0].append(2);
path[0].append(6);
QTest::newRow("Граф ацикличный") << g << begin <<goal << isFind << path;
g.clear();
path[0].clear();
begin = "a";
goal="f";
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "h");
g.insertEdge("b", 5, "f");
g.insertEdge("c", 6, "f");
g.insertEdge("c", 7, "e");
isFind = true;
path[0].append(1);
path[0].append(5);
path[1].append(2);
path[1].append(6);
QTest::newRow("Граф содержит циклы") << g << begin <<goal << isFind << path;
g.clear();
path[0].clear();
path[1].clear();
begin = "a";
goal="f";
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "h");
g.insertEdge("b", 5, "f");
g.insertEdge("c", 6, "f");
g.insertEdge("c", 7, "e");
g.insertEdge("f", 8, "f");
isFind = true;
path[0].append(1);
path[0].append(5);
path[1].append(2);
path[1].append(6);
QTest::newRow("Граф содержит петли") << g << begin <<goal << isFind << path;
g.clear();
path[0].clear();
path[1].clear();
begin = "a";
goal="f";
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "h");
g.insertEdge("b", 5, "f");
g.insertEdge("c", 6, "f");
g.insertEdge("c", 7, "e");
g.insertEdge("c", 8, "f");
isFind = true;
path[0].append(1);
path[0].append(5);
path[1].append(2);
path[1].append(6);
path[2].append(2);
path[2].append(8);
QTest::newRow("Граф содержит кратные ребра") << g << begin <<goal << isFind << path;
g.clear();
path[0].clear();
path[1].clear();
path[2].clear();
begin = "a";
goal="f";
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "h");
g.insertEdge("b", 5, "f");
g.insertEdge("c", 6, "f");
g.insertEdge("c", 7, "e");
g.insertEdge("c", 8, "f");
g.insertEdge("f", 9, "f");
isFind = true;
path[0].append(1);
path[0].append(5);
path[1].append(2);
path[1].append(6);
path[2].append(2);
path[2].append(8);
QTest::newRow("Граф содержит кратные ребра и петли") << g << begin <<goal << isFind << path;
g.clear();
path[0].clear();
path[1].clear();
path[2].clear();
begin = "a";
goal="d";
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "c");
g.insertEdge("b", 5, "d");
g.insertEdge("c", 6, "d");
isFind = true;
path[0].append(3);
path[1].append(1);
path[1].append(5);
path[2].append(1);
path[2].append(4);
path[2].append(6);
path[3].append(2);
path[3].append(6);
QTest::newRow("Граф полный") << g << begin <<goal << isFind << path;
g.clear();
path[0].clear();
path[1].clear();
path[2].clear();
path[3].clear();
begin = "a";
goal="f";
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "h");
g.insertEdge("b", 5, "f");
g.insertEdge("c", 6, "f");
g.insertEdge("c", 7, "e");
g.insertEdge("c", 8, "k");
g.insertEdge("k", 9, "k");
g.insertEdge("c", 10, "f");
g.insertEdge("f", 12, "f");
isFind = true;
path[0].append(1);
path[0].append(5);
path[1].append(2);
path[1].append(6);
path[2].append(2);
path[2].append(8);
QTest::newRow("Комплексный тест") << g << begin <<goal << isFind << path;
}
void AppTest::test_calculateResistance()
{
Branch branch;
QFETCH(QVector<Element>, param);
QFETCH(ComplexVal, expect);
ComplexVal res = branch.calcResistanceBranch(param);
QVERIFY2((expect.real()-0.1 < res.real() || expect.imag()-0.1 < res.imag()) && (res.real() < expect.real()+0.1 || res.imag() < expect.imag()+0.1), "Result checking failed");
}
void AppTest::test_calculateResistance_data()
{
setlocale(LC_ALL, "Russian");
ComplexVal results[7] = {
ComplexVal((double)50, 0),
ComplexVal(0, (double)40.82),
ComplexVal(0, (double)-62.63),
ComplexVal(0, (double)107.06),
ComplexVal(65, (double)160.14),
ComplexVal(65, (double)-0.32),
ComplexVal(25, (double)107.06)
};
QVector<Element> test1;
QVector<Element> test2;
QVector<Element> test3;
QVector<Element> test4;
QVector<Element> test5;
QVector<Element> test6;
QVector<Element> test7;
test1.append(Element(RESISTOR, (double)15.0));
test1.append(Element(RESISTOR, (double)20.0));
test1.append(Element(RESISTOR, (double)5.0));
test1.append(Element(RESISTOR, (double)10.0));
test2.append(Element(INDUCTOR, (double)0.015));
test2.append(Element(INDUCTOR, (double)0.1));
test2.append(Element(INDUCTOR, (double)0.01));
test2.append(Element(INDUCTOR, (double)0.005));
test3.append(Element(CAPACITOR, (double)0.00015));
test3.append(Element(CAPACITOR, (double)0.0001));
test3.append(Element(CAPACITOR, (double)0.001));
test3.append(Element(CAPACITOR, (double)0.0005));
test4.append(Element(CAPACITOR, (double)0.00015));
test4.append(Element(CAPACITOR, (double)0.0001));
test4.append(Element(INDUCTOR, (double)0.01));
test4.append(Element(INDUCTOR, (double)0.5));
test5.append(Element(RESISTOR, (double)15.0));
test5.append(Element(RESISTOR, (double)50.0));
test5.append(Element(INDUCTOR, (double)0.01));
test5.append(Element(INDUCTOR, (double)0.5));
test6.append(Element(RESISTOR, (double)15.0));
test6.append(Element(RESISTOR, (double)50.0));
test6.append(Element(CAPACITOR, (double)0.01));
test6.append(Element(CAPACITOR, (double)0.5));
test7.append(Element(RESISTOR, (double)15.0));
test7.append(Element(RESISTOR, (double)10.0));
test7.append(Element(CAPACITOR, (double)0.00015));
test7.append(Element(CAPACITOR, (double)0.0001));
test7.append(Element(INDUCTOR, (double)0.01));
test7.append(Element(INDUCTOR, (double)0.5));
QTest::addColumn<QVector<Element>>("param");
QTest::addColumn<ComplexVal>("expect");
QTest::newRow("Только резисторы") << test1 << results[0];
QTest::newRow("Только катушки") << test2 << results[1];
QTest::newRow("Только конденсаторы") << test3 <<results[2];
QTest::newRow("Катушки и конденсаторы") << test4 << results[3];
QTest::newRow("Резисторы и катушки") << test5 << results[4];
QTest::newRow("Резисторы и конденсаторы") << test6 << results[5];
QTest::newRow("Резисторы, катушки, конденсаторы") << test7 <<results[6];
}
void AppTest::doData()
{
//ДАННЫЕ ДЛЯ ФУНКЦИЙ test_cyclicCurrentsCalculation
//test_calculaterRealCurrents
b_list1[0].insert(1, b.setResistance(ComplexVal(20.0, 4.0)).setVoltage(30.0).setNodes("", ""));
b_list2[0].insert(1, b.setCurrent(1.04));
contour.insert(1,1);
c_list[0].append(contour);
ccurr_list[0].append(ComplexVal(1.44, -0.29));
contour.clear();
b_list1[1].insert(1, b.setResistance(ComplexVal(10.0, 10.0)).setVoltage(0.0).setNodes("a", "b"));
b_list2[1].insert(1, b.setCurrent(1.49977));
b_list1[1].insert(2, b.setResistance(ComplexVal(15.0, -5.0)).setVoltage(0).setNodes("b", "c"));
b_list2[1].insert(2, b.setCurrent(0.35778));
b_list1[1].insert(3, b.setResistance(ComplexVal(5.0, 0.5)).setVoltage(0).setNodes("b", "c"));
b_list2[1].insert(3, b.setCurrent(1.13));
b_list1[1].insert(4, b.setResistance(ComplexVal(10.0, -5.0)).setVoltage(0).setNodes("c", "a"));
b_list2[1].insert(4, b.setCurrent(1.46));
b_list1[1].insert(5, b.setResistance(ComplexVal(0, 0)).setVoltage(30.0).setNodes("a", "b"));
b_list2[1].insert(5, b.setCurrent(2.51));
contour.insert(1, 1);
contour.insert(5, -1);
c_list[1].append(contour);
contour.clear();
contour.insert(4, -1);
contour.insert(2, -1);
contour.insert(5, -1);
c_list[1].append(contour);
contour.clear();
contour.insert(3, 1);
contour.insert(2, -1);
c_list[1].append(contour);
contour.clear();
ccurr_list[1].append(ComplexVal(-1.5, 1.5));
ccurr_list[1].append(ComplexVal(-1.95, -0.68));
ccurr_list[1].append(ComplexVal(1.55, 0.37));
b_list1[2].insert(1, b.setResistance(ComplexVal(20.0, 0)).setVoltage(0.0).setNodes("a", "b"));
b_list2[2].insert(1, b.setCurrent(1.66145));
b_list1[2].insert(2, b.setResistance(ComplexVal(25.0, 0)).setVoltage(0).setNodes("a", "b"));
b_list2[2].insert(2, b.setCurrent(0.50904));
b_list1[2].insert(3, b.setResistance(ComplexVal(20.0, 0)).setVoltage(0).setNodes("a", "c"));
b_list2[2].insert(3, b.setCurrent(1.0605));
b_list1[2].insert(4, b.setResistance(ComplexVal(15.0, 0)).setVoltage(0).setNodes("b", "c"));
b_list2[2].insert(4, b.setCurrent(0.5656));
b_list1[2].insert(5, b.setResistance(ComplexVal(5.0, 0)).setVoltage(0).setNodes("b", "c"));
b_list2[2].insert(5, b.setCurrent(0.58681));
b_list1[2].insert(6, b.setResistance(ComplexVal(0, 0)).setVoltage(30.0).setNodes("c", "a"));
b_list2[2].insert(6, b.setCurrent(2.21291));
contour.insert(1, 1);
contour.insert(2, -1);
c_list[2].append(contour);
contour.clear();
contour.insert(1, 1);
contour.insert(4, 1);
contour.insert(6, 1);
c_list[2].append(contour);
contour.clear();
contour.insert(1, 1);
contour.insert(5, 1);
contour.insert(6, 1);
c_list[2].append(contour);
contour.clear();
contour.insert(3, 1);
contour.insert(6, 1);
c_list[2].append(contour);
contour.clear();
ccurr_list[2].append(ComplexVal(0.72, 0));
ccurr_list[2].append(ComplexVal(0.8, 0));
ccurr_list[2].append(ComplexVal(0.83, 0));
ccurr_list[2].append(ComplexVal(1.5, 0));
b_list1[3].insert(1, b.setResistance(ComplexVal(30.0, 0)).setVoltage(0.0).setNodes("a", "c"));
b_list2[3].insert(1, b.setCurrent(0.48076));
b_list1[3].insert(2, b.setResistance(ComplexVal(20.0, 0)).setVoltage(0).setNodes("a", "c"));
b_list2[3].insert(2, b.setCurrent(0.71407));
b_list1[3].insert(3, b.setResistance(ComplexVal(10.0, 0)).setVoltage(0).setNodes("b", "a"));
b_list2[3].insert(3, b.setCurrent(1.19483));
b_list1[3].insert(4, b.setResistance(ComplexVal(10.0, 0)).setVoltage(30).setNodes("c", "b"));
b_list2[3].insert(4, b.setCurrent(2.50278));
b_list1[3].insert(5, b.setResistance(ComplexVal(20, 0)).setVoltage(0.0).setNodes("b", "c"));
b_list2[3].insert(5, b.setCurrent(1.30795));
contour.insert(1, -1);
contour.insert(2, 1);
c_list[3].append(contour);
contour.clear();
contour.insert(1, -1);
contour.insert(3, -1);
contour.insert(4, -1);
c_list[3].append(contour);
contour.clear();
contour.insert(1, -1);
contour.insert(3, -1);
contour.insert(5, 1);
c_list[3].append(contour);
contour.clear();
ccurr_list[3].append(ComplexVal(1.01, 0));
ccurr_list[3].append(ComplexVal(-3.54, 0));
ccurr_list[3].append(ComplexVal(1.85, 0));
b_list1[4].insert(1, b.setResistance(ComplexVal(10.0, 10.0)).setVoltage(0.0).setNodes("a", "b"));
b_list2[4].insert(1, b.setCurrent(1.49977));
b_list1[4].insert(2, b.setResistance(ComplexVal(15.0, -5.0)).setVoltage(0).setNodes("b", "c"));
b_list2[4].insert(2, b.setCurrent(0.36));
b_list1[4].insert(3, b.setResistance(ComplexVal(5.0, 0.5)).setVoltage(0).setNodes("b", "c"));
b_list2[4].insert(3, b.setCurrent(1.13));
b_list1[4].insert(4, b.setResistance(ComplexVal(10.0, -5.0)).setVoltage(0).setNodes("c", "a"));
b_list2[4].insert(4, b.setCurrent(1.46));
b_list1[4].insert(5, b.setResistance(ComplexVal(0, 0)).setVoltage(30.0).setNodes("a", "b"));
b_list2[4].insert(5, b.setCurrent(2.51));
contour.insert(1, 1);
contour.insert(5, -1);
c_list[4].append(contour);
contour.clear();
contour.insert(4, 1);
contour.insert(2, 1);
contour.insert(5, 1);
c_list[4].append(contour);
contour.clear();
contour.insert(3, 1);
contour.insert(2, -1);
c_list[4].append(contour);
contour.clear();
ccurr_list[4].append(ComplexVal(-1.5, 1.5));
ccurr_list[4].append(ComplexVal(1.95, 0.68));
ccurr_list[4].append(ComplexVal(1.55, 0.37));
b_list1[5].insert(1, b.setResistance(ComplexVal(10.0, 10.0)).setVoltage(0.0).setNodes("a", "b"));
b_list2[5].insert(1, b.setCurrent(1.49977));
b_list1[5].insert(2, b.setResistance(ComplexVal(15.0, -5.0)).setVoltage(0).setNodes("b", "c"));
b_list2[5].insert(2, b.setCurrent(0.36));
b_list1[5].insert(3, b.setResistance(ComplexVal(5.0, 0.5)).setVoltage(0).setNodes("b", "c"));
b_list2[5].insert(3, b.setCurrent(1.13));
b_list1[5].insert(4, b.setResistance(ComplexVal(10.0, -5.0)).setVoltage(0).setNodes("c", "a"));
b_list2[5].insert(4, b.setCurrent(1.46));
b_list1[5].insert(5, b.setResistance(ComplexVal(0, 0)).setVoltage(30.0).setNodes("a", "b"));
b_list2[5].insert(5, b.setCurrent(2.51));
contour.insert(1, -1);
contour.insert(5, 1);
c_list[5].append(contour);
contour.clear();
contour.insert(4, -1);
contour.insert(2, -1);
contour.insert(5, -1);
c_list[5].append(contour);
contour.clear();
contour.insert(3, -1);
contour.insert(2, 1);
c_list[5].append(contour);
contour.clear();
ccurr_list[5].append(ComplexVal(1.5, -1.5));
ccurr_list[5].append(ComplexVal(-1.95, -0.68));
ccurr_list[5].append(ComplexVal(-1.55, -0.37));
b_list1[6].insert(1, b.setResistance(ComplexVal(10.0, 10)).setVoltage(0.0).setNodes("a", "c"));
b_list2[6].insert(1, b.setCurrent(0.35));
b_list1[6].insert(2, b.setResistance(ComplexVal(15.0, -5)).setVoltage(0).setNodes("a", "c"));
b_list2[6].insert(2, b.setCurrent(0.9));
b_list1[6].insert(3, b.setResistance(ComplexVal(5.0, 0.5)).setVoltage(0).setNodes("b", "a"));
b_list2[6].insert(3, b.setCurrent(0.55));
b_list1[6].insert(4, b.setResistance(ComplexVal(10.0, -5)).setVoltage(30).setNodes("c", "b"));
b_list2[6].insert(4, b.setCurrent(1.29));
b_list1[6].insert(5, b.setResistance(ComplexVal(10, 0)).setVoltage(0.0).setNodes("b", "c"));
b_list2[6].insert(5, b.setCurrent(0.75));
contour.insert(1, -1);
contour.insert(2, 1);
c_list[6].append(contour);
contour.clear();
contour.insert(2, 1);
contour.insert(3, 1);
contour.insert(4, 1);
c_list[6].append(contour);
contour.clear();
contour.insert(4, 1);
contour.insert(5, 1);
c_list[6].append(contour);
contour.clear();
ccurr_list[6].append(ComplexVal(-0.46, 0.16));
ccurr_list[6].append(ComplexVal(-0.77, 0.14));
ccurr_list[6].append(ComplexVal(-0.99, 0.37));
b_list1[7].insert(1, b.setResistance(ComplexVal(10.0, 10.0)).setVoltage(0.0).setNodes("a", "c"));
b_list1[7].insert(2, b.setResistance(ComplexVal(10.0, 10.0)).setVoltage(0).setNodes("a", "c"));
b_list1[7].insert(3, b.setResistance(ComplexVal(10.0, 10.0)).setVoltage(0).setNodes("b", "a"));
b_list1[7].insert(4, b.setResistance(ComplexVal(10.0, 10.0)).setVoltage(30).setNodes("c", "b"));
b_list1[7].insert(5, b.setResistance(ComplexVal(10.0, 10.0)).setVoltage(0.0).setNodes("b", "c"));
contour.insert(1, -1);
contour.insert(2, 1);
c_list[7].append(contour);
contour.clear();
contour.insert(2, 1);
contour.insert(3, 1);
contour.insert(4, 1);
c_list[7].append(contour);
contour.clear();
contour.insert(4, 1);
contour.insert(5, 1);
c_list[7].append(contour);
contour.clear();
ccurr_list[7].append(ComplexVal(0.19, -0.19));
ccurr_list[7].append(ComplexVal(0.38, -0.38));
ccurr_list[7].append(ComplexVal(0.56, -0.56));
}
void AppTest::test_cyclicCurrentsCalculation()
{
QVector<ComplexVal> c;
QFETCH(contourList, contours);
QFETCH(branchList, branches);
QFETCH(QVector<ComplexVal>, currents);
cyclicCurrentsCalculation(contours, branches, c);
bool b = true;
for(int i = 0; i < c.count() && c.count() == currents.count(); i++)
{
//допустимая погрешность в ручных расчетах - 0.5
if(!((c[i].real()-0.5 < currents[i].real() || c[i].imag()-0.5 < currents[i].imag())
&& (currents[i].real() < c[i].real()+0.5 || currents[i].imag() < c[i].imag()+0.5)))
b = false;
}
QVERIFY2(compareVects(c, currents) || b, "Result checking failed");
}
void AppTest::test_cyclicCurrentsCalculation_data()
{
QTest::addColumn<contourList>("contours");
QTest::addColumn<branchList>("branches");
QTest::addColumn<QVector<ComplexVal>>("currents");
QTest::newRow("В цепи один контур") << c_list[0] << b_list1[0] << ccurr_list[0];
QTest::newRow("Через каждую ветвь протекает не более двух контурных токов") << c_list[1] << b_list1[1] << ccurr_list[1];
QTest::newRow("Цепь содержит ветви, через которые протекает более двух контурных токов")<< c_list[2] << b_list1[2] << ccurr_list[2];
QTest::newRow("Цепь содержит ветви, через которые протекают все контурные токи") << c_list[3] << b_list1[3] << ccurr_list[3];
QTest::newRow("Все контурные токи движутся по часовой стрелке") << c_list[4] << b_list1[4] << ccurr_list[4];
QTest::newRow("Все контура движутся против часовой стрелки") << c_list[5] << b_list1[5] << ccurr_list[5];
QTest::newRow("Все смежные контура однонаправленны") << c_list[6] << b_list1[6] << ccurr_list[6];
QTest::newRow("Величина сопротивления на всех ветвях одинаковая") << c_list[7] << b_list1[7] << ccurr_list[7];
}
void AppTest::test_currentCalculation()
{
QFETCH(contourList, contours);
QFETCH(branchList, in_branches);
QFETCH(branchList, out_branches);
QFETCH(QVector<ComplexVal>, currents);
currentCalculation(contours, currents, in_branches);
bool b = true;
QMapIterator<int, Branch> i1(in_branches);
QMapIterator<int, Branch> i2(out_branches);
while(i1.hasNext() && i2.hasNext())
{
i1.next();
i2.next();
double low = i1.value().getCurrent()-0.5;
double expect = i2.value().getCurrent();
double high = i1.value().getCurrent()+0.5;
//допустимая погрешность в ручных расчетах - 0.5
if(!(low < expect && expect < high))
b = false;
}
QVERIFY2(b, "Result checking failed");
}
void AppTest::test_currentCalculation_data()
{
QTest::addColumn<contourList>("contours");
QTest::addColumn<branchList>("in_branches");
QTest::addColumn<branchList>("out_branches");
QTest::addColumn<QVector<ComplexVal>>("currents");
QTest::newRow("В цепи один контур") << c_list[0] << b_list1[0] << b_list2[0] << ccurr_list[0];
QTest::newRow("Через каждую ветвь протекает не более двух контурных токов") << c_list[1] << b_list1[1] << b_list2[1] << ccurr_list[1];
QTest::newRow("Цепь содержит ветви, через которые протекает более двух контурных токов")<< c_list[2] << b_list1[2] << b_list2[2] << ccurr_list[2];
QTest::newRow("Цепь содержит ветви, через которые протекают все контурные токи") << c_list[3] << b_list1[3] << b_list2[3] << ccurr_list[3];
QTest::newRow("Все контурные токи движутся по часовой стрелке") << c_list[4] << b_list1[4] << b_list2[4] << ccurr_list[4];
QTest::newRow("Все контура движутся против часовой стрелки") << c_list[5] << b_list1[5] << b_list2[5] << ccurr_list[5];
QTest::newRow("Все смежные контура однонаправленны") << c_list[6]<< b_list1[6] << b_list2[6] << ccurr_list[6];
}
void AppTest::test_solveEquations()
{
QVector<ComplexVal> r;
QFETCH(QVector<QVector<ComplexVal>>, coef);
QFETCH(QVector<ComplexVal>, constnum);
QFETCH(QVector<ComplexVal>, res);
solveEquations(coef, constnum, r);
bool b = true;
for(int i = 0; i < r.count() && r.count() == res.count(); i++)
{
//допустимая погрешность в ручных расчетах - 0.5
if(!((r[i].real()-0.5 < res[i].real() || r[i].imag()-0.5 < res[i].imag()) && (res[i].real() < r[i].real()+0.5 || res[i].imag() < r[i].imag()+0.5)))
b = false;
}
QVERIFY2(compareVects(r, res) || b, "Result checking failed");
}
void AppTest::test_solveEquations_data()
{
QTest::addColumn<QVector<QVector<ComplexVal> >>("coef");
QTest::addColumn<QVector<ComplexVal>>("constnum");
QTest::addColumn<QVector<ComplexVal>>("res");
QVector<QVector<QVector<ComplexVal>>> coef(13);
QVector<QVector<ComplexVal>> constnum(13);
QVector<ComplexVal> r(4);
QVector<QVector<ComplexVal>> res(13);
for(int i = 1; i < 13; i++)
{
coef[i].resize(4);
for(int j = 0; j < 4; j++)
coef[i][j].resize(4);
}
coef[0].resize(1);
coef[0][0].resize(1);
coef[0][0][0] = ComplexVal(3.0, 0);
ComplexVal tmp = coef[0][0][0];
coef[1][0][0] = (ComplexVal(3, 0));
coef[1][0][1] = (ComplexVal(-1, 0));
coef[1][0][2] = (ComplexVal(6, 0));
coef[1][0][3] = (ComplexVal(7, 0));
coef[1][1][0] = (ComplexVal(-2, 0));
coef[1][1][1] = (ComplexVal(8, 0));
coef[1][1][2] = (ComplexVal(-5, 0));
coef[1][1][3] = (ComplexVal(10, 0));
coef[1][2][0] = (ComplexVal(13, 0));
coef[1][2][1] = (ComplexVal(16, 0));
coef[1][2][2] = (ComplexVal(0, 0));
coef[1][2][3] = (ComplexVal(1, 0));
coef[1][3][0] = (ComplexVal(23, 0));
coef[1][3][1] = (ComplexVal(3, 0));
coef[1][3][2] = (ComplexVal(-7, 0));
coef[1][3][3] = (ComplexVal(5, 0));
for(int i = 0; i < 4; i++)
{
coef[2][i].fill(ComplexVal(0, 0));
}
coef[3] = coef[1];
coef[2][1].fill(ComplexVal(0, 0));
coef[4] = coef[1];
coef[4][2] = coef[4][1];
coef[5] = coef[1];
for(int i = 0; i < 4; i++)
coef[5][i][2] =coef[5][i][1];
coef[6] = coef[1];
for(int i = 0; i < 4; i++)
coef[6][3][i] =coef[6][2][i] * ComplexVal(10, 0);
coef[7] = coef[1];
for(int i = 0; i < 4; i++)
coef[7][i][3] =coef[7][i][1]*ComplexVal(10, 0);
coef[8] = coef[1];
coef[8][1][0] = coef[8][2][0] = coef[8][2][1] = \
coef[8][3][0] = coef[8][3][1] = coef[8][3][2] = ComplexVal(0, 0);
coef[8][2][2] = ComplexVal(9, 0);
coef[9] = coef[2];
for(int i = 0; i < 4; i++)
coef[9][i][i] = 1;
coef[10] = coef[1];
coef[11] = coef[1];
coef[11][1][0] = coef[11][0][1];
coef[11][2][0] = coef[11][0][2];
coef[11][2][1] = coef[11][0][3];
coef[11][3][0] = coef[11][1][2];
coef[11][3][1] = coef[11][1][3];
coef[11][3][3] = coef[11][2][3];
coef[12][0][0] = ComplexVal(3, 5);
coef[12][0][1] = ComplexVal(-1, -7);
coef[12][0][2] = ComplexVal(6, -0.01);
coef[12][0][3] = ComplexVal(7, -1.5);
coef[12][1][0] = ComplexVal(-2, 4);
coef[12][1][1] = ComplexVal(8, 8);
coef[12][1][2] = ComplexVal(-5, 5);
coef[12][1][3] = ComplexVal(10, 1);
coef[12][2][0] = ComplexVal(13, -1);
coef[12][2][1] = ComplexVal(16, 2);
coef[12][2][2] = ComplexVal(0, -7);
coef[12][2][3] = ComplexVal(1, -1);
coef[12][3][0] = ComplexVal(23, 11);
coef[12][3][1] = ComplexVal(3, 0.2);
coef[12][3][2] = ComplexVal(-7, 17);
coef[12][3][3] = ComplexVal(5, 5);
constnum[0].append(ComplexVal(9, 0));
constnum[1].append(ComplexVal(15, 0));
constnum[1].append(ComplexVal(13, 0));
constnum[1].append(ComplexVal(-14, 0));
constnum[1].append(ComplexVal(2, 0));
constnum[2] = constnum[3] = constnum[4] = constnum[5] = constnum[6]= \
constnum[7] = constnum[8] = constnum[9] = constnum[11] = constnum[1];
constnum[10].fill(ComplexVal(0, 0), 4);
constnum[12].append(ComplexVal(15, 0));
constnum[12].append(ComplexVal(13, -16));
constnum[12].append(ComplexVal(-14, 0));
constnum[12].append(ComplexVal(2, 13));
res[0].append(ComplexVal(3, 0));
res[1].append(ComplexVal(-0.1981, 0));
res[1].append(ComplexVal(-0.8388 , 0));
res[1].append(ComplexVal(0.13, 0));
res[1].append(ComplexVal(1.9965, 0));
res[8].append(ComplexVal(7.3083, 0));
res[8].append(ComplexVal(0.1250 , 0));
res[8].append(ComplexVal(-1.6000, 0));
res[8].append(ComplexVal(0.4, 0));
res[9].append(ComplexVal(15, 0));
res[9].append(ComplexVal(13, 0));
res[9].append(ComplexVal(-14, 0));
res[9].append(ComplexVal(2, 0));
res[10].append(ComplexVal(0, 0));
res[10].append(ComplexVal(0 , 0));
res[10].append(ComplexVal(0, 0));
res[10].append(ComplexVal(0, 0));
res[11].append(ComplexVal( -2.0181, 0));
res[11].append(ComplexVal( 0.6773 , 0));
res[11].append(ComplexVal( 1.8776, 0));
res[11].append(ComplexVal( 1.4951, 0));
res[12].append(ComplexVal(0.04, 0.59));
res[12].append(ComplexVal(-1.08 , -0.4));
res[12].append(ComplexVal(0.22, 0.08));
res[12].append(ComplexVal(2.44, 0.92));
QTest::newRow("Система состоит из одного уравнения с одной неизвестной переменной") << coef[0] << constnum[0] << res[0];
QTest::newRow("Система содержит несколько уравнений") << coef[1] << constnum[1] << res[1];
QTest::newRow("Матрица коэффициентов нулевая") << coef[2] << constnum[2] << res[2];
QTest::newRow("Матрица коэффициентов содержит нулевую строку") << coef[3] << constnum[3] << res[3];
QTest::newRow("Две строки матрицы коэффициентов равны") << coef[4] << constnum[4] << res[4];
QTest::newRow("Два столбца матрицы коэффициентов равны") << coef[5] << constnum[5] << res[5];
QTest::newRow("Две строки матрицы коэффициентов пропорциональны друг другу") << coef[6] << constnum[6] << res[6];
QTest::newRow("Два столбца матрицы коэффициентов пропорциональны друг другу") << coef[7] << constnum[7] << res[7];
QTest::newRow("Матрица коэффициентов имеет треугольный вид") << coef[8] << constnum[8] << res[8];
QTest::newRow("Матрица коэффициентов единичная") << coef[9] << constnum[9] << res[9];
QTest::newRow("Матрицастолбец нулевая") << coef[10] << constnum[10] << res[10];
QTest::newRow("Элементы матрицы коэффициентов равны относительно главной диагонали") << coef[11] << constnum[11] << res[11];
QTest::newRow("Числа – комплексные (мнимая часть отлична от нуля)") << coef[12] << constnum[12] << res[12];
}
void AppTest::test_findIndependentContours()
{
contourList c;
QFETCH(Graph, graph);
QFETCH(branchList, branches);
QFETCH(contourList, contours);
findIndependentContours(graph, branches, c);
for(int i =0; i < c.count() && c.count()==contours.count(); i++)
{
QMapIterator<int, int> j1(c[i]);
QMapIterator<int, int> j2(contours[i]);
}
QVERIFY2(compareVects(c, contours), "Result checking failed");
}
void AppTest::test_findIndependentContours_data()
{
QTest::addColumn<Graph>("graph");
QTest::addColumn<branchList>("branches");
QTest::addColumn<contourList>("contours");
Graph g;
branchList branches;
contourList contours;
QMap<int, int> contour;
Branch b;
g.insertEdge("b", 1, "a");
g.insertEdge("a", 2, "b");
g.insertEdge("b", 3, "a");
g.insertEdge("a", 4, "b");
b.setNodes("b", "a");
branches.insert(1, b);
b.setNodes("a", "b");
branches.insert(2, b);
b.setNodes("b", "a");
branches.insert(3, b);
b.setNodes("a", "b");
branches.insert(4, b);
contour.insert(1, 1);
contour.insert(2, 1);
contours.append(contour);
contour.clear();
contour.insert(1, -1);
contour.insert(3, 1);
contours.append(contour);
contour.clear();
contour.insert(1, 1);
contour.insert(4, 1);
contours.append(contour);
contour.clear();
QTest::newRow("Проводники соединены параллельно") << g << branches << contours;
g.clear();
branches.clear();
contours.clear();
g.insertEdge("", 1, "");
b.setNodes("", "");
branches.insert(1, b);
contour.insert(1, 1);
contours.append(contour);
contour.clear();
QTest::newRow("Все элементы соединены последовательно") << g << branches << contours;
g.clear();
branches.clear();
contours.clear();
g.insertEdge("b", 1, "a");
g.insertEdge("a", 2, "d");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "d");
g.insertEdge("b", 5, "c");
g.insertEdge("c", 6, "d");
b.setNodes("b", "a");
branches.insert(1, b);
b.setNodes("a", "d");
branches.insert(2, b);
b.setNodes("a", "d");
branches.insert(3, b);
b.setNodes("b", "d");
branches.insert(4, b);
b.setNodes("b", "c");
branches.insert(5, b);
b.setNodes("c", "d");
branches.insert(6, b);
contour.insert(2, -1);
contour.insert(3, 1);
contours.append(contour);
contour.clear();
contour.insert(1, -1);
contour.insert(2, -1);
contour.insert(4, 1);
contours.append(contour);
contour.clear();
contour.insert(1, -1);
contour.insert(2, -1);
contour.insert(5, 1);
contour.insert(6, 1);
contours.append(contour);
contour.clear();
QTest::newRow("Граф, описывающий цепь, содержит кратные ребра")
<< g << branches << contours;
g.clear();
branches.clear();
contours.clear();
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "h");
g.insertEdge("b", 5, "g");
g.insertEdge("c", 6, "f");
g.insertEdge("c", 7, "e");
g.insertEdge("d", 8, "e");
g.insertEdge("d", 9, "f");
g.insertEdge("e", 10, "g");
g.insertEdge("g", 11, "f");
g.insertEdge("g", 12, "h");
g.insertEdge("g", 13, "d");
g.insertEdge("e", 14, "h");
g.insertEdge("d", 15, "c");
g.insertEdge("h", 16, "d");
b.setNodes("a", "b");
branches.insert(1, b);
b.setNodes("a", "c");
branches.insert(2, b);
b.setNodes("a", "d");
branches.insert(3, b);
b.setNodes("b", "h");
branches.insert(4, b);
b.setNodes("b", "g");
branches.insert(5, b);
b.setNodes("c", "f");
branches.insert(6, b);
b.setNodes("c", "e");
branches.insert(7, b);
b.setNodes("d", "e");
branches.insert(8, b);
b.setNodes("d", "f");
branches.insert(9, b);
b.setNodes("e", "g");
branches.insert(10, b);
b.setNodes("g", "f");
branches.insert(11, b);
b.setNodes("g", "h");
branches.insert(12, b);
b.setNodes("g", "d");
branches.insert(13, b);
b.setNodes("e", "h");
branches.insert(14, b);
b.setNodes("d", "c");
branches.insert(15, b);
b.setNodes("h", "d");
branches.insert(16, b);
contour.insert(2, -1);
contour.insert(7, -1);
contour.insert(8, 1);
contour.insert(3, 1);
contours.append(contour);
contour.clear();
contour.insert(2, -1);
contour.insert(3, 1);
contour.insert(9, 1);
contour.insert(6, -1);
contours.append(contour);
contour.clear();
contour.insert(1, -1);
contour.insert(2, 1);
contour.insert(7, 1);
contour.insert(10, 1);
contour.insert(5, -1);
contours.append(contour);
contour.clear();
contour.insert(1, 1);
contour.insert(5, 1);
contour.insert(11, 1);
contour.insert(6, -1);
contour.insert(2, -1);
contours.append(contour);
contour.clear();
contour.insert(4, -1);
contour.insert(5, 1);
contour.insert(12, 1);
contours.append(contour);
contour.clear();
contour.insert(1, 1);
contour.insert(5, 1);
contour.insert(13, 1);
contour.insert(3, -1);
contours.append(contour);
contour.clear();
contour.insert(1, -1);
contour.insert(2, 1);
contour.insert(7, 1);
contour.insert(14, 1);
contour.insert(4, -1);
contours.append(contour);
contour.clear();
contour.insert(2, -1);
contour.insert(3, 1);
contour.insert(15, 1);
contours.append(contour);
contour.clear();
contour.insert(1, 1);
contour.insert(4, 1);
contour.insert(16, 1);
contour.insert(3, -1);
contours.append(contour);
contour.clear();
QTest::newRow("Большое количество контуров")
<< g << branches << contours;
g.clear();
branches.clear();
contours.clear();
g.insertEdge("b", 1, "a");
g.insertEdge("a", 2, "d");
g.insertEdge("a", 3, "d");
g.insertEdge("b", 4, "d");
g.insertEdge("b", 5, "c");
g.insertEdge("c", 6, "d");
g.insertEdge("c", 7, "c");
b.setNodes("b", "a");
branches.insert(1, b);
b.setNodes("a", "d");
branches.insert(2, b);
b.setNodes("a", "d");
branches.insert(3, b);
b.setNodes("b", "d");
branches.insert(4, b);
b.setNodes("b", "c");
branches.insert(5, b);
b.setNodes("c", "d");
branches.insert(6, b);
b.setNodes("c", "c");
branches.insert(7, b);
contour.insert(2, -1);
contour.insert(3, 1);
contours.append(contour);
contour.clear();
contour.insert(1, -1);
contour.insert(4, 1);
contour.insert(2, -1);
contours.append(contour);
contour.clear();
contour.insert(1, -1);
contour.insert(2, -1);
contour.insert(6, 1);
contour.insert(5, 1);
contours.append(contour);
contour.clear();
contour.insert(7, 1);
contours.append(contour);
contour.clear();
QTest::newRow("Граф, описывающий цепь, содержит кратные ребра и петли")
<< g << branches << contours;
g.clear();
branches.clear();
contours.clear();
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("d", 3, "a");
g.insertEdge("b", 4, "c");
g.insertEdge("b", 5, "d");
g.insertEdge("c", 6, "d");
b.setNodes("a", "b");
branches.insert(1, b);
b.setNodes("a", "c");
branches.insert(2, b);
b.setNodes("d", "a");
branches.insert(3, b);
b.setNodes("b", "c");
branches.insert(4, b);
b.setNodes("b", "d");
branches.insert(5, b);
b.setNodes("c", "d");
branches.insert(6, b);
contour.insert(1, 1);
contour.insert(5, 1);
contour.insert(3, 1);
contours.append(contour);
contour.clear();
contour.insert(1, 1);
contour.insert(4, 1);
contour.insert(2, -1);
contours.append(contour);
contour.clear();
contour.insert(2, 1);
contour.insert(6, 1);
contour.insert(3, 1);
contours.append(contour);
contour.clear();
QTest::newRow("Граф, описывающий цепь, является полным") << g << branches << contours;
g.clear();
branches.clear();
contours.clear();
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("d", 3, "a");
g.insertEdge("c", 4, "d");
g.insertEdge("b", 5, "d");
b.setNodes("a", "b");
branches.insert(1, b);
b.setNodes("a", "c");
branches.insert(2, b);
b.setNodes("d", "a");
branches.insert(3, b);
b.setNodes("c", "d");
branches.insert(4, b);
b.setNodes("b", "d");
branches.insert(5, b);
contour.insert(1, 1);
contour.insert(5, 1);
contour.insert(3, 1);
contours.append(contour);
contour.clear();
contour.insert(2, 1);
contour.insert(4, 1);
contour.insert(3, 1);
contours.append(contour);
contour.clear();
QTest::newRow("Граф простой") << g << branches << contours;
g.clear();
branches.clear();
contours.clear();
g.insertEdge("a", 1, "b");
g.insertEdge("a", 2, "c");
g.insertEdge("d", 3, "a");
g.insertEdge("b", 4, "c");
g.insertEdge("b", 5, "d");
g.insertEdge("c", 6, "d");
g.insertEdge("a", 7, "b");
g.insertEdge("c", 8, "c");
b.setNodes("a", "b");
branches.insert(1, b);
b.setNodes("a", "c");
branches.insert(2, b);
b.setNodes("d", "a");
branches.insert(3, b);
b.setNodes("b", "c");
branches.insert(4, b);
b.setNodes("b", "d");
branches.insert(5, b);
b.setNodes("c", "d");
branches.insert(6, b);
b.setNodes("a", "b");
branches.insert(7, b);
b.setNodes("c", "c");
branches.insert(8, b);
contour.insert(1, 1);
contour.insert(4, 1);
contour.insert(2, -1);
contours.append(contour);
contour.clear();
contour.insert(1, 1);
contour.insert(5, 1);
contour.insert(3, 1);
contours.append(contour);
contour.clear();
contour.insert(2, 1);
contour.insert(6, 1);
contour.insert(3, 1);
contours.append(contour);
contour.clear();
contour.insert(1, -1);
contour.insert(7, 1);
contours.append(contour);
contour.clear();
contour.insert(8, 1);
contours.append(contour);
contour.clear();
QTest::newRow("Полный граф с кратными ребрами и петлями") << g << branches << contours;
g.clear();
branches.clear();
contours.clear();
}
#include "tst_apptest.moc"
//Точка входа для тестов из main
int runTests(int argc, char *argv[]) {
AppTest t;
return QTest::qExec(&t, argc, argv);
}
#define TEST_MODE
#include "../alternating_current/main.cpp"
|
410a5fa73e5256832642e5bd77dc9065cf1aa377
|
23ce56797f9772b4a673ff66981a940771659c3a
|
/Tek sayıları bulma.cpp
|
6a8e7c2b82796ad9a2d39a53de856dec18649f2b
|
[] |
no_license
|
Burakkarakoyun/C-works
|
aa440c69a0da3461e6df48954d158379e68c5f79
|
a96e55ee30b00fa21308c904ca7561481b188a2f
|
refs/heads/master
| 2021-06-15T19:59:11.925021
| 2021-02-28T00:53:21
| 2021-02-28T00:53:21
| 152,913,534
| 0
| 0
| null | null | null | null |
ISO-8859-9
|
C++
| false
| false
| 391
|
cpp
|
Tek sayıları bulma.cpp
|
//Girilen sayıya kadar olan tek sayıları bulma
//Burak KARAKOYUN
#include<stdio.h>
#include<locale.h>
#include<conio.h>
int main(){
setlocale(LC_ALL,"Turkish");
int sayi;
printf("Girilen Sayıya Kadar Olan Tek Sayıları Bulan Program\nLütfen Sayı giriniz...\n");
scanf("%d",&sayi);
for(int i=1;i<sayi;i++){
if(i%2==1){
printf("%d\n",i);
}
}
getch();
}
|
a9f806fcccdff900b259a48bfbb298d3ce8bbfae
|
04896c0dfb5e7d25c60a31097d0ea63b59d31811
|
/src/materialsystem/shaderapiempty/ShaderAPIEmpty.h
|
610adf902742b0119950e3cfcea6b3ac3cd3b14c
|
[] |
no_license
|
Petercov/Quiver-Engine
|
f2e820c21c89682f284a6cc5718ed59c6023d525
|
05605a28072682a56ea099dba6b6043da38fa84c
|
refs/heads/master
| 2023-08-15T06:07:40.251252
| 2021-10-19T09:23:05
| 2021-10-19T09:23:05
| 373,350,248
| 3
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,221
|
h
|
ShaderAPIEmpty.h
|
//===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose: Empty template shaderapi
// Replace this when creating a new shaderapi
//
// $NoKeywords: $
//
//===========================================================================//
#pragma once
#include "Mesh.h"
#include "ShaderShadow.h"
#include "ShaderDevice.h"
#include "DeviceManager.h"
#include "ShaderAPI.h"
//-----------------------------------------------------------------------------
// The empty mesh
//-----------------------------------------------------------------------------
class CEmptyMesh : public CMesh {};
//-----------------------------------------------------------------------------
// The empty shader shadow
//-----------------------------------------------------------------------------
class CShaderShadowEmpty : public CShaderShadow {};
//-----------------------------------------------------------------------------
// The DX8 implementation of the shader device
//-----------------------------------------------------------------------------
class CShaderDeviceEmpty : public CShaderDevice {};
static CShaderDeviceEmpty s_ShaderDeviceEmpty;
// FIXME: Remove; it's for backward compat with the materialsystem only for now
EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CShaderDeviceEmpty, IShaderDevice,
SHADER_DEVICE_INTERFACE_VERSION, s_ShaderDeviceEmpty )
//-----------------------------------------------------------------------------
// The DX8 implementation of the shader device
//-----------------------------------------------------------------------------
class CShaderDeviceMgrEmpty : public CShaderDeviceManager {};
static CShaderDeviceMgrEmpty s_ShaderDeviceMgrEmpty;
EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CShaderDeviceMgrEmpty, IShaderDeviceMgr,
SHADER_DEVICE_MGR_INTERFACE_VERSION, s_ShaderDeviceMgrEmpty )
//-----------------------------------------------------------------------------
// The DX8 implementation of the shader API
//-----------------------------------------------------------------------------
class CShaderAPIEmpty : public CShaderAPI {};
//-----------------------------------------------------------------------------
// Class Factory
//-----------------------------------------------------------------------------
static CShaderAPI g_ShaderAPIEmpty;
static CShaderShadowEmpty g_ShaderShadow;
// FIXME: Remove; it's for backward compat with the materialsystem only for now
EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CShaderAPIEmpty, IShaderAPI,
SHADERAPI_INTERFACE_VERSION, g_ShaderAPIEmpty )
EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CShaderShadowEmpty, IShaderShadow,
SHADERSHADOW_INTERFACE_VERSION, g_ShaderShadow )
EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CShaderAPIEmpty, IMaterialSystemHardwareConfig,
MATERIALSYSTEM_HARDWARECONFIG_INTERFACE_VERSION, g_ShaderAPIEmpty )
EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CShaderAPIEmpty, IDebugTextureInfo,
DEBUG_TEXTURE_INFO_VERSION, g_ShaderAPIEmpty )
//-----------------------------------------------------------------------------
// The main GL Shader util interface
//-----------------------------------------------------------------------------
extern IShaderUtil* g_pShaderUtil;
|
0b578f2c9387b0634a6056535743bbc9e3c39480
|
167338fa7c9b268067f1233d1bbe7db881ab1702
|
/src/funkcjeMat.cpp
|
fc52e2a6055917538d456c77b5520d3a460f6da9
|
[] |
no_license
|
Mefisto756/ProjektMacierze
|
c2f282f0976517f1bccdea8420d4782423f415ed
|
7cc5766d76a3d14ef4e66c0019c2b92733cfcf17
|
refs/heads/master
| 2021-09-01T00:01:23.503429
| 2017-12-23T16:33:42
| 2017-12-23T16:33:42
| 114,801,376
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,227
|
cpp
|
funkcjeMat.cpp
|
#include "../headers/header.hpp"
void dodawanieMacierzy(macierz &A, macierz &B, macierz &D)
{
for (int i = 0; i < M; i++)
{
for (int j = 0; j < M; j++)
{
D.T[i][j]=A.T[i][j]+B.T[i][j];
}
}
}
void roznicaMacierzy(macierz &A, macierz &B, macierz &D)
{
for (int i = 0; i < M; i++)
{
for (int j = 0; j < M; j++)
{
D.T[i][j]=A.T[i][j]-B.T[i][j];
}
}
}
int mnozenieWierszKolumna(macierz &A, macierz &B, int wiersz, int kolumna)
{
int suma = 0;
for (int i = 0; i < M;)
{
for (int j = 0; j < M; ++j, i++)
{
suma += A.T[wiersz][j] * B.T[i][kolumna];
}
}
return suma;
}
void mnozenieMacierzyXmacierz(macierz &A, macierz &B, macierz &D)
{
for (int i = 0; i < M; ++i)
{
for (int j = 0; j < M; ++j)
{
D.T[i][j] = mnozenieWierszKolumna(A,B, i, j);
}
}
}
double wyznacznikMacierzy(int rozmiar, double mat[M][M])
{
double det = 0;
int c, i, j, podi, podj;
double podMat[M][M];
if (rozmiar == 1)
{
return(mat[0][0]);
}
else
{
for(c = 0; c < rozmiar; c++)
{
podi = 0;
for(i = 1; i < rozmiar; i++)
{
podj = 0;
for(j = 0; j < rozmiar; j++)
{
if (j == c)
{
continue;
}
podMat[podi][podj] = mat[i][j];
podj++;
}
podi++;
}
det = det + (pow(-1 ,c) * mat[0][c] * wyznacznikMacierzy(rozmiar - 1 ,podMat));
}
}
return det;
}
void mnozenieMacierzyXskalar(macierz &A, double skalar, int rozmiar)
{
for (int i = 0; i < M; i++) {
for (int j = 0; j < M; j++) {
A.T[i][j] *=skalar;
}
}
}
void transponowaniMacierzy(macierz &A)
{
double tmp = 0;
for (int i = 0; i < M; i++)
{
for (int j = 0; j < M; j++)
{
if (j>i) {
tmp = A.T[i][j];
A.T[i][j]=A.T[j][i];
A.T[j][i]=tmp;
}
}
}
}
void macierzDopelnienAlg(macierz &A, macierz &F, int rozmiar)
{
int podM = 0;
int podN = 0;
double podMacierz[M][M];
int h=0,g=0;
for (int p = 0; p < M; p++) //wyciete wiersze
{
for (int i = 0; i < M; i++) //wyciete kolumny
{
for (int j = 0; j < M; j++)
{
for (int k = 0; k < M; k++)
{
if (j==p || k == i)
{
continue;
}
else
{
podMacierz[h][g] = A.T[j][k];
if (g<M-2)
{
g++;
}
else
{
g=0;
h++;
}
}
}
}
F.T[p][i] = pow(-1,p+i) * wyznacznikMacierzy(M-1, podMacierz);
g=0;
h=0;
}
}
}
void macierzOdwrotna(macierz &A, macierz &D)
{
double wyznacznik = wyznacznikMacierzy(M,A.T);
double skalar = 1/wyznacznik;
macierzDopelnienAlg(A,D, M);
transponowaniMacierzy(D);
mnozenieMacierzyXskalar(D, skalar, M);
}
void rozwiazywanieRownania(macierz &A, macierz &B, macierz &C, macierz &D, macierz &E, macierz &F)
{
//rozwiazywanie rownana AX + B = C
//X = A^-1*(C-B)
roznicaMacierzy(C,B,D); //D wynik roznicy C-B
macierzOdwrotna(A,E); //A^-1 = E
mnozenieMacierzyXmacierz(E,D,F); //mnozenie roznicy razy E z lewej strony, F=X
drukujMacierz(F);
}
|
87de64f560820fe26b4b86505f0129b2a6f9cd21
|
4bcf960fa5cc52d998d83c3550f7bbc183d58898
|
/turnin/party.cc
|
adbf9dff0816b8741527477ad110e14f47d0561d
|
[] |
no_license
|
HarmonEpsilon/Restaurant
|
0fc650cc87576f2697e16a0f7bb78cc5b87dbade
|
a52c6cf6a19a3da70cb2c6b3cb70f91cfd9f561e
|
refs/heads/master
| 2021-01-13T17:13:08.135387
| 2017-02-24T04:10:02
| 2017-02-24T04:10:02
| 81,756,904
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 777
|
cc
|
party.cc
|
/**
* @file party.cc
*
* @brief
* Functions for a party of diners in a restaurant, using party.h
*
* @author Landon Mote
* @date 2/12/2017
*/
#include <string>
#include "doublylinkedlist.h"
#include "party.h"
/**
* @brief Party default constructor
*/
Party::Party() {
reservationName = nullptr;
numDiners = 0;
timeRequired = 0;
}
/**
* @brief Party constructor with items
*/
Party::Party(const string& reservationName, int numDiners, int timeRequired) {
this->reservationName = new string(reservationName);
this->numDiners = numDiners;
this->timeRequired = timeRequired;
}
/**
* @brief Party deconstructor
*/
Party::~Party() {
delete reservationName;
reservationName = nullptr;
numDiners = 0;
timeRequired = 0;
}
|
4ebf59cf840f74f5054452193cd17a9fb12df4c4
|
8efd357ae78ab06c46834fac38ae67ddeca80f6e
|
/Sort Colors/Solution2.cpp
|
5e99b8649b71bc5fa6c58a3f1abc3040f1a10334
|
[] |
no_license
|
shipengAlan/leetcode
|
f118fa3e3553d4421e4aa8b011a91a6a869946db
|
b719043ae379d1089c2452791f10940ea11a7a1f
|
refs/heads/master
| 2020-12-19T01:27:08.159496
| 2016-08-12T23:09:03
| 2016-08-12T23:09:03
| 37,632,948
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,337
|
cpp
|
Solution2.cpp
|
#include<iostream>
#include<vector>
using namespace std;
class Solution {
public:
void sortColors(vector<int>& nums) {
int num0 = 0, num1 = 0, num2 = 0;
int label0 = 0;
int label1 = 0;
int label2 = 0;
for(int i=0;i<nums.size();i++){
if(nums[i]==0){
num0++;
nums[label0] = 0;
label0++;
if(num1>0){
nums[label1] = 1;
}
if(num2>0){
nums[label2] = 2;
}
label1++;
label2++;
}
else if(nums[i]==1){
num1++;
nums[label1] = 1;
label1++;
if(num2>0){
nums[label2] = 2;
}
label2++;
}
else if(nums[i]==2){
num2++;
nums[label2] = 2;
label2++;
}
for(int j=0;j<nums.size();j++){
cout<<nums[j]<<" ";
}
cout<<endl;
}
}
};
int main(){
Solution s;
int a[5] = {0,2,1,2,0};
vector<int> input(a, a+5);
s.sortColors(input);
for(int i=0;i<input.size();i++){
cout<<input[i]<<" ";
}
cout<<endl;
}
|
abeae34f3e5b981f2400e08a64467147be2a145c
|
2fd6d1333b73f21aa448e399ee9cc5f2140903fe
|
/VivienneVMM/capture_execution_context.cpp
|
685f2f7a10ebf8d44b5687c65b4a9c20c188fdb8
|
[
"MIT"
] |
permissive
|
killvxk/VivienneVMM
|
e63723f4fa58d50774abe28860ccf0805cf6f561
|
211742f684b26468b884b9da3ce25ca94ffd6dea
|
refs/heads/master
| 2020-03-24T16:04:41.933824
| 2019-12-02T03:27:34
| 2019-12-02T03:27:34
| 142,812,050
| 2
| 0
|
MIT
| 2019-12-02T03:27:36
| 2018-07-30T01:57:02
|
C++
|
UTF-8
|
C++
| false
| false
| 31,674
|
cpp
|
capture_execution_context.cpp
|
/*++
Copyright (c) 2019 changeofpace. All rights reserved.
Use of this source code is governed by the MIT license. See the 'LICENSE' file
for more information.
Module Name:
capture_execution_context.cpp
Abstract:
This module implements the capture execution context callback.
See CEC_MANAGER_STATE for implementation details.
Author:
changeofpace
Environment:
Kernel mode only.
--*/
#include "capture_execution_context.h"
#include <intrin.h>
#include "breakpoint_manager.h"
#include "config.h"
#include "debug.h"
#include "ioctl_validation.h"
#include "log.h"
#include "register_util.h"
#include "..\common\time_util.h"
#include "HyperPlatform\HyperPlatform\log.h"
#include "HyperPlatform\HyperPlatform\util.h"
#include "HyperPlatform\HyperPlatform\vmm.h"
//=============================================================================
// Constants and Macros
//=============================================================================
#define MODULE_TITLE "Capture Execution Context"
#define CEC_TAG 'TceC'
#define CEC_MAX_DURATION_MS (SECONDS_TO_MILLISECONDS(10))
#ifdef CFG_VERBOSE_CAPTUREEXECUTIONCONTEXT
#define CEC_VERBOSE_PRINT INF_PRINT
#else
#define CEC_VERBOSE_PRINT(Format, ...)
#endif
//=============================================================================
// Private Types
//=============================================================================
//
// All callback context types must be allocated from the nonpaged pool because
// they will be modified inside VM exit handlers. The 'Values' buffers are
// implicitly allocated from the nonpaged pool because they are part of
// METHOD_BUFFERED requests.
//
typedef struct _CEC_REGISTER_CALLBACK_CONTEXT {
X64_REGISTER Register;
KSPIN_LOCK Lock;
_Write_guarded_by_(Lock) ULONG HitCount;
_Guarded_by_(Lock) PCEC_REGISTER_VALUES ValuesCtx;
} CEC_REGISTER_CALLBACK_CONTEXT, *PCEC_REGISTER_CALLBACK_CONTEXT;
typedef struct _CEC_MEMORY_CALLBACK_CONTEXT {
CEC_MEMORY_DESCRIPTION MemoryDescription;
KSPIN_LOCK Lock;
_Write_guarded_by_(Lock) CEC_MEMORY_STATISTICS Statistics;
_Guarded_by_(Lock) PCEC_MEMORY_VALUES ValuesCtx;
} CEC_MEMORY_CALLBACK_CONTEXT, *PCEC_MEMORY_CALLBACK_CONTEXT;
//
// The capture execution context callback stores unique values for a target
// register for the duration of its corresponding breakpoint. This callback
// allows the user to sample the register context for an instruction (or data
// access) without hooking the target memory via code patching.
//
typedef struct _CEC_MANAGER_STATE {
//
// We use one resource for each debug address register to ensure that only
// one CEC request is using a debug address register at any given time.
//
// NOTE These resources do not prevent users from installing a breakpoint,
// via the breakpoint manager interface, in a debug address register which
// is being used to complete a CEC request.
//
POINTER_ALIGNMENT ERESOURCE DarResources[DAR_COUNT];
} CEC_MANAGER_STATE, *PCEC_MANAGER_STATE;
//=============================================================================
// Module Globals
//=============================================================================
CEC_MANAGER_STATE g_CecManager = {};
//=============================================================================
// Private Prototypes
//=============================================================================
_Check_return_
static
NTSTATUS
CeciInitializeInterval(
_In_ ULONG DurationInMilliseconds,
_Out_ PLARGE_INTEGER pInterval
);
_Check_return_
static
NTSTATUS
CeciInitializeRegisterCallbackContext(
_Inout_ PCEC_REGISTER_CALLBACK_CONTEXT pCallbackCtx,
_In_ PCEC_REGISTER_VALUES pValuesCtx,
_In_ X64_REGISTER Register
);
static
VOID
CeciInitializeRegisterValuesContext(
_Inout_ PCEC_REGISTER_VALUES pValuesCtx,
_In_ ULONG cbValuesCtx
);
_IRQL_requires_min_(HIGH_LEVEL)
_Check_return_
static
NTSTATUS
CeciVmxRegisterBreakpointCallback(
_In_ ULONG OwnerIndex,
_Inout_ GpRegisters* pGuestRegisters,
_Inout_ FlagRegister* pGuestFlags,
_Inout_ PULONG_PTR pGuestIp,
_Inout_ PVOID pCallbackCtx
);
_Check_return_
static
NTSTATUS
CeciInitializeMemoryCallbackContext(
_Inout_ PCEC_MEMORY_CALLBACK_CONTEXT pCallbackCtx,
_In_ PCEC_MEMORY_VALUES pValuesCtx,
_In_ PCEC_MEMORY_DESCRIPTION pMemoryDescription
);
static
VOID
CeciInitializeMemoryValuesContext(
_Inout_ PCEC_MEMORY_VALUES pValuesCtx,
_In_ ULONG cbValuesCtx,
_In_ MEMORY_DATA_TYPE MemoryDataType
);
_IRQL_requires_min_(HIGH_LEVEL)
_Check_return_
static
NTSTATUS
CeciVmxMemoryBreakpointCallback(
_In_ ULONG OwnerIndex,
_Inout_ GpRegisters* pGuestRegisters,
_Inout_ FlagRegister* pGuestFlags,
_Inout_ PULONG_PTR pGuestIp,
_Inout_ PVOID pCallbackCtx
);
//=============================================================================
// Meta Interface
//=============================================================================
_Use_decl_annotations_
NTSTATUS
CecDriverEntry()
{
BOOLEAN fResourceInitialized[ARRAYSIZE(g_CecManager.DarResources)] = {};
ULONG i = 0;
NTSTATUS ntstatus = STATUS_SUCCESS;
INF_PRINT("Loading %s.", MODULE_TITLE);
for (i = 0; i < ARRAYSIZE(g_CecManager.DarResources); i++)
{
ntstatus = ExInitializeResourceLite(&g_CecManager.DarResources[i]);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("ExInitializeResourceLite failed: 0x%X", ntstatus);
goto exit;
}
//
fResourceInitialized[i] = TRUE;
}
INF_PRINT("%s loaded.", MODULE_TITLE);
exit:
if (!NT_SUCCESS(ntstatus))
{
for (i = 0; i < ARRAYSIZE(fResourceInitialized); i++)
{
if (fResourceInitialized[i])
{
VERIFY(ExDeleteResourceLite(&g_CecManager.DarResources[i]));
}
}
}
return ntstatus;
}
VOID
CecDriverUnload()
{
ULONG i = 0;
INF_PRINT("Unloading %s.", MODULE_TITLE);
for (i = 0; i < ARRAYSIZE(g_CecManager.DarResources); i++)
{
VERIFY(ExDeleteResourceLite(&g_CecManager.DarResources[i]));
}
INF_PRINT("%s unloaded.", MODULE_TITLE);
}
//=============================================================================
// Public Interface
//=============================================================================
//
// CecCaptureRegisterValues
//
// Install a hardware breakpoint on all processors which, when triggered, will
// examine the contents of the target register and record all unique values
// to the output buffer.
//
// NOTE This is a synchronous call which will block for the specified
// duration. The duration is clamped to CEC_MAX_DURATION_MS to prevent
// timeouts caused by input error.
//
_Use_decl_annotations_
NTSTATUS
CecCaptureRegisterValues(
ULONG_PTR ProcessId,
ULONG Index,
ULONG_PTR Address,
HWBP_TYPE Type,
HWBP_SIZE Size,
X64_REGISTER Register,
ULONG DurationInMilliseconds,
PCEC_REGISTER_VALUES pValuesCtx,
ULONG cbValuesCtx
)
{
HARDWARE_BREAKPOINT Breakpoint = {};
LARGE_INTEGER DelayInterval = {};
PCEC_REGISTER_CALLBACK_CONTEXT pCallbackCtx = {};
BOOLEAN HasResource = FALSE;
NTSTATUS ntstatus = STATUS_SUCCESS;
//
// Validate in parameters.
//
ntstatus = BpmInitializeBreakpoint(
ProcessId,
Index,
Address,
Type,
Size,
&Breakpoint);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("BpmInitializeBreakpoint failed: 0x%X", ntstatus);
goto exit;
}
//
// The debug register index should have been validated by the breakpoint
// constructor, but we perform internal validation because the index
// determines which resource we acquire.
//
ntstatus = IvValidateDebugRegisterIndex(Index);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("IvValidateDebugRegisterIndex failed: 0x%X", ntstatus);
goto exit;
}
ntstatus = IvValidateGeneralPurposeRegister(Register);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("IvValidateGeneralPurposeRegister failed: 0x%X", ntstatus);
goto exit;
}
//
// Convert the duration to an NT interval.
//
ntstatus = CeciInitializeInterval(DurationInMilliseconds, &DelayInterval);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("CeciInitializeInterval failed: 0x%X", ntstatus);
goto exit;
}
pCallbackCtx = (PCEC_REGISTER_CALLBACK_CONTEXT)ExAllocatePoolWithTag(
NonPagedPool,
sizeof(*pCallbackCtx),
CEC_TAG);
if (!pCallbackCtx)
{
ERR_PRINT("Out of memory.");
ntstatus = STATUS_NO_MEMORY;
goto exit;
}
//
// Initialize contexts.
//
ntstatus = CeciInitializeRegisterCallbackContext(
pCallbackCtx,
pValuesCtx,
Register);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT(
"CeciInitializeRegisterCallbackContext failed: 0x%X",
ntstatus);
goto exit;
}
CeciInitializeRegisterValuesContext(pValuesCtx, cbValuesCtx);
CEC_VERBOSE_PRINT(
"CEC: Register request: dr%u, pid=0x%IX, addr=0x%IX, bptype=%c,"
" bpsize=%c, reg=%s, time=%u",
Breakpoint.Index,
Breakpoint.ProcessId,
Breakpoint.Address,
HwBpTypeToChar(Breakpoint.Type),
HwBpSizeToChar(Breakpoint.Size),
GpRegToString(pCallbackCtx->Register),
DurationInMilliseconds);
//
// Acquire the resource for the target debug address register.
//
ExEnterCriticalRegionAndAcquireResourceExclusive(
&g_CecManager.DarResources[Index]);
HasResource = TRUE;
//
// Install the hardware breakpoint on all processors.
//
ntstatus = BpmSetHardwareBreakpoint(
ProcessId,
Index,
Address,
Type,
Size,
CeciVmxRegisterBreakpointCallback,
pCallbackCtx);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("BpmSetHardwareBreakpoint failed: 0x%X (CECR)", ntstatus);
goto exit;
}
//
// Allow the breakpoint to be active for the desired duration.
//
// NOTE We do not fail the request if the timer expires.
//
ntstatus = KeDelayExecutionThread(KernelMode, FALSE, &DelayInterval);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT(
"KeDelayExecutionThread returned unexpected status: 0x%X (CECR)",
ntstatus);
}
//
// Clear the breakpoint.
//
ntstatus = BpmClearHardwareBreakpoint(Index);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("BpmClearHardwareBreakpoint failed: 0x%X", ntstatus);
goto exit;
}
CEC_VERBOSE_PRINT(
"CEC: Register request complete: processed %u exceptions.",
pCallbackCtx->HitCount);
exit:
if (HasResource)
{
ExReleaseResourceAndLeaveCriticalRegion(
&g_CecManager.DarResources[Index]);
}
if (pCallbackCtx)
{
ExFreePoolWithTag(pCallbackCtx, CEC_TAG);
}
return ntstatus;
}
//
// CecCaptureMemoryValues
//
// Install a hardware breakpoint on all processors which, when triggered, will
// record all unique values at the memory address defined by the memory
// description parameter.
//
// NOTE This is a synchronous call which will block for the specified
// duration. The duration is clamped to CEC_MAX_DURATION_MS to prevent
// timeouts caused by input error.
//
_Use_decl_annotations_
NTSTATUS
CecCaptureMemoryValues(
ULONG_PTR ProcessId,
ULONG Index,
ULONG_PTR Address,
HWBP_TYPE Type,
HWBP_SIZE Size,
PCEC_MEMORY_DESCRIPTION pMemoryDescription,
ULONG DurationInMilliseconds,
PCEC_MEMORY_VALUES pValuesCtx,
ULONG cbValuesCtx
)
{
HARDWARE_BREAKPOINT Breakpoint = {};
LARGE_INTEGER DelayInterval = {};
PCEC_MEMORY_CALLBACK_CONTEXT pCallbackCtx = {};
BOOLEAN HasResource = FALSE;
NTSTATUS ntstatus = STATUS_SUCCESS;
//
// Validate in parameters.
//
ntstatus = BpmInitializeBreakpoint(
ProcessId,
Index,
Address,
Type,
Size,
&Breakpoint);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("BpmInitializeBreakpoint failed: 0x%X", ntstatus);
goto exit;
}
//
// The debug register index should have been validated by the breakpoint
// constructor, but we perform internal validation because the index
// determines which resource we acquire.
//
ntstatus = IvValidateDebugRegisterIndex(Index);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("IvValidateDebugRegisterIndex failed: 0x%X", ntstatus);
goto exit;
}
ntstatus = IvValidateMemoryDescription(pMemoryDescription);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("IvValidateMemoryDescription failed: 0x%X", ntstatus);
goto exit;
}
//
// Convert the duration to an NT interval.
//
ntstatus = CeciInitializeInterval(DurationInMilliseconds, &DelayInterval);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("CeciInitializeInterval failed: 0x%X", ntstatus);
goto exit;
}
pCallbackCtx = (PCEC_MEMORY_CALLBACK_CONTEXT)ExAllocatePoolWithTag(
NonPagedPool,
sizeof(*pCallbackCtx),
CEC_TAG);
if (!pCallbackCtx)
{
ERR_PRINT("Out of memory.");
ntstatus = STATUS_NO_MEMORY;
goto exit;
}
//
// Initialize contexts.
//
ntstatus = CeciInitializeMemoryCallbackContext(
pCallbackCtx,
pValuesCtx,
pMemoryDescription);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT(
"CeciInitializeMemoryCallbackContext failed: 0x%X",
ntstatus);
goto exit;
}
//
// NOTE The following call will invalidate all parameters stored in the
// irp system buffer.
//
CeciInitializeMemoryValuesContext(
pValuesCtx,
cbValuesCtx,
pMemoryDescription->DataType);
#if defined(CFG_VERBOSE_CAPTUREEXECUTIONCONTEXT)
if (pCallbackCtx->MemoryDescription.IsIndirectAddress)
{
CEC_VERBOSE_PRINT(
"CEC: Memory request (ind): dr%u, pid=0x%IX, bpaddr=0x%IX,"
" bptype=%c, bpsize=%c, mdt=%c, bsreg=%s, ixreg=%s, sf=%u,"
" disp=%Id, time=%u",
Breakpoint.Index,
Breakpoint.ProcessId,
Breakpoint.Address,
HwBpTypeToChar(Breakpoint.Type),
HwBpSizeToChar(Breakpoint.Size),
MemoryDataTypeToChar(pCallbackCtx->MemoryDescription.DataType),
GpRegToString(
pCallbackCtx->MemoryDescription.u.IndirectAddress.BaseRegister),
GpRegToString(
pCallbackCtx->MemoryDescription.u.IndirectAddress.IndexRegister),
pCallbackCtx->MemoryDescription.u.IndirectAddress.ScaleFactor,
pCallbackCtx->MemoryDescription.u.IndirectAddress.Displacement,
DurationInMilliseconds);
}
else
{
CEC_VERBOSE_PRINT(
"CEC: Memory request (abs): dr%u, pid=0x%IX, bpaddr=0x%IX,"
" bptype=%c, bpsize=%c, mdt=%c, va=0x%IX, time=%u",
Breakpoint.Index,
Breakpoint.ProcessId,
Breakpoint.Address,
HwBpTypeToChar(Breakpoint.Type),
HwBpSizeToChar(Breakpoint.Size),
MemoryDataTypeToChar(pCallbackCtx->MemoryDescription.DataType),
pCallbackCtx->MemoryDescription.u.VirtualAddress,
DurationInMilliseconds);
}
#endif
//
// Acquire the resource for the target debug address register.
//
ExEnterCriticalRegionAndAcquireResourceExclusive(
&g_CecManager.DarResources[Index]);
HasResource = TRUE;
//
// Install the hardware breakpoint on all processors.
//
ntstatus = BpmSetHardwareBreakpoint(
ProcessId,
Index,
Address,
Type,
Size,
CeciVmxMemoryBreakpointCallback,
pCallbackCtx);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("BpmSetHardwareBreakpoint failed: 0x%X (CECM)", ntstatus);
goto exit;
}
//
// Allow the breakpoint to be active for the desired duration.
//
// NOTE We do not fail the request if the timer expires.
//
ntstatus = KeDelayExecutionThread(KernelMode, FALSE, &DelayInterval);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT(
"KeDelayExecutionThread returned unexpected status: 0x%X (CECR)",
ntstatus);
}
//
// Clear the breakpoint.
//
ntstatus = BpmClearHardwareBreakpoint(Index);
if (!NT_SUCCESS(ntstatus))
{
ERR_PRINT("BpmClearHardwareBreakpoint failed: 0x%X", ntstatus);
goto exit;
}
//
// Copy statistics to the values context.
//
RtlCopyMemory(
&pValuesCtx->Statistics,
&pCallbackCtx->Statistics,
sizeof(CEC_MEMORY_STATISTICS));
//
// Log statistics.
//
CEC_VERBOSE_PRINT(
"CEC: Memory request complete: hits=%Iu, skips=%Iu, invpte=%Iu,"
" utpage=%Iu, spanaddr=%Iu, sysaddr=%Iu, valerr=%Iu",
pCallbackCtx->Statistics.HitCount,
pCallbackCtx->Statistics.SkipCount,
pCallbackCtx->Statistics.InvalidPteErrors,
pCallbackCtx->Statistics.UntouchedPageErrors,
pCallbackCtx->Statistics.SpanningAddressErrors,
pCallbackCtx->Statistics.SystemAddressErrors,
pCallbackCtx->Statistics.ValidationErrors);
exit:
if (HasResource)
{
ExReleaseResourceAndLeaveCriticalRegion(
&g_CecManager.DarResources[Index]);
}
if (pCallbackCtx)
{
ExFreePoolWithTag(pCallbackCtx, CEC_TAG);
}
return ntstatus;
}
//=============================================================================
// Private Interface
//=============================================================================
//
// CeciInitializeInterval
//
// Convert the desired duration in milliseconds to a valid NT delay interval.
//
_Use_decl_annotations_
static
NTSTATUS
CeciInitializeInterval(
ULONG DurationInMilliseconds,
PLARGE_INTEGER pInterval
)
{
ULONG ClampedDuration = 0;
NTSTATUS ntstatus = STATUS_SUCCESS;
if (!DurationInMilliseconds)
{
ntstatus = STATUS_INVALID_PARAMETER_1;
goto exit;
}
ClampedDuration =
DurationInMilliseconds > CEC_MAX_DURATION_MS
? CEC_MAX_DURATION_MS
: DurationInMilliseconds;
pInterval->QuadPart = MILLISECONDS_TO_RELATIVE_NTINTERVAL(ClampedDuration);
//
// Sanity check: The final time should be negative.
//
if (pInterval->QuadPart >= 0)
{
ntstatus = STATUS_INVALID_PARAMETER_2;
goto exit;
}
exit:
return ntstatus;
}
//=============================================================================
// Capture Register Values Interface
//=============================================================================
//
// CeciInitializeRegisterCallbackContext
//
// CEC_REGISTER_CALLBACK_CONTEXT constructor.
//
_Use_decl_annotations_
static
NTSTATUS
CeciInitializeRegisterCallbackContext(
PCEC_REGISTER_CALLBACK_CONTEXT pCallbackCtx,
PCEC_REGISTER_VALUES pValuesCtx,
X64_REGISTER Register
)
{
NTSTATUS ntstatus = STATUS_SUCCESS;
RtlSecureZeroMemory(pCallbackCtx, sizeof(*pCallbackCtx));
pCallbackCtx->Register = Register;
KeInitializeSpinLock(&pCallbackCtx->Lock);
pCallbackCtx->ValuesCtx = pValuesCtx;
return ntstatus;
}
//
// CeciInitializeRegisterValuesContext
//
// CEC_REGISTER_VALUES constructor.
//
// NOTE This function zeros the request's values buffer which is backed by the
// irp's system buffer. All required ioctl data should be copied to local
// storage before invoking This function.
//
_Use_decl_annotations_
static
VOID
CeciInitializeRegisterValuesContext(
PCEC_REGISTER_VALUES pValuesCtx,
ULONG cbValuesCtx
)
{
RtlSecureZeroMemory(pValuesCtx, cbValuesCtx);
pValuesCtx->Size = cbValuesCtx;
pValuesCtx->MaxIndex =
(cbValuesCtx - FIELD_OFFSET(CEC_REGISTER_VALUES, Values))
/ (RTL_FIELD_SIZE(CEC_REGISTER_VALUES, Values));
}
//
// CeciVmxRegisterBreakpointCallback
//
// Store unique values from the target register in the values buffer.
//
_Use_decl_annotations_
static
NTSTATUS
CeciVmxRegisterBreakpointCallback(
ULONG OwnerIndex,
GpRegisters* pGuestRegisters,
FlagRegister* pGuestFlags,
PULONG_PTR pGuestIp,
PVOID pCallbackCtx
)
{
PCEC_REGISTER_CALLBACK_CONTEXT pCecCtx =
(PCEC_REGISTER_CALLBACK_CONTEXT)pCallbackCtx;
ULONG_PTR RegisterValue = 0;
NTSTATUS ntstatus = STATUS_SUCCESS;
UNREFERENCED_PARAMETER(OwnerIndex);
UNREFERENCED_PARAMETER(pGuestFlags);
//
// NOTE Code analysis considers it invalid to acquire a spin lock at
// HIGH_LEVEL, but since this lock will only be acquired inside a VM exit
// handler it should not cause issues (famous last words). An alternate
// solution is to divide the values buffer into even ranges which are
// indexed by processor number. This guarantees that each region can only
// be accessed by one processor at any given time, but will most likely
// result in unused buffer space because of thread affinity.
//
#pragma warning(suppress : 28123)
KeAcquireSpinLockAtDpcLevel(&pCecCtx->Lock);
pCecCtx->HitCount++;
//
// If the values buffer is full then we cannot store new values so we must
// exit.
//
// NOTE Previously the CEC callback contained a completion event object
// which was signalled if the values buffer became full. This was removed
// because KeSetEvent can only be safely called at IRQL <= DISPATCH_LEVEL.
// Once the values buffer is full this callback is essentially a waste
// of cycles until the breakpoint timer associated with this CECR request
// expires.
//
if (pCecCtx->ValuesCtx->NumberOfValues >=
pCecCtx->ValuesCtx->MaxIndex)
{
goto exit;
}
ntstatus = ReadGuestGpRegisterValue(
pCecCtx->Register,
pGuestRegisters,
*pGuestIp,
&RegisterValue);
if (!NT_SUCCESS(ntstatus))
{
goto exit;
}
//
// Ignore zeros because we use zero as our end-of-values-buffer sentinel.
//
if (!RegisterValue)
{
goto exit;
}
//
// Walk the values buffer to determine if this is a new value.
//
for (ULONG i = 0; i < pCecCtx->ValuesCtx->MaxIndex; ++i)
{
//
// We have reached the end of the buffer so this must be a new value.
//
if (!pCecCtx->ValuesCtx->Values[i])
{
pCecCtx->ValuesCtx->Values[i] = RegisterValue;
pCecCtx->ValuesCtx->NumberOfValues++;
break;
}
//
// We have already recorded this value so exit.
//
if (RegisterValue == pCecCtx->ValuesCtx->Values[i])
{
goto exit;
}
}
exit:
#pragma warning(suppress : 28123) // See above.
KeReleaseSpinLockFromDpcLevel(&pCecCtx->Lock);
return ntstatus;
}
//=============================================================================
// Capture Memory Values Interface
//=============================================================================
//
// CeciInitializeMemoryCallbackContext
//
// CEC_MEMORY_CALLBACK_CONTEXT constructor.
//
_Use_decl_annotations_
static
NTSTATUS
CeciInitializeMemoryCallbackContext(
PCEC_MEMORY_CALLBACK_CONTEXT pCallbackCtx,
PCEC_MEMORY_VALUES pValuesCtx,
PCEC_MEMORY_DESCRIPTION pMemoryDescription
)
{
NTSTATUS ntstatus = STATUS_SUCCESS;
RtlSecureZeroMemory(pCallbackCtx, sizeof(*pCallbackCtx));
RtlCopyMemory(
&pCallbackCtx->MemoryDescription,
pMemoryDescription,
sizeof(CEC_MEMORY_DESCRIPTION));
KeInitializeSpinLock(&pCallbackCtx->Lock);
pCallbackCtx->ValuesCtx = pValuesCtx;
return ntstatus;
}
//
// CeciInitializeMemoryValuesContext
//
// CEC_MEMORY_VALUES constructor.
//
// NOTE This function zeros the request's values buffer which is backed by the
// irp's system buffer. All required ioctl data should be copied to local
// storage before invoking This function.
//
_Use_decl_annotations_
static
VOID
CeciInitializeMemoryValuesContext(
PCEC_MEMORY_VALUES pValuesCtx,
ULONG cbValuesCtx,
MEMORY_DATA_TYPE MemoryDataType
)
{
RtlSecureZeroMemory(pValuesCtx, cbValuesCtx);
pValuesCtx->DataType = MemoryDataType;
pValuesCtx->Size = cbValuesCtx;
pValuesCtx->MaxIndex =
(cbValuesCtx - FIELD_OFFSET(CEC_MEMORY_VALUES, Values))
/ (RTL_FIELD_SIZE(CEC_MEMORY_VALUES, Values));
}
//
// CeciVmxMemoryBreakpointCallback
//
// Store unique values at the effective address in the values buffer. The
// effective address is calculated using the memory description parameter from
// the corresponding CECM request.
//
// NOTE This function only accesses effective addresses which point to user
// space.
//
_Use_decl_annotations_
static
NTSTATUS
CeciVmxMemoryBreakpointCallback(
ULONG OwnerIndex,
GpRegisters* pGuestRegisters,
FlagRegister* pGuestFlags,
PULONG_PTR pGuestIp,
PVOID pCallbackCtx
)
{
PCEC_MEMORY_CALLBACK_CONTEXT pCecCtx =
(PCEC_MEMORY_CALLBACK_CONTEXT)pCallbackCtx;
PINDIRECT_ADDRESS pIndirectAddress = NULL;
ULONG_PTR BaseRegisterValue = 0;
ULONG_PTR IndexRegisterValue = 0;
ULONG_PTR EffectiveAddress = 0;
ULONG_PTR HostCr3 = 0;
ULONG_PTR GuestCr3 = 0;
HardwarePte* pEffectivePte = NULL;
PMEMORY_DATA_VALUE pMemoryDataValue = NULL;
ULONG cbMemoryDataType = 0;
ULONG_PTR EffectiveValue = 0;
NTSTATUS ntstatus = STATUS_SUCCESS;
UNREFERENCED_PARAMETER(OwnerIndex);
UNREFERENCED_PARAMETER(pGuestFlags);
#pragma warning(suppress : 28123) // See CeciVmxRegisterBreakpointCallback.
KeAcquireSpinLockAtDpcLevel(&pCecCtx->Lock);
pCecCtx->Statistics.HitCount++;
//
// If the values buffer is full then we cannot store new values so we must
// exit.
//
if (pCecCtx->ValuesCtx->NumberOfValues >=
pCecCtx->ValuesCtx->MaxIndex)
{
pCecCtx->Statistics.SkipCount++;
goto exit;
}
//
// Calculate the effective target address.
//
if (pCecCtx->MemoryDescription.IsIndirectAddress)
{
pIndirectAddress = &pCecCtx->MemoryDescription.u.IndirectAddress;
//
// Evaluate the memory description.
//
ntstatus = ReadGuestGpRegisterValue(
pIndirectAddress->BaseRegister,
pGuestRegisters,
*pGuestIp,
&BaseRegisterValue);
if (!NT_SUCCESS(ntstatus))
{
pCecCtx->Statistics.ValidationErrors++;
goto exit;
}
EffectiveAddress = BaseRegisterValue;
if (REGISTER_INVALID != pIndirectAddress->IndexRegister)
{
ntstatus = ReadGuestGpRegisterValue(
pIndirectAddress->IndexRegister,
pGuestRegisters,
*pGuestIp,
&IndexRegisterValue);
if (!NT_SUCCESS(ntstatus))
{
pCecCtx->Statistics.ValidationErrors++;
goto exit;
}
if (SCALE_INVALID != pIndirectAddress->ScaleFactor)
{
//
// NOTE We update the index register value in-place here so
// that we only perform the multiplication when necessary.
//
IndexRegisterValue *= pIndirectAddress->ScaleFactor;
}
EffectiveAddress += IndexRegisterValue;
}
EffectiveAddress += pIndirectAddress->Displacement;
}
else
{
EffectiveAddress = pCecCtx->MemoryDescription.u.VirtualAddress;
}
//
// Restrict the effective address to user space for now.
//
if ((ULONG_PTR)MM_HIGHEST_USER_ADDRESS <= EffectiveAddress)
{
pCecCtx->Statistics.SystemAddressErrors++;
ntstatus = STATUS_INVALID_ADDRESS;
goto exit;
}
//
// Update the host CR3 so that we can access the virtual address space of
// the target process.
//
HostCr3 = __readcr3();
GuestCr3 = VmmGetKernelCr3();
__writecr3(GuestCr3);
//
// Check if the effective address is valid.
//
pEffectivePte = UtilAddressToPte((PVOID)EffectiveAddress);
if (!pEffectivePte)
{
pCecCtx->Statistics.InvalidPteErrors++;
goto exit;
}
//
// Check if the address has been accessed.
//
// TODO Create a test case for this scenario.
//
if (!pEffectivePte->accessed)
{
pCecCtx->Statistics.UntouchedPageErrors++;
goto exit;
}
//
// Calculate the size of the read.
//
cbMemoryDataType = GetMemoryDataTypeSize(
pCecCtx->MemoryDescription.DataType);
if (!cbMemoryDataType)
{
pCecCtx->Statistics.ValidationErrors++;
ntstatus = STATUS_INTERNAL_ERROR;
goto exit;
}
//
// Verify that reading memory-data-type-size bytes at the effective address
// will only access one page.
//
if (1 != ADDRESS_AND_SIZE_TO_SPAN_PAGES(EffectiveAddress, cbMemoryDataType))
{
pCecCtx->Statistics.SpanningAddressErrors++;
goto exit;
}
pMemoryDataValue = (PMEMORY_DATA_VALUE)EffectiveAddress;
//
// TODO We store all data types in pointer-sized elements in the values
// buffer to reduce complexity. In the future, refactor the values buffer
// to have memory-data-type-sized elements.
//
switch (pCecCtx->MemoryDescription.DataType)
{
case MDT_BYTE:
EffectiveValue = (ULONG_PTR)pMemoryDataValue->Byte;
break;
case MDT_WORD:
EffectiveValue = (ULONG_PTR)pMemoryDataValue->Word;
break;
case MDT_DWORD:
EffectiveValue = (ULONG_PTR)pMemoryDataValue->Dword;
break;
case MDT_QWORD:
EffectiveValue = (ULONG_PTR)pMemoryDataValue->Qword;
break;
case MDT_FLOAT:
EffectiveValue = (ULONG_PTR)pMemoryDataValue->Float;
break;
case MDT_DOUBLE:
EffectiveValue = (ULONG_PTR)pMemoryDataValue->Double;
break;
default:
pCecCtx->Statistics.ValidationErrors++;
ntstatus = STATUS_INTERNAL_ERROR;
goto exit;
}
//
// Ignore zeros because we use zero as our end-of-values-buffer sentinel.
//
if (!EffectiveValue)
{
goto exit;
}
//
// Walk the values buffer to determine if this is a new value.
//
for (ULONG i = 0; i < pCecCtx->ValuesCtx->MaxIndex; ++i)
{
//
// We have reached the end of the buffer so this must be a new value.
//
if (!pCecCtx->ValuesCtx->Values[i])
{
pCecCtx->ValuesCtx->Values[i] = EffectiveValue;
pCecCtx->ValuesCtx->NumberOfValues++;
break;
}
//
// We have already recorded this value so exit.
//
if (EffectiveValue == pCecCtx->ValuesCtx->Values[i])
{
goto exit;
}
}
exit:
if (HostCr3)
{
__writecr3(HostCr3);
}
#pragma warning(suppress : 28123) // See CeciVmxRegisterBreakpointCallback.
KeReleaseSpinLockFromDpcLevel(&pCecCtx->Lock);
return ntstatus;
}
|
d0c546b63fbfe007d2e5f31a84edb12812f06673
|
af349c3084f098cfff9eaca2ba5e6f0a7fb6def2
|
/MLID/utility.cpp
|
e44120c077083c4c3f64222b9411f43c05aa312e
|
[] |
no_license
|
LiangShuangSH/Inverse_Kinematics
|
46a8d6ce39dbab3bd498f8c4a60761b3c0a3ebfc
|
3283b55b890857d82e4b266202a0c1b6b7f1f875
|
refs/heads/master
| 2021-08-06T16:23:49.668006
| 2017-11-06T13:51:24
| 2017-11-06T13:51:24
| 109,701,504
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 689
|
cpp
|
utility.cpp
|
#include "utility.h"
double normalize_angle(double angle) {
double new_angle = fmod(angle + PI, 2*PI);
if (new_angle < 0) {
new_angle += 2 * PI;
}
return new_angle - PI;
}
double euclidean_distance(vec a, vec b) {
double result = 0.0;
if (a.size() != b.size()) {
cout << "Warning::Euclidean_Distance()::SIZE_NOT_EQUAL" << endl;
result = 0.0;
}
else {
for (int i = 0; i < a.size(); i++) {
result += pow(a(i) - b(i), 2);
}
result = sqrt(result);
}
return result;
}
vec normalize_vector(vec v, int dim, double scale) {
double IVI = 0.0;
for (int i = 0; i < dim; i++) {
IVI += pow(v(i), 2);
}
IVI = sqrt(IVI);
vec result = scale * v / IVI;
return result;
}
|
51ade03355a2813bbee20a9aa0872dcb3823810a
|
36b22ab3e8baa321d09da272cdfe5c103078adc1
|
/tunnel.cpp
|
4b8c7dd8790b3a60ef3cea9ac81315e284289a73
|
[] |
no_license
|
ac-dias/wxAMPS-2D
|
071984bbb0efbcda8b1dab4212b37606283e2264
|
fcc06e22e732a2baa355d0fc9b0f9736f7f48d88
|
refs/heads/master
| 2023-04-23T04:03:18.673210
| 2019-11-02T15:30:57
| 2019-11-02T15:30:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 8,983
|
cpp
|
tunnel.cpp
|
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "Point.h"
#include "calculation.h"
#include "constant.h"
#include "LU.h"
void Point:: IterNTun(double *y, double*J,double*l,double*u,int num,double kT,double TopSn,double BtmSn,wxProgressDialog *dlg)
{
double *c=new double[num], *Efn1=new double[num],*dEfn=new double[num],*p1=new double[num],*n1=new double[num];
double *f=new double[num];
for(int i=0;i<num*num;i++)
{
J[i]=0;
}
for(int i=0;i<num;i++)
{
p1[i]=Nv[i]*SafeDExp((y[i]-affi[i]-Eg[i]-Efp[i])/kT);
if(step[i]!=0)
{
c[i]=QE*un[i]*Nc[i]/step[i]*SafeDExp(-(y[i]-affi[i])/kT)*kT*xDexM1((y[i+1]-affi[i+1]-y[i]+affi[i])/kT);
//*exp((affi[i])/kT)*(y[i+1]-y[i])/(exp(y[i+1]/kT)-exp(y[i]/kT));/*GP12((Efn1[i]+affi[i]-y[i])/kT)*/
}
else//this point is useless
{
c[i]=0;
}
}
//outEB(x,Efn,c,p1,num);
double ep=1e-6,tol=1;int cnt=0;
ep=precision;
while( tol>ep)
{
transfer(Efn,Efn1,num);
fn3(y,Efn1,n1,p1,num,kT,TopSn,BtmSn,c,f);
Jacn3(y,Efn1,n1,p1,num,kT,TopSn,BtmSn,c,J);
LU2(J,f,l,u,num,dEfn);
clamp(dEfn,limit,num);
for(int i=0;i<num;i++)
{
Efn[i]=Efn1[i]-dEfn[i];
}
tol=norm(Efn,Efn1,num);
cnt++;
if(cnt>iterTimes)
{
#ifdef _DEBUG
wxMessageBox(_("too many iterations in calculating Efn , results may not be correct!"));
#endif
delete[] c;delete[]Efn1;delete[]dEfn;delete[]p1;delete[] n1;delete[] f;
return;
}
}
delete[] c;delete[]Efn1;delete[]dEfn;delete[]p1;delete[] n1;delete[] f;//,J,l,u;
}
void Point:: fn3(double *y, double *Efn1, double *n1,double *p1,
int num,double kT,double TopSn,double BtmSn,double *c,double *f)
{
for(int i=0;i<num;i++)
{
n1[i]=Nc[i]*SafeDExp((Efn1[i]+affi[i]-y[i])/kT);
if(step[i]!=0)
Jn[i]=c[i]*SafeDExp(Efn1[i]/kT)*(SafeDExp((Efn1[i+1]-Efn1[i])/kT)-1);//;*(exp(Efn1[i+1]/kT)-exp(Efn1[i]/kT));
else if(i!=num-1)
{//2*QE^2/h=7.74813e-5
double AT2i;
if(Nc[i]<Nc[i+1])
AT2i=7.74813e-5*kT*pow(Nc[i]/2,2./3);
else
AT2i=7.74813e-5*kT*pow(Nc[i+1]/2,2./3);
if(affi[i]>=affi[i+1])//thermal emission current
Jn[i]=AT2i*SafeDExp((Efn1[i+1]-y[i+1]+affi[i+1])/kT)*(1-exp((Efn1[i]-Efn1[i+1])/kT));//-AT2i*SafeDExp((Efn1[i]-y[i]+affi[i+1])/kT);
else
Jn[i]=AT2i*SafeDExp((Efn1[i+1]-y[i+1]+affi[i])/kT)*(1-exp((Efn1[i]-Efn1[i+1])/kT));//AT2i*SafeDExp((Efn1[i]-y[i]+affi[i])/kT);
Jn[i]*=1+tunC[i];//inject all tunneling current at interface
}
else
Jn[i]=Jn[i-1];
}
Recombination(0,n1,p1,num,kT);//dR=dR/dEfn
f[0]=Jn[0]-QE*TopSn*(Nc[0]*SafeDExp((Efn1[0]+affi[0]-y[0])/kT)-n0L);//?direction ?defect
f[0]/=step[0];
for (int i=1;i<num-1;i++)
{
if(step[i]!=0&&step[i-1]!=0)
f[i]=2*(Jn[i]-Jn[i-1])/(step[i]+step[i-1])-QE*R[i]+QE*G[i];
else if(0==step[i])
f[i]=2*(Jn[i]-Jn[i-1])/step[i-1]-QE*(R[i]/*+R[i+1]*/)+QE*G[i];
else
f[i]=2*(Jn[i]-Jn[i-1])/(step[i])-QE*(R[i]/*+R[i-1]*/)+QE*G[i];//?recombination model
}
f[num-1]=Jn[num-2]+QE*BtmSn*(Nc[num-1]*SafeDExp((Efn1[num-1]-y[num-1]+affi[num-1])/kT)-n0R);
f[num-1]/=step[num-2];
}
void Point:: Jacn3(double *y, double *Efn1, double *n1,double *p1,
int num,double kT,double TopSn,double BtmSn,double *c,double *J)
{
double AT2i;
J[0*num+0]=-c[0]*SafeDExp(Efn1[0]/kT)/kT-QE*TopSn*(Nc[0]*SafeDExp((Efn1[0]+affi[0]-y[0])/kT))/kT;
J[0*num+1]=c[0]*SafeDExp(Efn1[1]/kT)/kT;
J[0*num+0]/=step[0];J[0*num+1]/=step[0];
for(int i=1;i<num-1;i++)
{
if(step[i]!=0&&step[i-1]!=0)
{
J[i*num+i-1]=2/(step[i]+step[i-1])/kT*c[i-1]*SafeDExp(Efn1[i-1]/kT);
J[i*num+i]=-2/(step[i]+step[i-1])/kT*(c[i]+c[i-1])*SafeDExp(Efn1[i]/kT)-QE*dR[i];///kT;
J[i*num+i+1]=2/(step[i]+step[i-1])/kT*c[i]*SafeDExp(Efn1[i+1]/kT);
}
else if(0==step[i])
{
if(Nc[i]<Nc[i+1])
AT2i=7.74813e-5*kT*pow(Nc[i]/2,2./3);
else
AT2i=7.74813e-5*kT*pow(Nc[i+1]/2,2./3);
J[i*num+i-1]=2*c[i-1]*SafeDExp(Efn1[i-1]/kT)/kT/step[i-1];
if(affi[i]>=affi[i+1])
{
J[i*num+i]=-2*c[i-1]*SafeDExp(Efn1[i]/kT)/kT/step[i-1]-2*(1+tunC[i])*AT2i*SafeDExp((Efn1[i]-y[i]+affi[i+1])/kT)/kT/step[i-1]-QE*(dR[i]/*+dR[i+1]*/);
J[i*num+i+1]=2*(1+tunC[i])*AT2i*SafeDExp((Efn1[i+1]-y[i+1]+affi[i+1])/kT)/kT/step[i-1];
}
else
{
J[i*num+i]=-2*c[i-1]*SafeDExp(Efn1[i]/kT)/kT/step[i-1]-2*(1+tunC[i])*AT2i*SafeDExp((Efn1[i]-y[i]+affi[i])/kT)/kT/step[i-1]-QE*(dR[i]/*+dR[i+1]*/);
J[i*num+i+1]=2*(1+tunC[i])*AT2i*SafeDExp((Efn1[i+1]-y[i+1]+affi[i])/kT)/kT/step[i-1];
}
}
else
{
if(affi[i-1]>=affi[i])
{
J[i*num+i-1]=2*(1+tunC[i-1])*AT2i*SafeDExp((Efn1[i-1]-y[i-1]+affi[i])/kT)/kT/step[i];
J[i*num+i]=-2/(step[i])/kT*c[i]*SafeDExp(Efn1[i]/kT)-2/step[i]/kT*(1+tunC[i-1])*AT2i*SafeDExp((Efn1[i]-y[i]+affi[i])/kT)-QE*(dR[i]/*+dR[i-1]*/);
}
else
{
J[i*num+i-1]=2*(1+tunC[i-1])*AT2i*SafeDExp((Efn1[i-1]-y[i-1]+affi[i-1])/kT)/kT/step[i];
J[i*num+i]=-2/(step[i])/kT*c[i]*SafeDExp(Efn1[i]/kT)-2/step[i]/kT*(1+tunC[i-1])*AT2i*SafeDExp((Efn1[i]-y[i]+affi[i-1])/kT)-QE*(dR[i]/*+dR[i-1]*/);
}
J[i*num+i+1]=2/(step[i])/kT*c[i]*SafeDExp(Efn1[i+1]/kT);
}
}
J[num*num-2]=-c[num-2]*SafeDExp(Efn1[num-2]/kT)/kT;
J[num*num-1]=c[num-2]*SafeDExp(Efn1[num-1]/kT)/kT+QE*BtmSn*(Nc[num-1]*SafeDExp((Efn1[num-1]-y[num-1]+affi[num-1])/kT))/kT;
J[num*num-2]/=step[num-2];J[num*num-1]/=step[num-2];
}
double Point::WKB(double *y,int start,int cur,double kT)
{
double factor=4*sqrt(PI/kT)*pow(Nc[cur]/2,1./3);
double sum=0;//integral
for(int i=start;i<cur;i++)
{
sum+=(x[i+1]-x[i])*(sqrt(y[cur]-y[i])+sqrt(y[cur]-y[i+1]))/2;
}
if(factor*sum<400)
return exp(-factor*sum);
else
return 0;
}
double Point::WKBP(double *yv,int start,int cur,double kT)
{
double factor=4*sqrt(PI/kT)*pow(Nv[cur]/2,1./3);
double sum=0;//integral
for(int i=start;i<cur;i++)
{
sum+=(x[i+1]-x[i])*(sqrt(yv[i]-yv[cur])+sqrt(yv[i+1]-yv[cur]))/2;
}
if(factor*sum<400)
return exp(-factor*sum);
else
return 0;
}
void Point::calcTunC(double * y,double kT)
{
double Emin,Emax,Ei;int num=PointNumber;
int inter=0,interLast=0,interP=0,interLastP=0;
int shape;//1-pn;2-np;
bool tunnel=false,tunnelP=false;
for(int i=0;i<num-1;i++)//exclude end point
{
tunC[i]=0;
if(0==step[i])//at boundary
{
if((affi[i]>affi[i+1])&&(y[i-1]>y[i]))//barrier
{
tunnel=true; shape=1;
Emin=y[i]-affi[i]; Emax=y[i]-affi[i+1];
}
if((affi[i]<affi[i+1])&&(y[i-1]<y[i]))
{
tunnel=true; shape=2;
Emin=y[i]-affi[i+1]; Emax=y[i]-affi[i];
for(int j=i-1;j>=interLast;j--)//calculate former region
{
Ei=y[j]-affi[j];
if(Ei>Emin&&Ei<=Emax)
{
double TEi=WKB(y,j,i,kT);
if(TEi!=0)
tunC[j]=TEi*SafeDExp((y[i]-y[j])/kT)*(y[j+1]-y[j])/kT;//?integral not trapezoid
else// no tunneling current
{ tunnel=false;
break;}
}
else
{ tunnel=false;
break;}
tunC[i]+=tunC[j];
}
}
interLast=inter;
inter=i;
}
else if(tunnel)//calculate coming region
{
Ei=y[i+1]-affi[i+1];
if(1==shape)
{
if(Ei>Emin&&Ei<=Emax)
{
double TEi=WKB(y,i+1,inter+1,kT);
if(TEi!=0)
tunC[i+1]=TEi*SafeDExp((y[inter+1]-y[i+1])/kT)*(y[i]-y[i+1])/kT;//?integral not trapezoid
else// no tunneling current
tunnel=false;
}
else
tunnel=false;
tunC[inter]+=tunC[i+1];//inject all the tunneling current to interface
}
}
//for holes
tunCp[i]=0;double Evmax,Evmin;
if(0==step[i])
{
if(((y[i]-affi[i]-Eg[i])>(y[i+1]-affi[i+1]-Eg[i+1]))&&(y[i-1]<y[i]))
{
tunnelP=true; shape=1;
Evmax=y[i]-affi[i]-Eg[i];Evmin=y[i+1]-affi[i+1]-Eg[i+1];
}
if(((y[i]-affi[i]-Eg[i])<(y[i+1]-affi[i+1]-Eg[i+1]))&&(y[i-1]>y[i]))
{
tunnelP=true; shape=2;
Evmin=y[i]-affi[i]-Eg[i];Evmax=y[i+1]-affi[i+1]-Eg[i+1];
for(int j=i-1;j>=interLastP;j--)
{
Ei=y[j]-affi[j]-Eg[j];
if(Ei>=Evmin&&Ei<Evmax)
{
double TEi=WKBP(y,j,i,kT);
if(TEi!=0)
tunCp[j]=TEi*SafeDExp((y[j]-y[i])/kT)*(y[j]-y[j+1])/kT;
else// no tunneling current
{ tunnelP=false;
break;}
}
else
{ tunnelP=false;
break;}
tunCp[i]+=tunCp[j];
}
interLastP=interP;
interP=i;
}
else if(tunnelP)
{
Ei=y[i+1]-affi[i+1]-Eg[i+1];
if(1==shape)
{
if(Ei>=Evmin&&Ei<Evmax)
{
double TEi=WKBP(y,i+1,interP+1,kT);
if(TEi!=0)
tunCp[i+1]=TEi*SafeDExp((y[i+1]-y[inter+1])/kT)*(y[i+1]-y[i])/kT;//?integral not trapezoid
else// no tunneling current
tunnelP=false;
}
else
tunnelP=false;
tunCp[inter]+=tunCp[i+1];
}
}
}
}
}
|
542bc2d1454d924ab3ffad6aef274a33c9a600f7
|
3b04925b4271fe921020cff037b86e4a5a2ae649
|
/windows_embedded_ce_6_r3_170331/WINCE600/PRIVATE/TEST/MULTIMEDIA/DIRECTX/D3D/MOBILE/LIBS/VERIFTESTCASELIBS/STENCILTESTCASES/depthstenciltools.cpp
|
92f12a78460adc557169de7d7ef544c29aa5b871
|
[] |
no_license
|
fanzcsoft/windows_embedded_ce_6_r3_170331
|
e3a4d11bf2356630a937cbc2b7b4e25d2717000e
|
eccf906d61a36431d3a37fb146a5d04c5f4057a2
|
refs/heads/master
| 2022-12-27T17:14:39.430205
| 2020-09-28T20:09:22
| 2020-09-28T20:09:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 18,528
|
cpp
|
depthstenciltools.cpp
|
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft shared
// source or premium shared source license agreement under which you licensed
// this source code. If you did not accept the terms of the license agreement,
// you are not authorized to use this source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the SOURCE.RTF on your install media or the root of your tools installation.
// THE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
#include "DepthStencilTools.h"
#include <tchar.h>
#include "DebugOutput.h"
//
// NextDepthStencilFormat
//
// Intended to be called iteratively to cycle through all valid depth/stencil formats.
//
// Arguments:
//
// LPDIRECT3DMOBILE pD3D: Direct3D Object
// LPDIRECT3DMOBILEDEVICE pDevice: Underlying device
// D3DMFORMAT RenderTargetFormat: For match verification
// D3DMFORMAT *pFormat: Resultant D/S format
//
// Return Value:
//
// HRESULT: Indicates success or failure
//
HRESULT NextDepthStencilFormat(LPDIRECT3DMOBILE pD3D, LPDIRECT3DMOBILEDEVICE pDevice, D3DMFORMAT RenderTargetFormat, D3DMFORMAT *pFormat)
{
HRESULT hr;
static UINT uiFirstFormatToTryDS = 0;
//
// Device capabilities
//
D3DMCAPS Caps;
//
// Display mode, used to determine a format to use
//
D3DMDISPLAYMODE Mode;
//
// Retrieve device capabilities
//
if (FAILED(hr = pDevice->GetDeviceCaps(&Caps)))
{
DebugOut(DO_ERROR, L"GetDeviceCaps failed. (hr = 0x%08x)", hr);
return hr;
}
//
// Retrieve current display mode
//
if (FAILED(hr = pDevice->GetDisplayMode(&Mode)))// D3DMDISPLAYMODE* pMode
{
DebugOut(DO_ERROR, L"GetDisplayMode failed. (hr = 0x%08x)", hr);
return hr;
}
struct CHECKDEPTHSTENCILMATCH_ARGS {
UINT Adapter;
D3DMDEVTYPE DeviceType;
D3DMFORMAT AdapterFormat;
D3DMFORMAT RenderTargetFormat;
D3DMFORMAT DepthStencilFormat;
} FormatArgs = {Caps.AdapterOrdinal, Caps.DeviceType, Mode.Format, RenderTargetFormat, D3DMFMT_UNKNOWN };
switch(uiFirstFormatToTryDS)
{
case 0: // D3DMFMT_D32
uiFirstFormatToTryDS++;
if (SUCCEEDED(pD3D->CheckDepthStencilMatch(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.RenderTargetFormat,
D3DMFMT_D32)))
{
*pFormat = D3DMFMT_D32;
return S_OK;
}
case 1: // D3DMFMT_D15S1
uiFirstFormatToTryDS++;
if (SUCCEEDED(pD3D->CheckDepthStencilMatch(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.RenderTargetFormat,
D3DMFMT_D15S1)))
{
*pFormat = D3DMFMT_D15S1;
return S_OK;
}
case 2: // D3DMFMT_D24S8
uiFirstFormatToTryDS++;
if (SUCCEEDED(pD3D->CheckDepthStencilMatch(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.RenderTargetFormat,
D3DMFMT_D24S8)))
{
*pFormat = D3DMFMT_D24S8;
return S_OK;
}
case 3: // D3DMFMT_D16
uiFirstFormatToTryDS++;
if (SUCCEEDED(pD3D->CheckDepthStencilMatch(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.RenderTargetFormat,
D3DMFMT_D16)))
{
*pFormat = D3DMFMT_D16;
return S_OK;
}
case 4: // D3DMFMT_D24X8
uiFirstFormatToTryDS++;
if (SUCCEEDED(pD3D->CheckDepthStencilMatch(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.RenderTargetFormat,
D3DMFMT_D24X8)))
{
*pFormat = D3DMFMT_D24X8;
return S_OK;
}
case 5: // D3DMFMT_D24X4S4
uiFirstFormatToTryDS++;
if (SUCCEEDED(pD3D->CheckDepthStencilMatch(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.RenderTargetFormat,
D3DMFMT_D24X4S4)))
{
*pFormat = D3DMFMT_D24X4S4;
return S_OK;
}
default:
uiFirstFormatToTryDS = 0;
return E_FAIL;
}
}
//
// NextStencilFormat
//
// Intended to be called iteratively to cycle through all valid stencil formats.
//
// Arguments:
//
// LPDIRECT3DMOBILE pD3D: Direct3D Object
// LPDIRECT3DMOBILEDEVICE pDevice: Underlying device
// D3DMFORMAT RenderTargetFormat: For match verification
// D3DMFORMAT *pFormat: Resultant stencil format
//
// Return Value:
//
// HRESULT: Indicates success or failure
//
HRESULT NextStencilFormat(LPDIRECT3DMOBILE pD3D, LPDIRECT3DMOBILEDEVICE pDevice, D3DMFORMAT RenderTargetFormat, D3DMFORMAT *pFormat)
{
HRESULT hr;
static UINT uiFirstFormatToTryS = 0;
//
// Device capabilities
//
D3DMCAPS Caps;
//
// Display mode, used to determine a format to use
//
D3DMDISPLAYMODE Mode;
//
// Retrieve device capabilities
//
if (FAILED(hr = pDevice->GetDeviceCaps(&Caps)))
{
DebugOut(DO_ERROR, L"GetDeviceCaps failed. (hr = 0x%08x)", hr);
return hr;
}
//
// Retrieve current display mode
//
if (FAILED(hr = pDevice->GetDisplayMode(&Mode)))// D3DMDISPLAYMODE* pMode
{
DebugOut(DO_ERROR, L"GetDisplayMode failed. (hr = 0x%08x)", hr);
return hr;
}
struct CHECKDEPTHSTENCILMATCH_ARGS {
UINT Adapter;
D3DMDEVTYPE DeviceType;
D3DMFORMAT AdapterFormat;
D3DMFORMAT RenderTargetFormat;
D3DMFORMAT DepthStencilFormat;
} FormatArgs = {Caps.AdapterOrdinal, Caps.DeviceType, Mode.Format, RenderTargetFormat, D3DMFMT_UNKNOWN };
switch(uiFirstFormatToTryS)
{
case 0: // D3DMFMT_D15S1
uiFirstFormatToTryS++;
if (SUCCEEDED(pD3D->CheckDepthStencilMatch(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.RenderTargetFormat,
D3DMFMT_D15S1)))
{
*pFormat = D3DMFMT_D15S1;
return S_OK;
}
case 1: // D3DMFMT_D24S8
uiFirstFormatToTryS++;
if (SUCCEEDED(pD3D->CheckDepthStencilMatch(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.RenderTargetFormat,
D3DMFMT_D24S8)))
{
*pFormat = D3DMFMT_D24S8;
return S_OK;
}
case 2: // D3DMFMT_D24X4S4
uiFirstFormatToTryS++;
if (SUCCEEDED(pD3D->CheckDepthStencilMatch(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.RenderTargetFormat,
D3DMFMT_D24X4S4)))
{
*pFormat = D3DMFMT_D24X4S4;
return S_OK;
}
default:
uiFirstFormatToTryS = 0;
return E_FAIL;
}
}
//
// StencilBits
//
// Indicates the number of stenciling bits in a specific D/S format.
//
// Arguments:
//
// D3DMFORMAT FmtDepthStencil: D/S format
//
// Return Value:
//
// UINT: Number of stencil bits
//
UINT StencilBits(D3DMFORMAT FmtDepthStencil)
{
switch(FmtDepthStencil)
{
case D3DMFMT_D15S1:
return 1;
case D3DMFMT_D24S8:
return 8;
case D3DMFMT_D24X4S4:
return 4;
default:
return 0;
}
}
//
// IsValidDepthStencilFormat
//
// Verifies that a device supports a particular D/S format, and that the device supports
// the combination of that D/S format with the current RT format.
//
// Arguments:
//
//
// LPDIRECT3DMOBILE pD3D: Direct3D Object
// LPDIRECT3DMOBILEDEVICE pDevice: Underlying device
// D3DMFORMAT DepthStencilFormat: D/S format
//
// Return Value:
//
// BOOL: TRUE if supported; FALSE otherwise
//
BOOL IsValidDepthStencilFormat(LPDIRECT3DMOBILE pD3D, LPDIRECT3DMOBILEDEVICE pDevice, D3DMFORMAT DepthStencilFormat)
{
HRESULT hr;
//
// Device capabilities
//
D3DMCAPS Caps;
//
// Display mode, used to determine a format to use
//
D3DMDISPLAYMODE Mode;
//
// Retrieve device capabilities
//
if (FAILED(hr = pDevice->GetDeviceCaps(&Caps)))
{
DebugOut(DO_ERROR, L"GetDeviceCaps failed. (hr = 0x%08x)", hr);
return FALSE;
}
//
// Retrieve current display mode
//
if (FAILED(hr = pDevice->GetDisplayMode(&Mode)))// D3DMDISPLAYMODE* pMode
{
DebugOut(DO_ERROR, L"GetDisplayMode failed. (hr = 0x%08x)", hr);
return FALSE;
}
struct CHECKDEPTHSTENCILMATCH_ARGS {
UINT Adapter;
D3DMDEVTYPE DeviceType;
D3DMFORMAT AdapterFormat;
D3DMFORMAT RenderTargetFormat;
D3DMFORMAT DepthStencilFormat;
} FormatArgs = {Caps.AdapterOrdinal, Caps.DeviceType, Mode.Format, Mode.Format, DepthStencilFormat };
if (SUCCEEDED(pD3D->CheckDepthStencilMatch(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.RenderTargetFormat, FormatArgs.DepthStencilFormat)))
{
return TRUE;
}
return FALSE;
}
//
// NextRenderTargetFormat
//
// Intended to be called iteratively to cycle through all valid render target formats.
//
// Arguments:
//
// LPDIRECT3DMOBILE pD3D: Direct3D Object
// LPDIRECT3DMOBILEDEVICE pDevice: Underlying device
// D3DMFORMAT *pFormat: Resultant render target format
//
// Return Value:
//
// HRESULT: Indicates success or failure
//
HRESULT NextRenderTargetFormat(LPDIRECT3DMOBILE pD3D, LPDIRECT3DMOBILEDEVICE pDevice, D3DMFORMAT *pFormat)
{
HRESULT hr;
static UINT uiFirstFormatToTryRT = 0;
//
// Device capabilities
//
D3DMCAPS Caps;
//
// Display mode, used to determine a format to use
//
D3DMDISPLAYMODE Mode;
//
// Retrieve device capabilities
//
if (FAILED(hr = pDevice->GetDeviceCaps(&Caps)))
{
DebugOut(DO_ERROR, L"GetDeviceCaps failed. (hr = 0x%08x)", hr);
return hr;
}
//
// Retrieve current display mode
//
if (FAILED(hr = pDevice->GetDisplayMode(&Mode)))// D3DMDISPLAYMODE* pMode
{
DebugOut(DO_ERROR, L"GetDisplayMode failed. (hr = 0x%08x)", hr);
return hr;
}
struct CHECKDEVICEFORMAT_ARGS {
UINT Adapter;
D3DMDEVTYPE DeviceType;
D3DMFORMAT AdapterFormat;
DWORD Usage;
D3DMRESOURCETYPE RType;
D3DMFORMAT CheckFormat;
} FormatArgs = {Caps.AdapterOrdinal, Caps.DeviceType, Mode.Format, D3DMUSAGE_RENDERTARGET, D3DMRTYPE_SURFACE, D3DMFMT_UNKNOWN };
switch(uiFirstFormatToTryRT)
{
case 0: // D3DMFMT_R8G8B8
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_R8G8B8)))
{
*pFormat = D3DMFMT_R8G8B8;
return S_OK;
}
case 1: // D3DMFMT_A8R8G8B8
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_A8R8G8B8)))
{
*pFormat = D3DMFMT_A8R8G8B8;
return S_OK;
}
case 2: // D3DMFMT_X8R8G8B8
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_X8R8G8B8)))
{
*pFormat = D3DMFMT_X8R8G8B8;
return S_OK;
}
case 3: // D3DMFMT_R5G6B5
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_R5G6B5)))
{
*pFormat = D3DMFMT_R5G6B5;
return S_OK;
}
case 4: // D3DMFMT_X1R5G5B5
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_X1R5G5B5)))
{
*pFormat = D3DMFMT_X1R5G5B5;
return S_OK;
}
case 5: // D3DMFMT_A1R5G5B5
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_A1R5G5B5)))
{
*pFormat = D3DMFMT_A1R5G5B5;
return S_OK;
}
case 6: // D3DMFMT_A4R4G4B4
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_A4R4G4B4)))
{
*pFormat = D3DMFMT_A4R4G4B4;
return S_OK;
}
case 7: // D3DMFMT_R3G3B2
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_R3G3B2)))
{
*pFormat = D3DMFMT_R3G3B2;
return S_OK;
}
case 8: // D3DMFMT_A8R3G3B2
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_A8R3G3B2)))
{
*pFormat = D3DMFMT_A8R3G3B2;
return S_OK;
}
case 9: // D3DMFMT_X4R4G4B4
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_X4R4G4B4)))
{
*pFormat = D3DMFMT_X4R4G4B4;
return S_OK;
}
case 10: // D3DMFMT_A8P8
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_A8P8)))
{
*pFormat = D3DMFMT_A8P8;
return S_OK;
}
case 11: // D3DMFMT_P8
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_P8)))
{
*pFormat = D3DMFMT_P8;
return S_OK;
}
case 12: // D3DMFMT_A8
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_A8)))
{
*pFormat = D3DMFMT_A8;
return S_OK;
}
case 13: // D3DMFMT_UYVY
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_UYVY)))
{
*pFormat = D3DMFMT_UYVY;
return S_OK;
}
case 14: // D3DMFMT_YUY2
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_YUY2)))
{
*pFormat = D3DMFMT_YUY2;
return S_OK;
}
case 15: // D3DMFMT_DXT1
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_DXT1)))
{
*pFormat = D3DMFMT_DXT1;
return S_OK;
}
case 16: // D3DMFMT_DXT2
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_DXT2)))
{
*pFormat = D3DMFMT_DXT2;
return S_OK;
}
case 17: // D3DMFMT_DXT3
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_DXT3)))
{
*pFormat = D3DMFMT_DXT3;
return S_OK;
}
case 18: // D3DMFMT_DXT4
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_DXT4)))
{
*pFormat = D3DMFMT_DXT4;
return S_OK;
}
case 19: // D3DMFMT_DXT5
uiFirstFormatToTryRT++;
if (SUCCEEDED(pD3D->CheckDeviceFormat(FormatArgs.Adapter,FormatArgs.DeviceType,FormatArgs.AdapterFormat,FormatArgs.Usage,FormatArgs.RType,
D3DMFMT_DXT5)))
{
*pFormat = D3DMFMT_DXT5;
return S_OK;
}
default:
uiFirstFormatToTryRT = 0;
return E_FAIL;
}
}
//
// SetStencilStates
//
// Set all stencil-related render states
//
// Arguments:
//
// LPDIRECT3DMOBILEDEVICE pDevice: Underlying device
// DWORD StencilEnable: Value for D3DMRS_STENCILENABLE
// DWORD StencilMask: Value for D3DMRS_STENCILMASK
// DWORD StencilWriteMask: Value for D3DMRS_STENCILWRITEMASK
// D3DMSTENCILOP StencilZFail: Value for D3DMRS_STENCILZFAIL
// D3DMSTENCILOP StencilFail: Value for D3DMRS_STENCILFAIL
// D3DMSTENCILOP StencilPass: Value for D3DMRS_STENCILPASS
// D3DMCMPFUNC StencilFunc: Value for D3DMRS_STENCILFUNC
// DWORD StencilRef: Value for D3DMRS_STENCILREF
//
// Return Value:
//
// HRESULT: Indicates success or failure
//
HRESULT SetStencilStates(LPDIRECT3DMOBILEDEVICE pDevice,
DWORD StencilEnable,
DWORD StencilMask,
DWORD StencilWriteMask,
D3DMSTENCILOP StencilZFail,
D3DMSTENCILOP StencilFail,
D3DMSTENCILOP StencilPass,
D3DMCMPFUNC StencilFunc,
DWORD StencilRef)
{
HRESULT hr;
if (FAILED(hr = pDevice->SetRenderState( D3DMRS_STENCILENABLE, StencilEnable)))
{
DebugOut(DO_ERROR, L"SetRenderState(D3DMRS_STENCILENABLE) failed. (hr = 0x%08x)", hr);
return hr;
}
if (FAILED(hr = pDevice->SetRenderState( D3DMRS_STENCILMASK, StencilMask)))
{
DebugOut(DO_ERROR, L"SetRenderState(D3DMRS_STENCILMASK) failed. (hr = 0x%08x)", hr);
return hr;
}
if (FAILED(hr = pDevice->SetRenderState( D3DMRS_STENCILWRITEMASK,StencilWriteMask)))
{
DebugOut(DO_ERROR, L"SetRenderState(D3DMRS_STENCILWRITEMASK) failed. (hr = 0x%08x)", hr);
return hr;
}
if (FAILED(hr = pDevice->SetRenderState( D3DMRS_STENCILZFAIL, StencilZFail)))
{
DebugOut(DO_ERROR, L"SetRenderState(D3DMRS_STENCILZFAIL) failed. (hr = 0x%08x)", hr);
return hr;
}
if (FAILED(hr = pDevice->SetRenderState( D3DMRS_STENCILFAIL, StencilFail)))
{
DebugOut(DO_ERROR, L"SetRenderState(D3DMRS_STENCILFAIL) failed. (hr = 0x%08x)", hr);
return hr;
}
if (FAILED(hr = pDevice->SetRenderState( D3DMRS_STENCILPASS, StencilPass)))
{
DebugOut(DO_ERROR, L"SetRenderState(D3DMRS_STENCILPASS) failed. (hr = 0x%08x)", hr);
return hr;
}
if (FAILED(hr = pDevice->SetRenderState( D3DMRS_STENCILFUNC, StencilFunc)))
{
DebugOut(DO_ERROR, L"SetRenderState(D3DMRS_STENCILFUNC) failed. (hr = 0x%08x)", hr);
return hr;
}
if (FAILED(hr = pDevice->SetRenderState( D3DMRS_STENCILREF, StencilRef)))
{
DebugOut(DO_ERROR, L"SetRenderState(D3DMRS_STENCILREF) failed. (hr = 0x%08x)", hr);
return hr;
}
return S_OK;
}
|
6dcc2258eaa416cbc00ea076f3103b08da6e1d60
|
2430e49be3112f5e812c38123327acd8c6e132fb
|
/lab07/main.cpp
|
d07ab5d771d5f42af8a0491dbff06faab678bfe3
|
[] |
no_license
|
AleksandraRolka/IMN
|
e4dbce03b051f85f82bbcdadc772b48e9e23117b
|
8f6e64ec6198509b92cdc36b2c8f66e60dcc0d62
|
refs/heads/main
| 2023-03-19T04:57:15.384832
| 2021-03-09T00:43:28
| 2021-03-09T00:43:28
| 345,823,459
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 5,631
|
cpp
|
main.cpp
|
/*
* KOMENDY :
*
* make all - kompiluje program, uruchamia go tworząc odpowiednie pliki .dat oraz uruchamia skrypt gnuplota, który tworzy wykresy
* make clean - usuwa plik wykonywalny 'main' oraz pliki z roszerzeniami .o, .dat, .png
*
*/
#include <iostream>
#include <cmath>
#include <string>
#define delta 0.01
#define rho 1.0
#define mi 1.0
#define n_x 200
#define n_y 90
#define i_1 50
#define j_1 55
#define IT_MAX 20000
double** make_and_init_tab(int size1, int size2)
{
double **tab;
tab= new double* [size1];
for (int i = 0; i < size1; i++){
tab[i] = new double[size2];
}
for ( int i = 0; i < size1; i++ ){
for ( int j = 0; j < size2; j++ )
{
tab[i][j] = 0.;
}
}
return tab;
}
void delete_tab(double** tab, int size1, int size2)
{
for (int i = 0; i < size1; i++)
delete[] tab[i];
delete[] tab;
}
void WB_psi(double Q_in, double Q_out, double* y, double** psi)
{
// brzeg A (wejscie)
for( int j = j_1; j <= n_y; j++ )
psi[0][j] = ( Q_in / (2 * mi) ) * ( pow(y[j], 3.) / 3. - ( pow(y[j], 2.) / 2. ) * ( y[j_1] + y[n_y] ) + y[j] * y[j_1] * y[n_y]);
// brzeg C (wyjscie)
for( int j = 0; j <= n_y; j++ )
psi[n_x][j] = ( Q_out / (2 * mi) ) * ( pow(y[j], 3.) / 3. - ( pow(y[j], 2.) / 2. ) * y[n_y] ) + ( Q_in * pow(y[j_1], 2.) * ( -y[j_1] + 3 * y[n_y] ) ) / ( 12 * mi );
// brzeg B
for( int i = 1; i < n_x; i++ )
psi[i][n_y] = psi[0][n_y];
// brzeg D
for( int i = i_1; i < n_x; i++ )
psi[i][0] = psi[0][j_1];
// brzeg E
for( int j = 1; j <= j_1; j++ )
psi[i_1][j] = psi[0][j_1];
// brzeg F
for( int i = 1; i <= i_1; i++ )
psi[i][j_1] = psi[0][j_1];
}
void WB_dzeta(double Q_in, double Q_out, double* y, double** psi, double** dzeta)
{
// brzeg A (wejscie)
for( int j = j_1; j <= n_y; j++ )
dzeta[0][j] = ( Q_in / (2 * mi) ) * ( 2 * y[j] - y[j_1] - y[n_y] );
// brzeg C (wyjscie)
for( int j = 0; j <= n_y; j++ )
dzeta[n_x][j] = ( Q_out / (2 * mi) ) * ( 2 * y[j] - y[n_y] );
// brzeg B
for( int i = 1; i < n_x; i++ )
dzeta[i][n_y] = ( 2 / pow(delta, 2.) ) * ( psi[i][n_y-1] - psi[i][n_y] );
// brzeg D
for( int i = i_1; i < n_x; i++ )
dzeta[i][0] = ( 2 / pow(delta, 2.) ) * ( psi[i][1] - psi[i][0] );
// brzeg E
for( int j = 1; j < j_1; j++ )
dzeta[i_1][j] = ( 2 / pow(delta, 2.) ) * ( psi[i_1+1][j] - psi[i_1][j] );
// brzeg F
for( int i = 1; i <= i_1; i++ )
dzeta[i][j_1] = ( 2 / pow(delta, 2.) ) * ( psi[i][j_1+1] - psi[i][j_1] );
// wierzchołek E/F
dzeta[i_1][j_1] = 0.5 * ( dzeta[i_1-1][j_1] + dzeta[i_1][j_1-1] );
}
bool brzeg(int i, int j)
{
return ((i == i_1)&&(j <= j_1)) || ((j == j_1)&&(i <= i_1)) || ( j == 0 ) || ( i == 0 ) || ( i == n_x ) || ( j == n_y );
}
void relaxation_NavierStokes( double Q_in )
{
std::string fn = "Q=" + std::to_string(Q_in) + ".dat";
FILE *file_Q = fopen(&fn[0], "w");
double Q_out;
int omega;
double** psi, ** dzeta;
double** u;
double** v;
double* y = new double [n_y + 1];
psi = make_and_init_tab( n_x + 1, n_y + 1);
dzeta = make_and_init_tab( n_x + 1, n_y + 1);
u = make_and_init_tab( n_x + 1, n_y + 1);
v = make_and_init_tab( n_x + 1, n_y + 1);
for (int i = 0; i <= n_y; i++){
y[i] = delta * i;
}
Q_out = Q_in * ( ( pow(y[n_y], 3.) - pow(y[j_1], 3.) - 3 * y[j_1] * pow(y[n_y], 2.) + 3 * pow(y[j_1], 2.) * y[n_y] ) / pow(y[n_y], 3.) );
// ustalamy WB psi:
WB_psi( Q_in, Q_out, y, psi );
// for(int i=0; i < n_x+1; i++){
// for(int j=0; j<n_y+1; j++){
// printf("[%d][%d] = %g\n",i,i,psi[i][j]);
// }
// printf("\n");
// }
for( int it = 1; it <= IT_MAX; it++)
{
if( it < 2000 ){
omega = 0;
}else{
omega = 1;
}
for( int i = 1; i < n_x; i ++){
for ( int j = 1; j < n_y; j ++)
{
if(!brzeg(i,j))
{
psi[i][j] = 0.25 * ( psi[i+1][j] + psi[i-1][j] + psi[i][j+1] + psi[i][j-1] - pow(delta, 2.) * dzeta[i][j] );
dzeta[i][j] = 0.25 * ( dzeta[i+1][j] + dzeta[i-1][j] + dzeta[i][j+1] + dzeta[i][j-1] ) - omega * ( rho / ( 16. * mi ) ) * ( ( psi[i][j+1] - psi[i][j-1] )*( dzeta[i+1][j] - dzeta[i-1][j] ) - ( psi[i+1][j] - psi[i-1][j] )*( dzeta[i][j+1] - dzeta[i][j-1] ) ) ;
u[i][j] = ( psi[i][j + 1] - psi[i][j - 1] ) / ( 2 * delta );
v[i][j] = -( psi[i + 1][j] - psi[i - 1][j] ) / ( 2 * delta );
}
}
}
// kontrola WB dzeta:
WB_dzeta( Q_in, Q_out, y, psi, dzeta );
// kontrola błędu
double gamma = 0.;
int j_2 = j_1 + 2;
for (int i = 1; i < n_x; i++)
gamma += ( psi[i + 1][j_2] + psi[i - 1][j_2] + psi[i][j_2 + 1] + psi[i][j_2 - 1] - 4 * psi[i][j_2] - pow(delta, 2.) * dzeta[i][j_2] );
printf("it = %d \t%g\n", it, gamma);
}
for (int i = 1; i < n_x; i++)
{
for (int j = 1; j < n_y; j++)
if (i <= i_1 && j <= j_1){
fprintf(file_Q, "%f\t %f\t %g\t %g\t %g\t %g\n", i * delta, j * delta, psi[i_1][j_1], dzeta[i_1][j_1], u[i][j], v[i][j]);
}
else
fprintf(file_Q, "%f\t %f\t %g\t %g\t %g\t %g\n", i * delta, j * delta, psi[i][j], dzeta[i][j], u[i][j], v[i][j]);
fprintf(file_Q, "\n");
}
delete(psi);
delete(dzeta);
delete(u);
delete(v);
delete[] y;
fclose(file_Q);
}
int main()
{
double Q1 = -1000.;
double Q2 = -4000.;
double Q3 = 4000.;
relaxation_NavierStokes(Q1);
relaxation_NavierStokes(Q2);
relaxation_NavierStokes(Q3);
}
|
8ec79af7e963b9212c6b2c10c51040af89b73ec2
|
13500b849db6d62ac7ee94e32ddd76681af79d6b
|
/1039/1039极简.cpp
|
3d9929d4ca735f5d4149ed5f575097a1a4c637cf
|
[] |
no_license
|
syjsu/noip-with-vue.js
|
055a90d13dedd2c00b2d449a39fa4f3128270480
|
6076cd41b5343dd3ff18b4c4afec207021f8c78b
|
refs/heads/master
| 2020-03-17T20:15:42.362689
| 2018-05-24T05:10:27
| 2018-05-24T05:10:27
| 133,900,801
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 82
|
cpp
|
1039极简.cpp
|
#include<iostream>
using namespace std;int n;int main(){cin>>n;cout<<(1<<n);}
|
bfc4a472d63557d686424a0556a5f2d1c9f4a916
|
1468b015f5ce882dbd39dc75c9a6560179a936fb
|
/Emulator/Core/Event/AEntity.cpp
|
3b0bb773bccf7b15dcb7408d0ba2578c8c01a666
|
[] |
no_license
|
Escobaj/HearthstoneResolver
|
cbfc682993435c01f8b75d4409c99fb4870b9bb3
|
c93b693ef318fc9f43d35e81931371f626147083
|
refs/heads/master
| 2021-04-30T22:31:01.247134
| 2017-01-31T00:05:32
| 2017-01-31T00:05:32
| 74,474,216
| 8
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 835
|
cpp
|
AEntity.cpp
|
//
// Created by escoba_j on 13/12/2016.
//
#include "AEntity.h"
AEntity::AEntity(Minion *minion) {
_type = EntityType::MINION;
_reference = _minion = minion;
_spell = NULL;
_weapon = NULL;
_heroPower = NULL;
}
AEntity::AEntity(Spell *spell) {
_type = EntityType::SPELL;
_reference = _spell = spell;
_minion = NULL;
_heroPower = NULL;
_weapon = NULL;
}
AEntity::AEntity(Weapon *weapon) {
_type = EntityType::WEAPON;
_reference = _weapon = weapon;
_minion = NULL;
_heroPower = NULL;
_spell = NULL;
}
AEntity::AEntity(HeroPower *heroPower) {
_type = EntityType::HERO_POWER;
_heroPower = heroPower;
_minion = NULL;
_spell = NULL;
_weapon = NULL;
}
ACard *AEntity::get_reference() const {
return _reference;
}
|
0abd76f40ebada01da927e5a1af92ab195069fff
|
7bf639453e7d114caf0d7c4e85b8384203ff1e41
|
/exercise_4/src/main.cpp
|
491f7968a7723b64e1552926bde18fc074a070c6
|
[] |
no_license
|
Lira999/lviv_cpp_training
|
5698ce74a3d34291ba8d021a9d86a35bcf684b97
|
756be5a47ef4fb532a3b36762c6e1175804e6ccd
|
refs/heads/master
| 2020-06-15T02:02:57.634826
| 2019-07-31T09:37:56
| 2019-07-31T09:37:56
| 195,180,914
| 1
| 0
| null | 2019-07-31T09:37:57
| 2019-07-04T06:21:45
|
C++
|
UTF-8
|
C++
| false
| false
| 3,752
|
cpp
|
main.cpp
|
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <sstream>
#include <vector>
#include <memory>
#include "IRecord.h"
#include "Course.h"
#include "Exam.h"
#include "Student.h"
#include "Teacher.h"
#include "Show.h"
void add_student_to_map(std::istringstream &iss_record, std::vector<std::pair<int, std::unique_ptr<IRecord> > > &container) {
int id;
std::string buf, name;
std::getline(iss_record, buf, ',');
id = std::stoi(buf);
std::getline(iss_record, name, ',');
std::unique_ptr<IRecord> student = std::make_unique<Student>(id, name);
container.emplace_back(student->getId(), std::move(student));
}
void add_teacher_to_map(std::istringstream &iss_record, std::vector<std::pair<int, std::unique_ptr<IRecord> > > &container) {
int id;
std::string buf, name;
std::getline(iss_record, buf, ',');
id = std::stoi(buf);
std::getline(iss_record, name, ',');
std::unique_ptr<IRecord> teacher = std::make_unique<Teacher>(id, name);
container.emplace_back(teacher -> getId(), std::move(teacher));
}
void add_course_to_map(std::istringstream &iss_record, std::vector<std::pair<int, std::unique_ptr<IRecord> > > &container) {
int id, teacher_id;
std::string buf, name;
std::getline(iss_record, buf, ',');
id = std::stoi(buf);
std::getline(iss_record, name, ',');
std::getline(iss_record, buf, ',');
teacher_id = stoi(buf);
std::unique_ptr<IRecord> course = std::make_unique<Course>(id, name, teacher_id);
container.emplace_back(course -> getId(), std::move(course));
}
void add_exam_to_map(std::istringstream &iss_record, std::vector<std::pair<int, std::unique_ptr<IRecord> > > &container) {
int id, course_id, student_id, result;
std::string buf;
std::getline(iss_record, buf, ',');
id = stoi(buf);
std::getline(iss_record, buf, ',');
course_id = std::stoi(buf);
std::getline(iss_record, buf, ',');
student_id = std::stoi(buf);
std::getline(iss_record, buf, ',');
result = std::stoi(buf);
std::unique_ptr<IRecord> exam = std::make_unique<Exam>(id, course_id, student_id, result);
container.emplace_back(exam -> getId(), std::move(exam));
}
int main(int args, char **argv) {
if (args > 1) {
std::ifstream input_file("./src/records.txt");
std::string line, marker, command_type, table_name = "";
std::vector<std::pair<int, std::unique_ptr<IRecord> > > teachers;
std::vector<std::pair<int, std::unique_ptr<IRecord> > > students;
std::vector<std::pair<int, std::unique_ptr<IRecord> > > courses;
std::vector<std::pair<int, std::unique_ptr<IRecord> > > exams;
if (input_file.is_open()) {
while (std::getline(input_file, line)) {
std::istringstream iss_record(line);
std::getline(iss_record, marker, ',');
if (marker == "T") {
add_teacher_to_map(iss_record, teachers);
} else if (marker == "S") {
add_student_to_map(iss_record, students);
} else if (marker == "C") {
add_course_to_map(iss_record, courses);
} else if (marker == "E") {
add_exam_to_map(iss_record, exams);
}
}
} else {
std::cerr << "Unable to open file." << std::endl;
return 1;
}
std::vector<std::pair<std::string, std::vector<std::pair<int, std::unique_ptr<IRecord> > > > > container;
sort(teachers.begin(), teachers.end());
container.emplace_back("TEACHERS", std::move(teachers));
sort(students.begin(), students.end());
container.emplace_back("STUDENTS", std::move(students));
sort(courses.begin(), courses.end());
container.emplace_back("COURSES", std::move(courses));
sort(exams.begin(), exams.end());
container.emplace_back("EXAMS", std::move(exams));
command_type = argv[1];
if (args > 2) {
table_name = argv[2];
}
Show command(container, command_type, table_name);
command.execute();
}
return 0;
}
|
6d5a8cacb11f4ea123556f447e2541c3e4a7f45b
|
c6ff94c55bd9406d7189cb142c68ba6b006fa639
|
/Source/NorilskDemo/Private/NorilskGameEngine.cpp
|
4ab01b238e3cc9ae1ec0ce5c6f67bd04fb4e2138
|
[] |
no_license
|
MarkovDmitriy/NorilskIncident
|
9de6759a973fcc2b409b84cb1ad4f3cd667e2cbe
|
d090c605efba0e5ee7a7917d5a936238e8f5705e
|
refs/heads/master
| 2020-03-26T19:59:26.046195
| 2018-09-21T20:42:28
| 2018-09-21T20:42:28
| 145,297,786
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 737
|
cpp
|
NorilskGameEngine.cpp
|
// Fill out your copyright notice in the Description page of Project Settings.
#include "NorilskDemo.h"
#include "NorilskGameEngine.h"
UNorilskGameEngine::UNorilskGameEngine(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
void UNorilskGameEngine::Init(IEngineLoop* InEngineLoop)
{
// Note: Lots of important things happen in Super::Init(), including spawning the player pawn in-game and
// creating the renderer.
Super::Init(InEngineLoop);
}
void UNorilskGameEngine::HandleNetworkFailure(UWorld *World, UNetDriver *NetDriver, ENetworkFailure::Type FailureType, const FString& ErrorString)
{
// standard failure handling.
Super::HandleNetworkFailure(World, NetDriver, FailureType, ErrorString);
}
|
e575ce1127d31b84179e304b831ae7169d85f6d1
|
bf8cb8e228ebb98c6d0b4eff507034f252510944
|
/VizItem.h
|
93d86d6bbe6a6535eee5cd593beb041ef69d00d6
|
[] |
no_license
|
Liu8018/Cocos2dPractice
|
f0d51fb30880314eaf6a5c4a2e193f6bf7424c79
|
3574f7015e7cdb4a66e639fa2aa3e08cd0d8630d
|
refs/heads/master
| 2021-05-22T14:24:54.746923
| 2020-04-16T01:29:06
| 2020-04-16T01:29:06
| 252,961,103
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 316
|
h
|
VizItem.h
|
#ifndef VIZITEM_H
#define VIZITEM_H
#include "cocos2d.h"
class VizItem
{
public:
VizItem();
cocos2d::SpriteFrame *getItemFrame(int);
private:
//
std::vector<std::vector<std::string>> m_itemTable;
//
cocos2d::Vector<cocos2d::Sprite*> m_itemSpriteList;
};
#endif // VIZITEM_H
|
3450117ab4db1711e164844a50ad147fd8ed499a
|
3413409ca1f9aac0d1f70963ab441dec950bb65c
|
/permutation.cpp
|
d560214928db91325387745519566c02c31d0a40
|
[] |
no_license
|
Michael-ale000/cses-problem
|
0f4d63bb1340ec2bfebc9232a549ce49d7decbcc
|
ab098efa1e34d321d9eddf242ceadaedfff0021f
|
refs/heads/main
| 2023-05-09T02:08:03.571536
| 2021-05-30T05:10:48
| 2021-05-30T05:10:48
| 371,385,299
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 545
|
cpp
|
permutation.cpp
|
#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
ll int n;
cin>>n;
if(n==1)
{
cout<<"1 ";
}
if((n==2)||(n==3)){
cout<<"NO SOLUTION";
}
else{
for (int i = 2; i <=n; i+=2)
{
cout<<i<<" ";
}
for (int i = 1; i <=n; i+=2)
{
cout<<i<<" ";
}
}
return 0;
}
|
713ecd5ab318e3f928a026e64c35936b9dae7670
|
757f949fd92e6986d287e54257e65b6a05506d10
|
/src/swcomponents/cloud_publisher/src/cloud_publisher.cpp
|
a656629882f3aa74cdeb6eabf79e42e04775a510
|
[
"Apache-2.0"
] |
permissive
|
tlund80/MARVIN
|
5a5d7da37aaa1e901a6e493589c4d7b3cb9802ae
|
9fddfd4c8e298850fc8ce49c02ff437f139309d0
|
refs/heads/master
| 2021-05-01T02:57:47.572095
| 2015-03-27T13:51:07
| 2015-03-27T13:51:07
| 23,161,076
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,617
|
cpp
|
cloud_publisher.cpp
|
// 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 University of Southern Denmark 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 UNIVERSITY OF SOUTHERN DENMARK 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.
/**
\author Thomas Sølund
\file cloud_publisher.cpp
\brief
*/
// STL
#include <sstream>
// ROS
#include <ros/ros.h>
#include <sensor_msgs/PointCloud2.h>
#include <std_msgs/Empty.h>
#include <tf/transform_broadcaster.h>
#include <pcl_ros/transforms.h>
#include <pcl_ros/io/pcd_io.h>
#include <pcl/io/pcd_io.h>
// Eigen
#include <Eigen/Eigen>
// Variables
bool hasExtrinsic;
Eigen::Matrix4f Teig = Eigen::Matrix4f::Identity(); // Scaled to [m]
ros::Publisher pub; // Publisher for aligned point cloud
int main(int argc, char **argv)
{
ros::init(argc, argv, "cloud_publisher");
ros::NodeHandle n("~");
// Namespace name is expected to be equal to the target frame name
const std::string& ns = n.getNamespace();
// Get arguments
std::string source;
int rate;
if(!n.getParam(ns+"/source", source))
source = "/world";
if(!n.getParam(ns+"/rate", rate))
rate = 30;
// Setup publisher of aligned point clouds
const int queuesize = 10;
// ros::Subscriber sub = n.subscribe<sensor_msgs::PointCloud2>("/"+ns+"/depth_registered/points", queuesize, callback);
sensor_msgs::PointCloud2 _cloud;
pub = n.advertise<sensor_msgs::PointCloud2>("/"+ns+"/depth_registered/points", queuesize);
// Load extrinsics if available
hasExtrinsic = n.hasParam(ns+"/position/data");
if(hasExtrinsic) {
XmlRpc::XmlRpcValue xmldata;
n.getParam(ns+"/position/data", xmldata);
ROS_ASSERT(xmldata.getType() == XmlRpc::XmlRpcValue::TypeArray);
ROS_ASSERT(xmldata.size() == 1);
const std::string sdata = xmldata[0];
// Read rotation and translation
std::istringstream iss(sdata);
tf::Matrix3x3 R;
tf::Vector3 t;
// Row-wise
for(int i = 0; i < 3; ++i) {
tf::Vector3& Ri = R[i];
iss >> Ri.m_floats[0] >> Ri.m_floats[1] >> Ri.m_floats[2] >> t[i];
}
// Create transformation
tf::Transform T;
T.setBasis(R);
T.setOrigin(t);
// Convert extrinsics to Eigen format [m]
Teig << R[0][0],R[0][1],R[0][2],0.001f*t[0],\
R[1][0],R[1][1],R[1][2],0.001f*t[1],\
R[2][0],R[2][1],R[2][2],0.001f*t[2],\
0,0,0,1;
// Create broadcaster
tf::TransformBroadcaster br;
// Setup rate
ros::Rate r(rate);
//Load pointcloud
if(n.hasParam(ns+"/cloud")){
std::string path;
if(!n.getParam(ns+"/cloud", path))
ROS_ERROR_STREAM("Could not get " << ns+"/cloud" << " from parameter server");
if(pcl::io::loadPCDFile(path,_cloud))
ROS_ERROR_STREAM("Could not get lod pointCloud from: " << path.c_str());
}
_cloud.header.frame_id = ns;
// Start
while(ros::ok()) {
br.sendTransform(tf::StampedTransform(T, ros::Time::now(), source, ns));
ros::spinOnce();
_cloud.header.stamp = ros::Time::now();
pub.publish(_cloud);
r.sleep();
}
} else {
ROS_ERROR_STREAM("No extrinsics available for \"" << ns << "\"!");
ros::spin();
}
return 0;
}
|
c46cb1ec511160292e65f45049e150710cf541a2
|
3ea34c23f90326359c3c64281680a7ee237ff0f2
|
/Data/1301/H
|
1a27f8b98aa394862a7a1a71e545ea8044e41775
|
[] |
no_license
|
lcnbr/EM
|
c6b90c02ba08422809e94882917c87ae81b501a2
|
aec19cb6e07e6659786e92db0ccbe4f3d0b6c317
|
refs/heads/master
| 2023-04-28T20:25:40.955518
| 2020-02-16T23:14:07
| 2020-02-16T23:14:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 92,143
|
H
|
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source Cstd::filesystem::create_directory();FD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "Data/1301";
object H;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField nonuniform List<vector>
4096
(
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(0,0,0)
(0,0,0)
(5.29866663155012e-13,1.32414071674531e-11,-1.46106714123846e-11)
(5.55283310858744e-13,2.90890399768133e-11,-1.37726019696423e-11)
(2.98245709190829e-13,4.87505889056976e-11,-1.25809636288091e-11)
(-9.56182008202781e-13,7.56996242896725e-11,-1.04405789252886e-11)
(-2.299496648223e-12,1.17679460661487e-10,-8.05249462745855e-12)
(-3.49293842254086e-12,1.85973771171176e-10,-5.37364763492806e-12)
(-5.90957825754649e-12,2.96307655969623e-10,-2.42028567022025e-12)
(-8.8048230963258e-12,4.8007223435016e-10,-2.63612656708747e-13)
(-1.09122916008793e-11,7.85892825398765e-10,4.33788687324525e-13)
(-1.17101092568874e-11,1.21333380719266e-09,1.90082199609948e-13)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.51508009260171e-13,1.28986359712125e-11,-3.09857710564957e-11)
(2.23852179258481e-13,2.81579713349968e-11,-2.92871735701012e-11)
(2.99024020726106e-13,4.68991491696702e-11,-2.72092566733919e-11)
(-1.1501135671439e-12,7.36251727018003e-11,-2.34160943175376e-11)
(-3.64086451676486e-12,1.15633234502235e-10,-1.83618726618313e-11)
(-6.31752177815865e-12,1.83674158808391e-10,-1.28319928900715e-11)
(-1.02227765208803e-11,2.94802468332176e-10,-7.49541029000104e-12)
(-1.50532695027733e-11,4.80238509128526e-10,-3.67173581495474e-12)
(-1.93946488786497e-11,7.86690550720284e-10,-1.6189545016034e-12)
(-2.11382059212694e-11,1.21375369735652e-09,-7.69749430698443e-13)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.46459542424121e-12,1.17055464831198e-11,-5.223508568918e-11)
(1.67462972903821e-12,2.59078985233485e-11,-4.97325783198293e-11)
(1.91738114745655e-12,4.3089218535588e-11,-4.64006913454179e-11)
(1.01730314812126e-12,6.84110809443247e-11,-4.13373151855409e-11)
(-1.45843076722984e-12,1.09937641260194e-10,-3.44282164632107e-11)
(-5.05160267871442e-12,1.78347915980034e-10,-2.61279275124484e-11)
(-1.01639147707176e-11,2.91377469517088e-10,-1.80803847354285e-11)
(-1.72543892650059e-11,4.79264117313308e-10,-1.22949629436132e-11)
(-2.33554210973302e-11,7.86912047170896e-10,-8.03187872938056e-12)
(-2.63671731525506e-11,1.21418244061022e-09,-4.20269381378588e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.28070031126741e-12,1.01797209457002e-11,-7.99464151437994e-11)
(2.93485555009264e-12,2.25872768692315e-11,-7.78669375038301e-11)
(4.25040362325085e-12,3.77707230539167e-11,-7.41319142435393e-11)
(3.82517771168824e-12,6.08408119468574e-11,-6.84033625437564e-11)
(2.03525799355431e-12,1.00630536362153e-10,-6.09526318741296e-11)
(-2.00029057540954e-12,1.69254488867923e-10,-5.10931559199139e-11)
(-8.89341087277117e-12,2.8534353102622e-10,-4.03620545053622e-11)
(-1.76723793765191e-11,4.76179496877588e-10,-3.08729945663212e-11)
(-2.38635964897309e-11,7.84641098172268e-10,-2.18092349387067e-11)
(-2.65556518618425e-11,1.21154296755076e-09,-1.14671405283775e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.53969860169754e-12,8.54763104502808e-12,-1.20475785350315e-10)
(3.67635473571611e-12,1.8617923033359e-11,-1.18727388099863e-10)
(5.86496948149923e-12,3.13848460510014e-11,-1.15002947008694e-10)
(6.17993761853815e-12,5.16950049496824e-11,-1.09694565440531e-10)
(4.95314962466124e-12,8.83366740221625e-11,-1.03300760472189e-10)
(6.38797571784147e-13,1.55749586706071e-10,-9.46441089406316e-11)
(-8.14584914991228e-12,2.74491699275999e-10,-8.38662009493297e-11)
(-1.67219116718413e-11,4.68605935863418e-10,-6.75378317693949e-11)
(-2.17993337784135e-11,7.76835280091587e-10,-4.81474486804347e-11)
(-2.35802694132601e-11,1.20265295939807e-09,-2.50682991085492e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.20123621289879e-12,6.67792846178192e-12,-1.85166565318607e-10)
(2.99818667383613e-12,1.44089559897829e-11,-1.83617037449577e-10)
(5.71433835346189e-12,2.4998488589833e-11,-1.80579330306855e-10)
(6.90925145235362e-12,4.2570200399102e-11,-1.76474463361787e-10)
(6.06385579739451e-12,7.58452324526796e-11,-1.71228757078107e-10)
(2.81237266347575e-12,1.41325216181582e-10,-1.62753959821275e-10)
(-4.66543687504422e-12,2.60484659203005e-10,-1.48559315692316e-10)
(-1.19153140448049e-11,4.52528741201266e-10,-1.24321780987169e-10)
(-1.72714108648381e-11,7.57164804804532e-10,-9.04017992798976e-11)
(-2.02775714618913e-11,1.18042723785634e-09,-4.75622337583232e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.76176366118782e-12,4.98972428391881e-12,-2.92701278888787e-10)
(3.09653502175257e-12,1.08169374971162e-11,-2.90825139211408e-10)
(5.21111082078558e-12,1.95599021532187e-11,-2.88301565066321e-10)
(6.48346090370971e-12,3.4465034998621e-11,-2.85046559654201e-10)
(5.71252178309602e-12,6.40262797687918e-11,-2.80364384100301e-10)
(2.8617513292359e-12,1.24813941519012e-10,-2.70841860730304e-10)
(-1.94742713786686e-12,2.38852825401782e-10,-2.50108046903025e-10)
(-6.21133763297612e-12,4.21786904068988e-10,-2.15738828536138e-10)
(-1.03951880096514e-11,7.16748612425262e-10,-1.61022448668298e-10)
(-1.33178981155221e-11,1.13409665477633e-09,-8.7160898664304e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.51178075513404e-12,3.43832390038307e-12,-4.74597661180659e-10)
(4.34529949232129e-12,7.98870800291916e-12,-4.72978066578855e-10)
(6.63680514297348e-12,1.51290290194159e-11,-4.70743329452221e-10)
(8.63306482739188e-12,2.78972112361737e-11,-4.67528783023557e-10)
(8.64718885877945e-12,5.38917186457817e-11,-4.61756666856744e-10)
(6.12282576008825e-12,1.0682954202086e-10,-4.49172015564651e-10)
(2.75360554400456e-12,2.0568764469001e-10,-4.21943654431476e-10)
(1.11921376259409e-12,3.68357470610723e-10,-3.70860710450512e-10)
(-1.2784656746955e-12,6.43680636479272e-10,-2.86833529531346e-10)
(-4.29722938510374e-12,1.04685153554866e-09,-1.62320131735996e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.89651579744607e-12,1.72412931464164e-12,-7.78292823078279e-10)
(6.41236407756426e-12,5.11685638415051e-12,-7.7721015834203e-10)
(9.45585329194492e-12,1.08380060819982e-11,-7.75257804109121e-10)
(1.13409004910322e-11,2.10747590153143e-11,-7.71361545607531e-10)
(1.07447203535586e-11,4.08655505198193e-11,-7.63254937424581e-10)
(9.21646619572309e-12,8.0058757710281e-11,-7.46058105466734e-10)
(8.19575485742091e-12,1.54379544529712e-10,-7.10514233699646e-10)
(8.11796855651299e-12,2.84364780394931e-10,-6.41474914247298e-10)
(6.97578766571009e-12,5.19120548007064e-10,-5.18650089419933e-10)
(4.33518957279728e-12,8.83997811396437e-10,-3.11609055073717e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.16035166959486e-12,6.10034878002084e-13,-1.20469433665281e-09)
(7.70514780694987e-12,2.51225650120089e-12,-1.20406007845082e-09)
(1.0271421614951e-11,5.84403108622121e-12,-1.20226450139785e-09)
(1.09155250923187e-11,1.17878994997991e-11,-1.19778021947198e-09)
(9.63784014197646e-12,2.24997432203684e-11,-1.18796399819497e-09)
(9.56828080145556e-12,4.35139606478914e-11,-1.1675596026976e-09)
(1.10825492920826e-11,8.4520606213323e-11,-1.12563570158311e-09)
(1.30066761089221e-11,1.61174836867147e-10,-1.04210708520809e-09)
(1.2694551351003e-11,3.11745862493391e-10,-8.81150624442898e-10)
(9.69617187082661e-12,5.71465758270713e-10,-5.6976931292777e-10)
(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,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,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)
(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,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,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)
(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,0,0)
(0,0,0)
(3.45684166577117e-14,2.42338814620953e-11,-2.6779076264114e-11)
(2.9471361183725e-13,5.27963098334153e-11,-2.57454325912662e-11)
(9.30074169402946e-15,8.82802708243539e-11,-2.35362651968662e-11)
(-1.26981471816846e-12,1.37855911207905e-10,-1.98653965712229e-11)
(-2.9321174815163e-12,2.13316854396297e-10,-1.47455370173707e-11)
(-4.14668802438928e-12,3.31995679187551e-10,-8.74867599246725e-12)
(-6.56106363350717e-12,5.20316016257664e-10,-2.74767111599336e-12)
(-9.66849921897047e-12,8.40381913060458e-10,6.98469757791447e-13)
(-1.14663104348196e-11,1.4526158620042e-09,1.16704845934081e-12)
(-1.19399172216091e-11,2.85551735801669e-09,3.35227913111116e-13)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-5.39999890425755e-14,2.33068515084913e-11,-5.75357730726783e-11)
(3.96008094203492e-13,5.05995741846032e-11,-5.51267125885968e-11)
(3.15792298961613e-13,8.46217963016237e-11,-5.05597169584602e-11)
(-9.90243465377883e-13,1.32969272858238e-10,-4.33738924443295e-11)
(-3.47515104646292e-12,2.07685021785818e-10,-3.26834461024805e-11)
(-6.3278615498683e-12,3.26743683492516e-10,-2.02002595432642e-11)
(-1.06214521808553e-11,5.1786618412345e-10,-8.27083603672391e-12)
(-1.61316590008209e-11,8.4106232296375e-10,-1.94446850571841e-12)
(-2.046535039977e-11,1.45433187888002e-09,-1.14570310206236e-13)
(-2.23366986054661e-11,2.85676545600046e-09,8.18096238325588e-16)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.87913592311639e-13,2.0877597579974e-11,-9.65252248997109e-11)
(1.66336440874435e-12,4.59789306794731e-11,-9.28995274778413e-11)
(2.17250046925813e-12,7.73993356975643e-11,-8.58894364887818e-11)
(1.67847342325716e-12,1.22353393274853e-10,-7.53946031135799e-11)
(-4.51614820005561e-13,1.95146686537886e-10,-6.03304787650552e-11)
(-4.0057183436639e-12,3.15312153537907e-10,-4.16419534440332e-11)
(-9.91539807173212e-12,5.12649400700888e-10,-2.28454439961986e-11)
(-1.84328530435371e-11,8.41671862101672e-10,-1.34682562904524e-11)
(-2.49136570144374e-11,1.45650166742775e-09,-8.9123985655406e-12)
(-2.79303939070933e-11,2.85911922926978e-09,-4.69774102741109e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(8.33312571969098e-13,1.77519936961211e-11,-1.46679398085314e-10)
(3.1691861256747e-12,3.91317187593467e-11,-1.43050047389939e-10)
(4.90772892637714e-12,6.64780136195883e-11,-1.35332826114887e-10)
(5.52025403923759e-12,1.06647367543896e-10,-1.23449335031689e-10)
(4.46964437932619e-12,1.7532099342486e-10,-1.06969084070874e-10)
(7.73510171907914e-13,2.95223236405187e-10,-8.48420643047175e-11)
(-7.53063906162832e-12,5.02111257974348e-10,-6.05866723253117e-11)
(-1.91625779900075e-11,8.40699165575818e-10,-4.54964280899345e-11)
(-2.63998728191612e-11,1.45642115719182e-09,-3.29270627147107e-11)
(-2.91327842374795e-11,2.85786930744319e-09,-1.75590823655398e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.66100393449114e-12,1.43879511307044e-11,-2.18105552619295e-10)
(4.16088068811917e-12,3.13188033065562e-11,-2.14931991681511e-10)
(6.94294537450106e-12,5.36318542409063e-11,-2.08097778578639e-10)
(8.91093720078188e-12,8.7808768163228e-11,-1.97589022525649e-10)
(8.78793966260679e-12,1.48601074075986e-10,-1.83867859643559e-10)
(4.28526010492454e-12,2.63204487131733e-10,-1.67294470494245e-10)
(-1.04671782567857e-11,4.77703762966066e-10,-1.52175272345415e-10)
(-2.00351000986181e-11,8.32919792642741e-10,-1.18998268194041e-10)
(-2.52080080632285e-11,1.44757238222369e-09,-8.37330191172123e-11)
(-2.64228469803945e-11,2.84577080471425e-09,-4.37471040106783e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.33991252173199e-12,1.12458419933046e-11,-3.29699707518958e-10)
(3.55249802378277e-12,2.41616626425709e-11,-3.26842872446832e-10)
(7.04805784500798e-12,4.15178457886149e-11,-3.21601481406332e-10)
(9.76871056915097e-12,6.94845464617232e-11,-3.14082877209784e-10)
(9.40801122445896e-12,1.22510794650144e-10,-3.04176002853027e-10)
(5.12900319709106e-12,2.32515512996313e-10,-2.90315854549577e-10)
(-7.27113777897249e-12,4.56175614109269e-10,-2.70365471235383e-10)
(-1.50934586197809e-11,8.09029808532088e-10,-2.25371509188474e-10)
(-1.96947840070824e-11,1.41589872228303e-09,-1.62177855834953e-10)
(-2.15092221398168e-11,2.80839944648184e-09,-8.50138526096746e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.43702436734493e-12,8.22228615224258e-12,-5.11405143039374e-10)
(3.40119037086148e-12,1.79727442931286e-11,-5.08959006080823e-10)
(6.38697854246825e-12,3.14976263297886e-11,-5.05217254789417e-10)
(8.36910911225513e-12,5.40048576768928e-11,-5.00713398516262e-10)
(6.32455953611416e-12,9.87236119734194e-11,-4.94654909702236e-10)
(1.12337000130089e-13,1.97963985729329e-10,-4.82173364468834e-10)
(-3.1514647930065e-12,4.19134788356004e-10,-4.44176842846239e-10)
(-7.49828404252261e-12,7.5522786899549e-10,-3.89464055308665e-10)
(-1.1188762068016e-11,1.34491129778213e-09,-2.87854523850141e-10)
(-1.32336775517536e-11,2.72720307085884e-09,-1.54708753464822e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.60638073907137e-12,5.47112049939765e-12,-8.26181380001283e-10)
(4.98241398445683e-12,1.2824224656729e-11,-8.24453432435494e-10)
(7.71328165172764e-12,2.40104089768975e-11,-8.21651589925727e-10)
(9.68340088143853e-12,4.39017299655461e-11,-8.17906127202354e-10)
(9.08870569263129e-12,8.53695166563516e-11,-8.10941972170732e-10)
(5.66524893750136e-12,1.76890617297988e-10,-7.94546528969017e-10)
(2.97876172332981e-12,3.64232202059541e-10,-7.51750490774322e-10)
(1.08472305910575e-12,6.55399506646948e-10,-6.60672645689701e-10)
(-1.23177499768155e-12,1.21352344917042e-09,-5.09469201851198e-10)
(-3.76363696929281e-12,2.57350395005429e-09,-2.89706517383854e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.92794549783577e-12,3.18698145984133e-12,-1.43419168135159e-09)
(7.0646097276066e-12,8.45883870848816e-12,-1.43304625699172e-09)
(1.05535697861336e-11,1.7439593729765e-11,-1.4307080109936e-09)
(1.25211518236004e-11,3.37144839451508e-11,-1.42544256275482e-09)
(1.19136956951715e-11,6.67036705552779e-11,-1.41359428772517e-09)
(1.0217391491007e-11,1.35835342539834e-10,-1.3872503301424e-09)
(9.01537372146291e-12,2.70806986559721e-10,-1.32867036891969e-09)
(8.48308725693278e-12,5.02966766066864e-10,-1.20824494316896e-09)
(7.30943883310943e-12,9.93436063270885e-10,-9.93386465873283e-10)
(5.25818762503913e-12,2.28356429825199e-09,-6.21285859721268e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.13612834560684e-12,1.40680631132187e-12,-2.83734114409377e-09)
(8.42182725517796e-12,4.34544401137923e-12,-2.83615773545282e-09)
(1.16311707753064e-11,9.53783384668823e-12,-2.83359836414626e-09)
(1.28872033151055e-11,1.89594399582873e-11,-2.82687306517638e-09)
(1.17331878649762e-11,3.72493682391982e-11,-2.81165582850596e-09)
(1.11583403348515e-11,7.44777430954569e-11,-2.77860021640084e-09)
(1.20745391303794e-11,1.47261076834598e-10,-2.70799861041261e-09)
(1.32250522108841e-11,2.86242984400936e-10,-2.56376784777869e-09)
(1.30591023292651e-11,6.20621514185257e-10,-2.27907591689726e-09)
(1.13926172138115e-11,1.66167130331504e-09,-1.65952434583804e-09)
(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,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,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)
(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,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,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)
(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,0,0)
(0,0,0)
(-7.20453026583283e-14,3.32391996840279e-11,-3.54193080695454e-11)
(2.82281865938493e-13,7.02886364539828e-11,-3.3822769679002e-11)
(-3.09336089374456e-15,1.16245835637742e-10,-3.03724021220093e-11)
(-1.50303592181094e-12,1.80676100316005e-10,-2.49367136682192e-11)
(-3.29714589665268e-12,2.74346125961005e-10,-1.67374794049738e-11)
(-4.89569720536365e-12,4.13024449063128e-10,-6.64074477771338e-12)
(-7.55737237352815e-12,6.1541527569155e-10,2.44062540819507e-12)
(-1.08174878239169e-11,9.08883709762088e-10,5.65621078118734e-12)
(-1.23505067644287e-11,1.32701100110586e-09,4.45094981248953e-12)
(-1.28527872920585e-11,1.83535710634287e-09,2.00278237978909e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-3.3806544202177e-14,3.14111328676401e-11,-7.63452528604027e-11)
(4.49655968513998e-13,6.65038620096517e-11,-7.25972684127796e-11)
(3.52428388584543e-13,1.10729475857693e-10,-6.55543874147535e-11)
(-1.06481022363113e-12,1.72690601542155e-10,-5.47114713030968e-11)
(-3.42000235719866e-12,2.64569275030919e-10,-3.76439255943023e-11)
(-6.82575510172734e-12,4.04733104048612e-10,-1.5538663054147e-11)
(-1.17310362907688e-11,6.13379458028304e-10,5.5056178335655e-12)
(-1.85710963325678e-11,9.11676768864863e-10,1.12286847260597e-11)
(-2.27505273545107e-11,1.33081449995219e-09,8.26086144239813e-12)
(-2.468965377823e-11,1.83856644537031e-09,4.04285389933253e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-1.21799464048873e-14,2.74605754149566e-11,-1.27785287371016e-10)
(1.50048534039309e-12,5.90806735096216e-11,-1.22592156924516e-10)
(2.59898917239684e-12,9.95607258294719e-11,-1.12100385911382e-10)
(2.32037480532706e-12,1.55773076659366e-10,-9.55299114597179e-11)
(6.85552971816743e-13,2.43189373591259e-10,-7.02203648617768e-11)
(-2.71331065906756e-12,3.85366901621549e-10,-3.45858979411267e-11)
(-8.75444304966371e-12,6.10308155361463e-10,5.17839469418325e-12)
(-2.20160142432604e-11,9.19712702797207e-10,1.06721000382596e-11)
(-2.90478043163406e-11,1.33921038489896e-09,4.9360561759841e-12)
(-3.13782131083882e-11,1.84530279250985e-09,1.28249905407841e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.68004441553802e-13,2.26308036943275e-11,-1.92518245378559e-10)
(3.26488030397224e-12,4.88317742733885e-11,-1.87109323767385e-10)
(5.87039722168606e-12,8.30172317570015e-11,-1.75683408002019e-10)
(7.87860245865911e-12,1.3056365513088e-10,-1.5662486183117e-10)
(9.06254396257114e-12,2.07995166129917e-10,-1.27300194261069e-10)
(8.53686746600791e-12,3.46236918838297e-10,-8.22428170231093e-11)
(1.78661171117699e-12,6.02630840837174e-10,-2.12229947642245e-11)
(-2.39525704324788e-11,9.36007633588801e-10,-1.91097307527431e-11)
(-3.29190781999647e-11,1.35144631981243e-09,-2.12723330185391e-11)
(-3.45933638737967e-11,1.85167291081195e-09,-1.37347881192293e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.62955213451924e-12,1.73870668616069e-11,-2.80633994648955e-10)
(4.48380824933725e-12,3.74384094144165e-11,-2.76144160786077e-10)
(8.54819777352047e-12,6.38638052706737e-11,-2.6653384065431e-10)
(1.35139960197958e-11,9.98815317214873e-11,-2.49787062251982e-10)
(1.83048299400358e-11,1.58536887582606e-10,-2.25842204048825e-10)
(1.98550360909666e-11,2.71213071645986e-10,-1.98378119802768e-10)
(-2.21160335513991e-11,5.37235672076045e-10,-2.11435202887595e-10)
(-3.14103650653773e-11,9.54489012097063e-10,-1.39097975378985e-10)
(-3.35202632278603e-11,1.35719684239717e-09,-9.40962586687367e-11)
(-3.2798592759269e-11,1.84548700682845e-09,-4.91755550999794e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.50663329080511e-12,1.27846683468385e-11,-4.10068165508535e-10)
(4.50002533273905e-12,2.73049379950359e-11,-4.06594972714489e-10)
(9.54967310691731e-12,4.59303767397716e-11,-3.99865453465578e-10)
(1.53415249981111e-11,7.07551779085609e-11,-3.88765821720482e-10)
(1.93350455970045e-11,1.12919912948052e-10,-3.73988456554678e-10)
(1.97301471501345e-11,2.14574598349945e-10,-3.56267059838233e-10)
(-1.52242740724747e-11,5.38539807399423e-10,-3.61241692412589e-10)
(-2.44851724373591e-11,9.42503408111513e-10,-2.86320665480997e-10)
(-2.58713627312197e-11,1.32736697226675e-09,-1.99182524866817e-10)
(-2.53266991265661e-11,1.80435225139773e-09,-1.02414217804497e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.74205306182446e-12,8.87195484872189e-12,-6.01454398198541e-10)
(4.80795871620349e-12,1.91668665771312e-11,-5.99290961016432e-10)
(9.37033962155202e-12,3.17282364130416e-11,-5.9579705669329e-10)
(1.24137480099558e-11,4.72200516797958e-11,-5.92430083599593e-10)
(7.19710961995903e-12,7.02723285808103e-11,-5.93076800232652e-10)
(-1.68108161913622e-11,1.34056152072211e-10,-6.00553345048018e-10)
(-2.96166603394798e-12,5.00785734205338e-10,-5.2382991618069e-10)
(-9.27945315281991e-12,8.81663098380955e-10,-5.03867979604035e-10)
(-1.29466838413102e-11,1.24210193523054e-09,-3.50826155356558e-10)
(-1.42433102119854e-11,1.70729280879895e-09,-1.80303111000826e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.16257221294318e-12,5.82448833784742e-12,-8.85866643957843e-10)
(6.54595742286197e-12,1.34620522377115e-11,-8.84584667010608e-10)
(1.05386341749904e-11,2.38149681708323e-11,-8.82624557046081e-10)
(1.29064918711086e-11,3.94115799430737e-11,-8.81569683175875e-10)
(1.13591085915181e-11,7.25381199695366e-11,-8.8303309268526e-10)
(3.92448550092321e-12,1.69759588985924e-10,-8.87023384648432e-10)
(5.32613213903459e-12,4.54543240847727e-10,-8.64023958316936e-10)
(2.31401979968184e-12,7.28714634399704e-10,-7.36871333927028e-10)
(-9.07073565257811e-13,1.07365102866827e-09,-5.38272257881336e-10)
(-3.53050255062379e-12,1.52810486202414e-09,-2.90497662486979e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.56269628604254e-12,3.63683487250556e-12,-1.29846488651886e-09)
(8.83975842650723e-12,9.12696957866677e-12,-1.29751294545652e-09)
(1.3189881430529e-11,1.7981672632949e-11,-1.29579123496561e-09)
(1.54279207806925e-11,3.31712359352629e-11,-1.29226988844961e-09)
(1.5024040429166e-11,6.61737519489619e-11,-1.28463432272478e-09)
(1.29950297126965e-11,1.47022712158345e-10,-1.26622048626631e-09)
(1.21358576955172e-11,3.18868000455165e-10,-1.21027781604217e-09)
(1.0348391626805e-11,5.27014723165056e-10,-1.06401785994953e-09)
(8.02338176709736e-12,8.24956253462112e-10,-8.24617846813038e-10)
(5.86532284064095e-12,1.23703465924446e-09,-4.74097349433767e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.3595260156731e-12,1.74385212339563e-12,-1.80567763136912e-09)
(1.02078999594417e-11,4.95426525250477e-12,-1.80480791213426e-09)
(1.44437056525956e-11,1.0333856454852e-11,-1.80260860983169e-09)
(1.6629406602308e-11,1.96986832199135e-11,-1.7965010428416e-09)
(1.59269439996269e-11,3.95411557459762e-11,-1.78247987833833e-09)
(1.50344774416264e-11,8.34163048326531e-11,-1.75024122934695e-09)
(1.51048533315892e-11,1.66647049822238e-10,-1.67393707471208e-09)
(1.47761057295598e-11,2.84360276183144e-10,-1.51222660879519e-09)
(1.41290454555899e-11,4.72764791132502e-10,-1.23095545253218e-09)
(1.3539574691113e-11,7.61992743131623e-10,-7.60423116679301e-10)
(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,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,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)
(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,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,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)
(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,0,0)
(0,0,0)
(1.59483123199239e-13,3.84395367001848e-11,-4.13559485930353e-11)
(6.16688753255842e-13,8.02341120712887e-11,-3.94419200122938e-11)
(7.75779653692781e-14,1.32224199973109e-10,-3.49568091428489e-11)
(-1.7167714111916e-12,2.02408874166292e-10,-2.7687436046995e-11)
(-3.61702959380892e-12,3.00016316548535e-10,-1.62708734443835e-11)
(-5.68572237676848e-12,4.36815301190048e-10,-1.09924177630357e-12)
(-8.73714008327222e-12,6.21380757030374e-10,1.28210864655294e-11)
(-1.24052859579843e-11,8.49702270394518e-10,1.54571391038927e-11)
(-1.37058381781229e-11,1.10560807471837e-09,1.07941935659071e-11)
(-1.40593439396012e-11,1.3222946041515e-09,5.04191398108648e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.68766460862918e-13,3.64066588658532e-11,-8.89501234052159e-11)
(8.29963470526765e-13,7.57231040086209e-11,-8.46439837990131e-11)
(6.78262305134946e-13,1.25190504006193e-10,-7.57438574242444e-11)
(-1.21483104961615e-12,1.91577311462805e-10,-6.05289665375131e-11)
(-4.14536345769924e-12,2.86029325596924e-10,-3.60011980354053e-11)
(-8.50383356239362e-12,4.24911972016698e-10,-8.92273229416166e-13)
(-1.43828005164432e-11,6.21461618771183e-10,3.68381185120127e-11)
(-2.36392069811961e-11,8.56718421374405e-10,3.84056447459856e-11)
(-2.6928404758274e-11,1.11318719667589e-09,2.38996931790417e-11)
(-2.73831470183721e-11,1.32864053380046e-09,1.05209800762941e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-3.75538672284029e-13,3.18261414926989e-11,-1.46854291541392e-10)
(1.25761356348102e-12,6.67527346932084e-11,-1.407534358474e-10)
(2.5720087932214e-12,1.10439988154961e-10,-1.27518118069098e-10)
(2.22024973586743e-12,1.68272592064862e-10,-1.04285615862245e-10)
(2.45293512509725e-13,2.5387614024831e-10,-6.60025376388482e-11)
(-3.34762051116972e-12,3.93456956031846e-10,-1.96731948977104e-12)
(-6.57083386937584e-12,6.29922829448319e-10,9.50125950970723e-11)
(-3.25749011726491e-11,8.79784295148996e-10,7.5273468368009e-11)
(-3.76301821079523e-11,1.13154529942659e-09,3.6659196266867e-11)
(-3.64658323561606e-11,1.3418696275015e-09,1.289203750282e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.02819663127775e-13,2.56049645490692e-11,-2.17618442718378e-10)
(3.23232939758014e-12,5.40224918680863e-11,-2.10995122040283e-10)
(5.96527753716566e-12,8.87074271134794e-11,-1.96317805796631e-10)
(9.23605829792547e-12,1.32540565349661e-10,-1.69652031877831e-10)
(1.34634452719463e-11,1.96457071702778e-10,-1.23023986226323e-10)
(2.25408923994313e-11,3.15169787461511e-10,-2.76602293853815e-11)
(6.50685164608376e-11,6.84389629422456e-10,2.413454436246e-10)
(-4.02713466750158e-11,9.46977149626011e-10,1.01722313796288e-10)
(-4.62071456839701e-11,1.16752053248837e-09,2.45294550504165e-11)
(-4.21422480096483e-11,1.36037343524174e-09,8.04329389170002e-13)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.74211678640169e-12,1.90218462033804e-11,-3.1058110194467e-10)
(5.00695953697679e-12,3.996720691912e-11,-3.04530324883688e-10)
(9.73484790208648e-12,6.38666396874092e-11,-2.91337836267588e-10)
(1.86954916295591e-11,8.91678411825e-11,-2.67312036766068e-10)
(3.64577203285707e-11,1.13198904690789e-10,-2.25961179227029e-10)
(8.95505924717595e-11,1.07939271334085e-10,-1.49058291389178e-10)
(-9.57573963832876e-11,1.32567732887882e-09,-2.83053743136466e-17)
(-6.44264777901888e-11,1.12127850695531e-09,-1.03555546487334e-10)
(-4.86110966662092e-11,1.21571306806757e-09,-7.25593562496421e-11)
(-4.08393924282487e-11,1.36939780862254e-09,-4.11688972656093e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.94615399490786e-12,1.33769628166118e-11,-4.37514229132454e-10)
(5.90857750171595e-12,2.73917659885225e-11,-4.32725313569223e-10)
(1.26521816885826e-11,4.08449752071591e-11,-4.22785824247007e-10)
(2.40992860610506e-11,4.83495212138733e-11,-4.06292114565853e-10)
(4.42612332478094e-11,4.0331323361429e-11,-3.79334140045413e-10)
(1.05223226002188e-10,-1.72152190951754e-12,-3.14429797625789e-10)
(-5.23912278098962e-11,1.33347552370356e-09,-3.62239002443194e-16)
(-5.07830033209865e-11,1.14509891881038e-09,-2.87705705486441e-10)
(-3.73746327573053e-11,1.20035057653928e-09,-1.97895775750922e-10)
(-3.06814743324273e-11,1.33380031796576e-09,-1.01431994593979e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.6260823905974e-12,8.69502992799856e-12,-6.05405176361343e-10)
(7.01886873246632e-12,1.71757301029129e-11,-6.02593159696438e-10)
(1.39166347700959e-11,2.24247685391079e-11,-5.9799982601597e-10)
(2.08689363797269e-11,1.36431514300986e-11,-5.95731365976815e-10)
(1.24078630464972e-11,-4.75764099703113e-11,-6.15392780590857e-10)
(-1.29237681972356e-10,-3.51206247365406e-10,-7.62728406569876e-10)
(2.33188907471035e-11,1.56878964023016e-09,-1.68391289209213e-09)
(-9.37281341906992e-12,1.12043056280727e-09,-7.34321660500999e-10)
(-1.50188216347731e-11,1.11675744556425e-09,-3.93913443424777e-10)
(-1.53584744379899e-11,1.23528836183288e-09,-1.84044298633836e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.06824873109308e-12,5.40668142628089e-12,-8.20122644373826e-10)
(8.92093011733744e-12,1.09844450255169e-11,-8.18423819093511e-10)
(1.5317055842702e-11,1.4607587850347e-11,-8.16615069425581e-10)
(2.06102453882354e-11,1.19949429572425e-11,-8.19277361848142e-10)
(2.17137685752906e-11,1.56454469321378e-12,-8.39496692861668e-10)
(3.66193599683044e-12,3.20865049212824e-11,-9.12653115092299e-10)
(1.38487481418302e-11,6.42517241716316e-10,-1.07636789271327e-09)
(5.41485498864069e-12,7.80095249843308e-10,-7.91164141014508e-10)
(1.31062466277042e-14,9.06100364866299e-10,-5.16668347058596e-10)
(-2.95796225798978e-12,1.04991370744536e-09,-2.60365688586281e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.50373797277028e-12,3.12126429562139e-12,-1.0685065418136e-09)
(1.12907522617766e-11,7.16817010708984e-12,-1.06738906212876e-09)
(1.73163510926823e-11,1.19164970530297e-11,-1.06629487063168e-09)
(2.12649077711722e-11,1.79880079544026e-11,-1.06622091868579e-09)
(2.32428001736536e-11,3.56037290409347e-11,-1.06997564748725e-09)
(2.06587668142477e-11,1.08069252459858e-10,-1.0789569548901e-09)
(1.80968522357794e-11,3.4593663306236e-10,-1.06622318176893e-09)
(1.36028254723057e-11,5.01137563228368e-10,-8.92303291153674e-10)
(9.69434671735173e-12,6.46930593900283e-10,-6.46463662458616e-10)
(6.80988951966969e-12,7.86834020473494e-10,-3.47036645563255e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(6.23365890420802e-12,1.48383587897457e-12,-1.28265610021563e-09)
(1.29628629093744e-11,4.11250002679304e-12,-1.28227870935693e-09)
(1.86699951173671e-11,7.68165686657566e-12,-1.28093771931797e-09)
(2.23069253189526e-11,1.35318841693111e-11,-1.27758881898631e-09)
(2.32294507542245e-11,2.87687727379844e-11,-1.27011539356687e-09)
(2.21466276394203e-11,7.17967082603768e-11,-1.25019746122825e-09)
(2.00414372369717e-11,1.64345493986626e-10,-1.1886703867954e-09)
(1.78652256497444e-11,2.51892634569672e-10,-1.02963452299137e-09)
(1.63615007349941e-11,3.45303397142462e-10,-7.80496436179855e-10)
(1.5109201143569e-11,4.37786276092221e-10,-4.36901119182025e-10)
(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,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,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)
(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,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,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)
(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,0,0)
(0,0,0)
(2.78332376788172e-13,4.01032221385786e-11,-4.5737546172186e-11)
(6.42585946496873e-13,8.48257370915948e-11,-4.31679188299165e-11)
(-1.58099163578203e-13,1.39804695999896e-10,-3.75854755193076e-11)
(-2.30177131030858e-12,2.09908332874375e-10,-2.86481704378424e-11)
(-4.80167031029779e-12,3.02599044101228e-10,-1.5200862027484e-11)
(-7.70272144521957e-12,4.25708916369021e-10,3.53865436734888e-12)
(-1.14540544624286e-11,5.81807069907842e-10,2.26461102443867e-11)
(-1.47584913999388e-11,7.5278248745123e-10,2.54100977444473e-11)
(-1.55326805507913e-11,9.13821667403595e-10,1.74456325529659e-11)
(-1.53633596074858e-11,1.02355658550396e-09,8.10191387184661e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.43144227831013e-13,3.76845165064227e-11,-9.69066167442994e-11)
(9.00206411158638e-13,7.94087541416212e-11,-9.1728796422515e-11)
(2.1388726965254e-13,1.30900799819794e-10,-8.09982150838098e-11)
(-2.43788015381133e-12,1.96138363010408e-10,-6.25608979992528e-11)
(-7.10110291506171e-12,2.83868390850669e-10,-3.32893365529642e-11)
(-1.47792093189428e-11,4.07377948000232e-10,1.16819063735163e-11)
(-2.44115374275455e-11,5.80663695602791e-10,7.01285047794901e-11)
(-3.21991291888924e-11,7.61469717909221e-10,6.86390997019941e-11)
(-3.19077944062202e-11,9.23350840702424e-10,4.10657843731399e-11)
(-3.00912606431113e-11,1.03162565920377e-09,1.75963458634299e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-2.55217422667965e-13,3.2797823250212e-11,-1.56100984050549e-10)
(7.52538610313718e-13,6.90967114124507e-11,-1.49222168259075e-10)
(1.07206762785673e-12,1.13071065469852e-10,-1.34142926154589e-10)
(-3.30801772360272e-13,1.67143232984672e-10,-1.07233717847899e-10)
(-6.3708560910473e-12,2.39628788666122e-10,-6.20196917862918e-11)
(-2.20403665276731e-11,3.51574695916134e-10,2.10207972349118e-11)
(-4.12985071143703e-11,5.89672091742109e-10,2.12181762013329e-10)
(-6.11534835485512e-11,7.92704100916561e-10,1.65866126089675e-10)
(-4.98382564057326e-11,9.475326165782e-10,7.53935886915672e-11)
(-4.20776025934534e-11,1.04857055744221e-09,2.62769441775704e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.6261733071745e-13,2.61474725085496e-11,-2.26523573971569e-10)
(2.61029810292193e-12,5.50605462208741e-11,-2.19348543688489e-10)
(4.14029104442768e-12,8.80931507650978e-11,-2.02749140121516e-10)
(5.98073681357603e-12,1.23844926227543e-10,-1.73027453819573e-10)
(1.35785544299531e-12,1.5866395285454e-10,-1.24411360595054e-10)
(-3.92342644831457e-11,1.63809040815244e-10,-5.25425225596717e-11)
(-4.36596053167197e-10,6.66659746316672e-10,1.08450246033099e-16)
(-1.37379845258442e-10,8.93873686662118e-10,3.90496079541344e-10)
(-7.06745556019511e-11,9.98602697783193e-10,9.94889379178043e-11)
(-5.03622920014945e-11,1.07404980285147e-09,2.14638334533591e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.33622311217667e-12,1.96872553586936e-11,-3.16032756136136e-10)
(4.38991185150378e-12,4.03463642254481e-11,-3.09050955607449e-10)
(8.73071288078323e-12,6.10664383859116e-11,-2.93132087960013e-10)
(1.81629540591608e-11,7.83865569817136e-11,-2.64600124640563e-10)
(3.24224138200782e-11,8.76067676614232e-11,-2.14547122025333e-10)
(5.0153122631556e-11,8.16832218619124e-11,-1.29118403724202e-10)
(-7.30260784354245e-17,4.48533957837134e-16,-1.8225474015716e-17)
(-1.19243079882914e-10,1.19769722687515e-09,3.70579140787974e-17)
(-6.46390641219885e-11,1.07724520881935e-09,-2.36604336893785e-11)
(-4.64107990370382e-11,1.09338375808749e-09,-2.40615224620569e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.83917132030272e-12,1.36491029600946e-11,-4.29999332317724e-10)
(6.185124065104e-12,2.63701633089321e-11,-4.24290209265443e-10)
(1.45786786754971e-11,3.54444387458566e-11,-4.11310350331827e-10)
(3.18476813243816e-11,3.42165450608285e-11,-3.87512773211074e-10)
(6.72646241599125e-11,1.49617750139229e-11,-3.41657620111251e-10)
(1.40278516071347e-10,-2.24136145679842e-11,-2.39767543608049e-10)
(-1.08905725140123e-18,3.39590793994542e-16,-3.33122754623655e-17)
(-1.1592457705343e-10,1.16129194441514e-09,-1.65353843289088e-16)
(-5.02452829391465e-11,1.06210675965758e-09,-1.32026051432898e-10)
(-3.36015127935487e-11,1.06251219889896e-09,-8.28527244080236e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.10241422740651e-12,8.35534933088444e-12,-5.67041400873764e-10)
(8.61682012940298e-12,1.45557705163329e-11,-5.63349597442685e-10)
(1.94653554197075e-11,1.42889133463716e-11,-5.55741921985519e-10)
(4.21785594665976e-11,-4.11146101307109e-12,-5.43492427509191e-10)
(1.10602534361986e-10,-6.37518744915217e-11,-5.22284385758415e-10)
(4.08654051263202e-10,-1.93080840017146e-10,-4.50761383910041e-10)
(5.76698826970816e-17,4.67293901301316e-16,-5.77157780300034e-16)
(-9.44571753141073e-12,1.23866471804345e-09,-7.84161548314755e-10)
(-1.42308857277338e-11,9.96247000265224e-10,-3.79055589068209e-10)
(-1.40281186843814e-11,9.72114306864332e-10,-1.69392011537037e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.65484058135826e-12,4.84293637608993e-12,-7.22255601335884e-10)
(1.09284553679201e-11,7.56012625588949e-12,-7.20055890403095e-10)
(2.0670439062544e-11,3.87585756734138e-12,-7.1676626270259e-10)
(3.48365114046239e-11,-1.85927404230684e-11,-7.16504420885319e-10)
(6.083100645819e-11,-9.70222226172477e-11,-7.3490266361667e-10)
(9.13939660791854e-11,-3.81448037395671e-10,-8.29064816998701e-10)
(2.52256050971144e-11,7.84161474607756e-10,-1.27305635958144e-09)
(9.87674764761048e-12,7.80933914899248e-10,-7.91760578031296e-10)
(2.88021874035637e-12,7.70706541286149e-10,-4.71635099656612e-10)
(-2.4396387242346e-13,7.95703265348562e-10,-2.26064784685439e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(6.02368670459736e-12,2.60418896603635e-12,-8.74492525602382e-10)
(1.32522308449689e-11,4.31814211403449e-12,-8.73050140306957e-10)
(2.14772393332986e-11,3.63730124091852e-12,-8.71210735034132e-10)
(2.94757603576822e-11,-2.05770026129813e-12,-8.71088556138331e-10)
(3.90590638794462e-11,-1.0447191804225e-11,-8.79781277254681e-10)
(4.41975378925308e-11,1.46416823392374e-11,-9.08014703072021e-10)
(2.57681006962968e-11,3.38375609787486e-10,-9.52282206468532e-10)
(1.7008125435926e-11,4.55616471161581e-10,-7.58585517077412e-10)
(1.18945265797956e-11,5.19219670173217e-10,-5.20174927670371e-10)
(8.82098833776903e-12,5.65578371338974e-10,-2.66846462242217e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(7.34010392448423e-12,9.77938981993968e-13,-9.79598745039457e-10)
(1.57343728972066e-11,2.22963226999835e-12,-9.79278658564329e-10)
(2.30027516522859e-11,3.02754870072024e-12,-9.77685033590701e-10)
(2.83653840688195e-11,4.26341857170416e-12,-9.7528047839233e-10)
(3.20802911535879e-11,1.18012296944133e-11,-9.72449002432507e-10)
(3.24162614669463e-11,4.62043231013838e-11,-9.63855350887359e-10)
(2.53510674195691e-11,1.48107569465658e-10,-9.22594837123025e-10)
(2.06197734079001e-11,2.15937180282423e-10,-7.75583539204743e-10)
(1.80695808796368e-11,2.63788010904681e-10,-5.60501020569101e-10)
(1.59943580537346e-11,2.97207558191345e-10,-2.97211732920001e-10)
(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,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,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)
(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,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,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)
(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,0,0)
(0,0,0)
(1.27410666685e-13,4.17648589380503e-11,-4.74967208197573e-11)
(4.77125585851146e-13,8.67450938050995e-11,-4.48898131581717e-11)
(-1.91508064936289e-13,1.41477081781963e-10,-3.93163591263869e-11)
(-1.9791098567207e-12,2.0831926755392e-10,-3.01656454938322e-11)
(-4.81053345455754e-12,2.91856430118928e-10,-1.60248479373301e-11)
(-8.47920895348226e-12,3.98055383875091e-10,3.27349612815148e-12)
(-1.30746676574243e-11,5.25015248053384e-10,2.29924974745085e-11)
(-1.54812566664562e-11,6.53344287823012e-10,2.63484395137085e-11)
(-1.57181351684565e-11,7.61628653394986e-10,1.85963788039013e-11)
(-1.5330519435446e-11,8.2733121115584e-10,8.76658490134654e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.52017162266517e-13,3.93113844536047e-11,-9.95402530585546e-11)
(4.81667801612002e-13,8.15377696746468e-11,-9.44078824587659e-11)
(-3.9369546495178e-13,1.32042454075264e-10,-8.35607239579934e-11)
(-2.7143115743701e-12,1.93196430373301e-10,-6.49971188653761e-11)
(-7.83274365699388e-12,2.715419272897e-10,-3.51508561090964e-11)
(-1.74225556408474e-11,3.77196676014509e-10,1.03492639511999e-11)
(-3.1930528489353e-11,5.20074853427447e-10,6.99164254408925e-11)
(-3.58601968673564e-11,6.59258312825482e-10,7.13038714416975e-11)
(-3.26201317723343e-11,7.696680000615e-10,4.38510341722218e-11)
(-2.94398130180853e-11,8.34474974623974e-10,1.90466928499558e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-4.83682472461483e-13,3.45628812666459e-11,-1.57665616898362e-10)
(-2.90538302607847e-13,7.13146546292183e-11,-1.50988589254672e-10)
(-8.59225974076925e-13,1.13483301565931e-10,-1.3597013738335e-10)
(-2.24652107683072e-12,1.625417030349e-10,-1.09375337582595e-10)
(-8.44650930068002e-12,2.2448222736043e-10,-6.44232710852131e-11)
(-2.54356762052001e-11,3.15189497006748e-10,1.7371362436522e-11)
(-7.19705257652712e-11,5.15579453283498e-10,2.02953495621661e-10)
(-7.18505318960483e-11,6.81905787657841e-10,1.70479847003852e-10)
(-5.17916930967182e-11,7.89634794192652e-10,8.06389266098866e-11)
(-4.12799038252624e-11,8.49021398065447e-10,2.89114587131768e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-3.52195802506708e-13,2.8026651776148e-11,-2.25738524465312e-10)
(7.250765313696e-13,5.70118378579393e-11,-2.18488338430553e-10)
(1.44531712168923e-12,8.77547325852568e-11,-2.01721386489372e-10)
(2.82301283488754e-12,1.18399786340673e-10,-1.72327918905615e-10)
(5.46202600717123e-13,1.42539154076692e-10,-1.24943828811071e-10)
(-9.65107653975427e-12,1.27360097050489e-10,-5.79693513523311e-11)
(-1.60432726475579e-10,5.48558986067288e-10,6.1022355574213e-17)
(-1.50196243847928e-10,7.6130634248429e-10,3.88008893560096e-10)
(-7.12919621736538e-11,8.31786463721743e-10,1.08859290663536e-10)
(-4.82324137841167e-11,8.70072927837539e-10,2.6700998727312e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.92574982078877e-13,2.13665386193266e-11,-3.08022308633517e-10)
(2.44724512059663e-12,4.1839016272768e-11,-3.00597039590292e-10)
(5.82074920137744e-12,6.04908241182595e-11,-2.83724172099303e-10)
(1.22799633648166e-11,7.45482720882399e-11,-2.54079884309963e-10)
(1.96386881664392e-11,7.95971369818905e-11,-2.02777185315439e-10)
(2.51315735627186e-11,7.14604630248125e-11,-1.19463545726486e-10)
(-1.93663026873448e-17,2.26339190331489e-16,-1.71174345916186e-17)
(-5.91773266756147e-11,1.02159000317331e-09,4.2497933162357e-17)
(-4.90995261875204e-11,8.97614998452587e-10,-1.12661416048196e-11)
(-3.96007623105899e-11,8.85146490146952e-10,-1.62565272765958e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.4238018972331e-12,1.4876009350739e-11,-4.0589687724604e-10)
(5.01965792408311e-12,2.70626329451489e-11,-3.99508922021987e-10)
(1.19366269542541e-11,3.45961930314165e-11,-3.8493698183357e-10)
(2.43205342984165e-11,3.22574349116021e-11,-3.57870593123317e-10)
(4.40881971621971e-11,1.47052992967217e-11,-3.06112796559622e-10)
(7.11782312246918e-11,-1.44323274519486e-11,-2.02101407383717e-10)
(3.2494032685477e-18,1.33926853271898e-16,-2.83364079346694e-17)
(-6.12714646026784e-11,9.69581786930323e-10,-1.22507676891305e-16)
(-3.35588505716514e-11,8.78050630584261e-10,-1.07532501925479e-10)
(-2.60563451669699e-11,8.55095661239189e-10,-6.8845585964128e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.92302375112576e-12,9.31376234564418e-12,-5.15388808325075e-10)
(8.00478893269155e-12,1.47994375161361e-11,-5.10700997344813e-10)
(1.76289167224012e-11,1.30829556622551e-11,-5.00792483325302e-10)
(3.54517971258201e-11,-5.11906207702008e-12,-4.82708042457888e-10)
(7.23498806393352e-11,-5.59350456680619e-11,-4.4688666554864e-10)
(1.4626044188946e-10,-1.48327796856315e-10,-3.50818925104211e-10)
(2.15130031245821e-17,2.15549925363557e-16,-2.89780251790457e-16)
(4.31791263662274e-11,1.03201561083782e-09,-6.65769432019977e-10)
(1.64599572018789e-12,8.18550763074883e-10,-3.23656059892219e-10)
(-7.00908870564857e-12,7.7427710305762e-10,-1.44409866208764e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.6938770586315e-12,5.28443344339603e-12,-6.28725920272831e-10)
(1.08808118092328e-11,7.18159684625282e-12,-6.25526458034781e-10)
(2.06471535716734e-11,1.19260988638227e-12,-6.20188781153076e-10)
(3.66997139742543e-11,-2.48739351515207e-11,-6.15191656664274e-10)
(6.84181290272018e-11,-1.09762198805687e-10,-6.22788307823733e-10)
(1.39295788927033e-10,-3.94286389682363e-10,-6.9517157886853e-10)
(-1.02843116327895e-11,6.65769366949819e-10,-1.08946683885159e-09)
(1.50687130105757e-11,6.56877321839455e-10,-6.74121954519579e-10)
(8.79677488215408e-12,6.26474273417803e-10,-3.96873478737303e-10)
(3.81614545168029e-12,6.22255047190038e-10,-1.87853899147883e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(6.20755139325522e-12,2.52134268732385e-12,-7.28898760971728e-10)
(1.35013354161823e-11,3.57155690965798e-12,-7.26309041880498e-10)
(2.19648129776342e-11,7.63718034674099e-13,-7.22523561699639e-10)
(3.18473626410438e-11,-8.79244641784594e-12,-7.19272052832303e-10)
(4.50440681981543e-11,-2.50000096851086e-11,-7.23256295091175e-10)
(5.69024005268901e-11,-1.41847730115024e-11,-7.45865322660272e-10)
(2.23394516270132e-11,2.82396511240651e-10,-7.87894214742915e-10)
(1.82768269080396e-11,3.78362505752807e-10,-6.2065453107524e-10)
(1.39977204201717e-11,4.13554300252024e-10,-4.17532991231193e-10)
(1.03453392432348e-11,4.30954709385136e-10,-2.10040973710201e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(7.99795643134944e-12,6.79253361322616e-13,-7.89129641725425e-10)
(1.63703801935773e-11,1.43014812453823e-12,-7.87208782984698e-10)
(2.36257451546361e-11,1.06320623255305e-12,-7.83583049212447e-10)
(2.97973266806997e-11,2.88890190106854e-13,-7.78789159793379e-10)
(3.52878693028543e-11,3.79505760836747e-12,-7.74111817565694e-10)
(3.73600708039953e-11,3.10136385950891e-11,-7.65879956808107e-10)
(2.64473389669456e-11,1.2221961300265e-10,-7.31417381245688e-10)
(2.14744350546811e-11,1.76318843511013e-10,-6.06298926500337e-10)
(1.85683041352242e-11,2.05594443690671e-10,-4.28484818732585e-10)
(1.59901833250549e-11,2.20277774933151e-10,-2.21475703505124e-10)
(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,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,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)
(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,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,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)
(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,0,0)
(0,0,0)
(-2.602251041921e-14,4.20006555254884e-11,-4.82570520050413e-11)
(1.10995684504669e-13,8.62008771724308e-11,-4.57812162726331e-11)
(9.24060092018071e-14,1.38844311004935e-10,-4.09389411724756e-11)
(-9.97070232592378e-13,2.01801615123985e-10,-3.28446880458657e-11)
(-3.79437469083263e-12,2.77257637929959e-10,-1.99336453743872e-11)
(-7.33950243924594e-12,3.67882877846685e-10,-2.93430483734887e-12)
(-1.14902150707017e-11,4.7051169978584e-10,1.3789049186466e-11)
(-1.36432209590946e-11,5.69409395814192e-10,1.81893575999172e-11)
(-1.39276879324292e-11,6.47524590515859e-10,1.35900369525507e-11)
(-1.37076980022651e-11,6.91912893532135e-10,6.43378250978864e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-2.31850250591124e-13,3.98016213182444e-11,-9.98700782589927e-11)
(-1.42375653740085e-13,8.19554798501237e-11,-9.53219400711464e-11)
(-3.98148048225442e-13,1.30928330668624e-10,-8.55885410241774e-11)
(-1.90584699224435e-12,1.88648239536357e-10,-6.88267915135798e-11)
(-6.27316378802491e-12,2.5927639449005e-10,-4.20509121735366e-11)
(-1.49825381227951e-11,3.48472926013955e-10,-3.41040989759589e-12)
(-2.88225743462072e-11,4.61038000675366e-10,4.32436611724838e-11)
(-3.10548344302507e-11,5.69143363702724e-10,4.89986953734209e-11)
(-2.77825845812159e-11,6.50663532839635e-10,3.12823521653585e-11)
(-2.49395436096403e-11,6.94960254745896e-10,1.36649929654519e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-6.24480625638382e-13,3.56890918906543e-11,-1.56436809525431e-10)
(-1.00617340266897e-12,7.30508704639544e-11,-1.5045984857798e-10)
(-1.72545679414896e-12,1.14308940742442e-10,-1.36482274658759e-10)
(-3.05667087999645e-12,1.61174074262568e-10,-1.12252958122471e-10)
(-8.29806953865282e-12,2.17850512902528e-10,-7.28550605724381e-11)
(-2.31884094341076e-11,2.93631062899978e-10,-6.92018832966286e-12)
(-7.24764099312442e-11,4.3664887398723e-10,1.21799936703461e-10)
(-6.14101663285373e-11,5.72264658142648e-10,1.12815341216346e-10)
(-4.22158947290355e-11,6.5893986997122e-10,5.47089660773845e-11)
(-3.34199748842118e-11,7.01913955473113e-10,1.96021374804969e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-9.42268680426099e-13,2.98171614901877e-11,-2.21173331749313e-10)
(-8.69053824639183e-13,5.96813200815409e-11,-2.14281400699064e-10)
(-6.84241995094188e-13,9.02375731422926e-11,-1.9833196218029e-10)
(-7.09563007183424e-13,1.20999413742888e-10,-1.7103060587242e-10)
(-3.48625776325347e-12,1.47756618819825e-10,-1.28393834145042e-10)
(-1.17208548887812e-11,1.46933465604893e-10,-6.86887737895716e-11)
(1.17200714777596e-13,3.72880660756709e-10,-2.14056891922298e-11)
(-1.3133030164039e-10,5.88220096110893e-10,2.47097648480924e-10)
(-5.49622049682391e-11,6.74543932416943e-10,6.76346916518795e-11)
(-3.66049773662248e-11,7.10100414337617e-10,1.54799403420537e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-5.42164792585146e-13,2.31714999981596e-11,-2.94682180964288e-10)
(3.50760957254171e-13,4.47954700285345e-11,-2.8773925589475e-10)
(2.07109249888277e-12,6.42147892421723e-11,-2.71527591044031e-10)
(3.26810154692774e-12,8.00383654037629e-11,-2.43547396184533e-10)
(1.2168862626551e-12,8.83017267351715e-11,-1.97916086863669e-10)
(-8.43916456956683e-12,8.38172252041329e-11,-1.24758920016789e-10)
(1.34306666182712e-17,2.29437979309201e-16,-6.32336563719072e-17)
(4.09707367013191e-12,6.45556464171716e-10,-4.90792485674528e-11)
(-2.45447726474678e-11,6.92447128696707e-10,-2.96235798825358e-11)
(-2.58064606793857e-11,7.09327753792153e-10,-2.03351901228269e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.98093678262399e-13,1.6532350088466e-11,-3.78580642238065e-10)
(2.71091316469236e-12,3.01013394002461e-11,-3.72073550375308e-10)
(6.38347561314436e-12,3.94886504924545e-11,-3.57204904704847e-10)
(9.93923472337229e-12,4.1795057208745e-11,-3.30954589282209e-10)
(1.07171529510504e-11,3.25507932412598e-11,-2.84846137864798e-10)
(2.97232158175382e-12,1.17503696522399e-11,-1.95947753710454e-10)
(1.57976001335238e-17,1.53936956598435e-16,-8.40157013059976e-17)
(-1.61729090923746e-11,6.19087238705638e-10,-9.9420600509329e-11)
(-1.27458990235622e-11,6.66701209855107e-10,-1.11146655276569e-10)
(-1.40833729495147e-11,6.76119456014131e-10,-6.29382659103612e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.26454167308638e-12,1.0842812441162e-11,-4.66480696425128e-10)
(5.7141155830592e-12,1.79141552773075e-11,-4.6117612239322e-10)
(1.14348216308505e-11,1.92202779740202e-11,-4.49896108041749e-10)
(1.93852932910678e-11,9.21346250046578e-12,-4.30485517937084e-10)
(3.01092933325552e-11,-2.26360412381681e-11,-3.94969869040438e-10)
(4.14003993915371e-11,-8.26269951591857e-11,-3.08676677814854e-10)
(1.23528338677261e-17,1.92398959876855e-16,-2.64937981808633e-16)
(7.62040432368376e-11,5.9269033001926e-10,-4.31219639451375e-10)
(1.44762916937903e-11,6.04840823140123e-10,-2.48678274571569e-10)
(6.03100953141947e-13,6.04227148261003e-10,-1.17092451768398e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.25750557664514e-12,6.4415925527686e-12,-5.52166463564819e-10)
(9.15317486411652e-12,9.81192919449698e-12,-5.47989852983767e-10)
(1.60789209346044e-11,7.15276232732293e-12,-5.40209797957341e-10)
(2.82148764000119e-11,-8.80976868391571e-12,-5.30492641997648e-10)
(5.60392109514215e-11,-6.0413280543221e-11,-5.23000509893717e-10)
(1.53489432239217e-10,-2.25418682593534e-10,-5.33508245693992e-10)
(-4.22563402556029e-11,3.98411819287524e-10,-6.2504270787481e-10)
(1.63350533149445e-11,4.58287891523201e-10,-4.80510536564701e-10)
(1.26971684584919e-11,4.77422112884879e-10,-3.07655241639102e-10)
(7.26258410865807e-12,4.84722930669351e-10,-1.49651153113791e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(5.45992162800783e-12,3.10624547069703e-12,-6.2340682307445e-10)
(1.18572640204599e-11,5.19423826161135e-12,-6.19854742144771e-10)
(1.84138159124154e-11,4.37165350161657e-12,-6.1343642856706e-10)
(2.67502682919459e-11,-9.67376921326219e-13,-6.05801600648e-10)
(3.88580284737848e-11,-8.78767352522809e-12,-5.99440119539536e-10)
(5.37328810029407e-11,6.79615323368453e-12,-5.96594980403605e-10)
(1.52766661973089e-11,2.04843710511547e-10,-5.88190098561983e-10)
(1.71989493057787e-11,2.86680366779483e-10,-4.78685867204209e-10)
(1.44655594605226e-11,3.20768048566206e-10,-3.27645666733764e-10)
(1.09812999850399e-11,3.34446452457175e-10,-1.6530001178251e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(6.75635105194434e-12,9.94950629298026e-13,-6.63531614501949e-10)
(1.41747945458654e-11,2.28532469916884e-12,-6.60522025722349e-10)
(1.98950619681204e-11,2.71150076590235e-12,-6.54352487110916e-10)
(2.54088746431218e-11,2.90153131651175e-12,-6.4595223899814e-10)
(3.08510661536349e-11,6.87960715762165e-12,-6.34946970572088e-10)
(3.3911133836665e-11,2.9350939735358e-11,-6.17321358163895e-10)
(2.35484972242447e-11,9.55104971587015e-11,-5.75989429031927e-10)
(1.99791707979429e-11,1.37808448258875e-10,-4.75558130182851e-10)
(1.71536325984179e-11,1.60218629787345e-10,-3.34608654382129e-10)
(1.47922547530721e-11,1.69835842647636e-10,-1.71883025866736e-10)
(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,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,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)
(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,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,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)
(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,0,0)
(0,0,0)
(-3.0282403554996e-13,4.15308388968949e-11,-4.81273436862064e-11)
(-4.85882093369775e-13,8.58149066266694e-11,-4.59166365270866e-11)
(-8.58667810732308e-14,1.36937254226333e-10,-4.1691615059124e-11)
(-7.54737316448569e-13,1.96783764321134e-10,-3.46333697152774e-11)
(-2.81247178797364e-12,2.65654469865371e-10,-2.38591150488297e-11)
(-4.65290463033646e-12,3.43382316964263e-10,-1.04621166458509e-11)
(-6.41682437370941e-12,4.27345579928233e-10,2.24540104256288e-12)
(-8.77786820022672e-12,5.05737957520059e-10,7.7342837471547e-12)
(-9.91037581344983e-12,5.66029899106208e-10,6.69585252783731e-12)
(-1.0321276706243e-11,5.9956127971263e-10,3.26982153000953e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-6.67459010833365e-13,3.93541995643819e-11,-9.78653793282884e-11)
(-9.71165314515073e-13,8.18052353548986e-11,-9.43159246589168e-11)
(-5.405076326653e-13,1.29968959279978e-10,-8.64571321848535e-11)
(-1.20756105851144e-12,1.85701311465316e-10,-7.23029073472347e-11)
(-3.48778447643971e-12,2.50940631432316e-10,-5.04758511907179e-11)
(-6.79474607889041e-12,3.28285128237563e-10,-2.14423199916996e-11)
(-1.0188481859003e-11,4.18734223071591e-10,9.08525207350723e-12)
(-1.64597856621146e-11,5.02864544124543e-10,1.83807315455298e-11)
(-1.84415625128569e-11,5.65739205022357e-10,1.33376254249491e-11)
(-1.82282513713497e-11,5.99019252052984e-10,5.8930690412905e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-7.29511172593386e-13,3.5655808303504e-11,-1.53089360963793e-10)
(-1.61419693949537e-12,7.38996144114751e-11,-1.48337849129827e-10)
(-1.88340573026251e-12,1.15634331095087e-10,-1.36752052066901e-10)
(-2.27990791033408e-12,1.63251952422341e-10,-1.16246048222293e-10)
(-4.13904769874382e-12,2.1997947624981e-10,-8.44070233496922e-11)
(-5.21093717217794e-12,2.93630144962144e-10,-3.68363149568376e-11)
(2.76398786404107e-13,4.03070050229555e-10,2.82141585248061e-11)
(-1.92592291577922e-11,4.99447450353983e-10,3.38335676297685e-11)
(-2.27131285779079e-11,5.65686710593097e-10,1.75185893256682e-11)
(-2.20042962682334e-11,5.98356853911169e-10,5.84295283486681e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-1.18853823866712e-12,3.04463689132881e-11,-2.150616430079e-10)
(-1.9326422904161e-12,6.20790943583884e-11,-2.09238870505096e-10)
(-1.96281440283092e-12,9.48980330718852e-11,-1.95515871744841e-10)
(-2.38528639545392e-12,1.30499842782704e-10,-1.71871540743151e-10)
(-3.73642603405071e-12,1.69969364951741e-10,-1.3503220659308e-10)
(4.11230091463056e-12,2.24208188811592e-10,-7.43245250141685e-11)
(1.04494294360375e-10,3.95096323043276e-10,6.84181910300259e-11)
(-9.20371287215817e-12,5.02433330258057e-10,3.87941850641475e-11)
(-2.07106499381709e-11,5.65599553524668e-10,6.5730947650615e-12)
(-2.03523764787226e-11,5.94664169272318e-10,-2.64669822002485e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-8.45939952414582e-13,2.45263822822712e-11,-2.81265728676079e-10)
(-1.16677326519081e-12,4.86727801340445e-11,-2.75105016824677e-10)
(-1.18296361089199e-12,7.15225870734118e-11,-2.60858333700278e-10)
(-4.11989957891715e-12,9.34481080281387e-11,-2.37854616823783e-10)
(-1.61893470903134e-11,1.07986437416089e-10,-2.05278249175522e-10)
(-6.11311658007825e-11,8.38899782522671e-11,-1.68725681684923e-10)
(4.90792742654855e-11,5.07386464751034e-10,-1.74882090312303e-10)
(1.11106304512548e-11,5.2418753203774e-10,-8.74206098063174e-11)
(-8.0872435656068e-12,5.61721336468879e-10,-5.51362394847366e-11)
(-1.29333530241602e-11,5.81788266626696e-10,-2.93801231732573e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-2.1946053721232e-13,1.83292253957036e-11,-3.53705327998422e-10)
(2.94516171774577e-14,3.50525343707829e-11,-3.47410500158681e-10)
(4.01532708969534e-13,4.90685893736032e-11,-3.33951364006177e-10)
(-3.58762198578585e-12,6.03333961942807e-11,-3.13604091364952e-10)
(-2.29943967238618e-11,6.33495050773421e-11,-2.8622954927703e-10)
(-9.85979833015562e-11,4.17991294178005e-11,-2.58427338657014e-10)
(9.94204938292246e-11,4.54388279941854e-10,-2.6775796955868e-10)
(2.19500543612531e-11,4.96285068644725e-10,-1.79200549917521e-10)
(9.06098325273754e-13,5.30134466940305e-10,-1.20834243146975e-10)
(-5.12933110677735e-12,5.45504533783707e-10,-6.16304860347256e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.36118752958127e-12,1.2411534677913e-11,-4.26278683691557e-10)
(2.5363273143691e-12,2.30051324700869e-11,-4.21019734113865e-10)
(4.09174717289345e-12,3.05623422626541e-11,-4.10375966348816e-10)
(1.89287557878246e-12,3.33616022800394e-11,-3.94938514978012e-10)
(-1.84066585879561e-11,2.42506686616848e-11,-3.77641310255778e-10)
(-1.2448432605099e-10,-2.53555152541326e-11,-3.78876621407284e-10)
(3.2807759977677e-11,4.46612056011597e-10,-5.35311023006875e-10)
(2.80651168530378e-11,4.49343898755503e-10,-3.27459858299908e-10)
(1.03091791459247e-11,4.70007763932384e-10,-2.00650733919324e-10)
(3.01486677637312e-12,4.80484876801391e-10,-9.70729136984326e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(3.41624207768373e-12,7.75660502241117e-12,-4.95514019198213e-10)
(5.99081077054695e-12,1.42825589165609e-11,-4.91186239031453e-10)
(9.14287380061623e-12,1.85464189871738e-11,-4.82808272199578e-10)
(1.28803525334905e-11,1.93059764708288e-11,-4.71386036124736e-10)
(1.49213397337123e-11,1.67961165273337e-11,-4.59548016494963e-10)
(1.28090585928243e-11,3.19178616958599e-11,-4.5539197593666e-10)
(6.77959721028725e-12,2.6425671553524e-10,-4.69327411861108e-10)
(1.50872831330606e-11,3.39613828631407e-10,-3.65766754689642e-10)
(1.13471442518321e-11,3.71210858749235e-10,-2.42846231703656e-10)
(7.88790920704271e-12,3.84003121034359e-10,-1.20470144361104e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.01913553975853e-12,4.38911935612867e-12,-5.51599944634624e-10)
(8.34786400518272e-12,8.47678098936685e-12,-5.47507863898147e-10)
(1.24391407290833e-11,1.20159496536614e-11,-5.39449086295094e-10)
(1.65198789456367e-11,1.52394172274621e-11,-5.28040814661835e-10)
(2.03456086550033e-11,2.38096040336588e-11,-5.14276238965612e-10)
(2.27732126596095e-11,5.66605958345211e-11,-4.96682108670622e-10)
(1.51056481924097e-11,1.60795908153071e-10,-4.65379657899219e-10)
(1.5030667355947e-11,2.22161234644195e-10,-3.78675065122788e-10)
(1.26693232881244e-11,2.52569006397943e-10,-2.61707061610129e-10)
(1.0291898012071e-11,2.65348122577564e-10,-1.32741783741829e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(4.74171290164247e-12,1.71372706458776e-12,-5.82568971330688e-10)
(1.02905806336013e-11,3.7942528139985e-12,-5.78531857450934e-10)
(1.4206314621246e-11,6.16169924712129e-12,-5.70212398822975e-10)
(1.73051375335824e-11,9.39904271653765e-12,-5.58049709309745e-10)
(2.01050609030636e-11,1.70736937727177e-11,-5.41117279962527e-10)
(2.19301444400567e-11,3.75036928967568e-11,-5.15159251989838e-10)
(1.86276955338671e-11,7.89301016167053e-11,-4.68593876503999e-10)
(1.68381432560955e-11,1.09649901651737e-10,-3.83591570778083e-10)
(1.46466338703655e-11,1.271758543308e-10,-2.69272071696488e-10)
(1.27450715339718e-11,1.35055580430587e-10,-1.38323256856068e-10)
(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,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,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)
(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,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,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)
(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,0,0)
(0,0,0)
(-3.3689186213415e-13,4.07586663939569e-11,-4.84858756791268e-11)
(-7.01232289570933e-13,8.54211549021103e-11,-4.69987434489309e-11)
(-1.75817178563611e-13,1.36151634394469e-10,-4.35559943973668e-11)
(-4.46539127078039e-13,1.94235895973384e-10,-3.74319584584067e-11)
(-1.49563175790969e-12,2.58901708736696e-10,-2.84069047298489e-11)
(-2.26323359202408e-12,3.2792470195568e-10,-1.73429601649651e-11)
(-3.2943502216503e-12,3.9885238389748e-10,-7.00192623917815e-12)
(-4.86602358543298e-12,4.64109301900124e-10,-9.71777845286723e-13)
(-6.19365073177286e-12,5.14896479152525e-10,7.36808110928067e-13)
(-6.50942751656913e-12,5.42001333762124e-10,6.66778676100654e-13)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-5.18522419317992e-13,3.90901572531361e-11,-9.67421656018794e-11)
(-9.24336845179563e-13,8.14907216755656e-11,-9.39183096422942e-11)
(-3.60104285403936e-13,1.29745222275514e-10,-8.75012619514915e-11)
(-5.85258172025554e-13,1.84818873574052e-10,-7.57981570541758e-11)
(-1.56016049297414e-12,2.46961961609788e-10,-5.84886491082547e-11)
(-2.66733486867149e-12,3.16307205192676e-10,-3.70125116132361e-11)
(-3.81978848896789e-12,3.90890255327798e-10,-1.59302903313085e-11)
(-7.99958577100234e-12,4.59499190433528e-10,-4.11862741082727e-12)
(-1.09445116999268e-11,5.11657149002821e-10,-5.85581586202909e-13)
(-1.16727841882446e-11,5.38967325327179e-10,-1.41407186959533e-13)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-2.71583616331644e-13,3.59140635547356e-11,-1.50557234705819e-10)
(-1.37947394933169e-12,7.44243822302907e-11,-1.46430604434694e-10)
(-1.65311155167632e-12,1.17712869307718e-10,-1.36896833897524e-10)
(-1.36682314329308e-12,1.67122861071286e-10,-1.20143118751585e-10)
(-1.69964479351688e-12,2.24582959944134e-10,-9.56973853400077e-11)
(-8.39454503239693e-13,2.93746980570685e-10,-6.36000618896259e-11)
(2.63071686761983e-12,3.76850269028544e-10,-2.86185947780938e-11)
(-5.93013075773365e-12,4.51171977748613e-10,-1.27061435850532e-11)
(-1.09503350186776e-11,5.05140513701756e-10,-7.77450040392253e-12)
(-1.24686587945217e-11,5.32472530932749e-10,-4.32497103389798e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-1.09132411045856e-12,3.13634222637285e-11,-2.09047222131136e-10)
(-2.24932682631784e-12,6.41313068499461e-11,-2.04180193105753e-10)
(-2.2316994060255e-12,1.00340158774378e-10,-1.93035309121824e-10)
(-2.1728857909677e-12,1.41986232262047e-10,-1.73705107721824e-10)
(-2.46118007733207e-12,1.91308939658783e-10,-1.45496734583758e-10)
(1.68779542975227e-12,2.58186010487829e-10,-1.0682795039957e-10)
(2.1828158618506e-11,3.62904112640495e-10,-5.69591367225089e-11)
(1.26317564721747e-12,4.42410486876299e-10,-3.73665975344411e-11)
(-7.61263989733573e-12,4.9508136065349e-10,-2.71422622196001e-11)
(-1.01231720531357e-11,5.21044696265292e-10,-1.48414835655161e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-8.09494917243657e-13,2.59233871432423e-11,-2.71239802109101e-10)
(-1.79321062632683e-12,5.23148791623266e-11,-2.65769498149393e-10)
(-1.73268278757419e-12,8.03423324396658e-11,-2.53820298062683e-10)
(-3.58155539333109e-12,1.12754905499401e-10,-2.34632713232228e-10)
(-8.10498224216195e-12,1.51212404971069e-10,-2.0848756588245e-10)
(-1.28839083389236e-11,2.0977597296578e-10,-1.77937934931833e-10)
(1.46159785687015e-11,3.60716694153941e-10,-1.49239379147673e-10)
(6.72872352269039e-12,4.33060964478499e-10,-1.05040712141921e-10)
(-2.25649034847561e-12,4.78048180736586e-10,-6.9219591167393e-11)
(-6.02974335444255e-12,5.00377930122242e-10,-3.52273888073442e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-5.96597659136377e-13,2.00457031637262e-11,-3.35366894307379e-10)
(-1.38228263462557e-12,4.00455698353861e-11,-3.29729406526289e-10)
(-1.43949282131776e-12,6.05419258022287e-11,-3.17988139006552e-10)
(-3.99037015946586e-12,8.46258174626388e-11,-3.00960319554371e-10)
(-1.16977709282086e-11,1.15418504260244e-10,-2.78945238943786e-10)
(-2.21127077279155e-11,1.70988400334859e-10,-2.54807096510342e-10)
(1.86392981183929e-11,3.27294005265437e-10,-2.31691819527592e-10)
(1.05249174799126e-11,4.01394997290459e-10,-1.74985270008747e-10)
(1.82904422097114e-12,4.42674505685812e-10,-1.17474656887805e-10)
(-1.74016015917838e-12,4.61850426199028e-10,-5.94111679287206e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(7.57167607364185e-13,1.39442397266693e-11,-3.98378382308515e-10)
(6.1513310286927e-13,2.80623263323535e-11,-3.93297135891802e-10)
(6.702190775591e-13,4.30538335290405e-11,-3.83147483784448e-10)
(-1.34870333424664e-12,6.03943145474201e-11,-3.68695284259776e-10)
(-9.71679530207183e-12,8.36651052015778e-11,-3.5161771557501e-10)
(-2.53233014013974e-11,1.30625775064517e-10,-3.37558121785129e-10)
(7.31193574710768e-12,2.85352441867466e-10,-3.33909870192728e-10)
(1.09860625965118e-11,3.50664207082693e-10,-2.52731879711781e-10)
(5.52826410815146e-12,3.85602378123571e-10,-1.67177350702753e-10)
(2.42370884499754e-12,4.01209088864606e-10,-8.33734715316272e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.45594757721549e-12,8.96038242214609e-12,-4.57303956415231e-10)
(3.41862186584597e-12,1.82747625456412e-11,-4.5291555199056e-10)
(4.25110705929673e-12,2.92301939749022e-11,-4.44101953907446e-10)
(5.10889214709394e-12,4.26902767950467e-11,-4.30980044223383e-10)
(3.75181166909348e-12,6.32762171359203e-11,-4.14172107155552e-10)
(2.00176037864805e-12,1.06714268040383e-10,-3.95072538819871e-10)
(6.67974742093409e-12,2.09518734128351e-10,-3.68028930286891e-10)
(9.61935413429712e-12,2.72274430309676e-10,-2.94303652566159e-10)
(7.61290926058811e-12,3.04989092304675e-10,-2.00683049640804e-10)
(6.07276330272425e-12,3.1890011824156e-10,-1.0116889340752e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.60244709481032e-12,5.83390877848939e-12,-5.0451251378114e-10)
(4.97161457751205e-12,1.12990685397747e-11,-5.00206148387652e-10)
(6.88511950237679e-12,1.86983535700218e-11,-4.91541522132762e-10)
(8.59567776033846e-12,2.89499725105099e-11,-4.780693395314e-10)
(9.48738862093137e-12,4.67205151350063e-11,-4.59410281551376e-10)
(1.0627664825947e-11,8.01407472481611e-11,-4.32731942449306e-10)
(1.02668619523814e-11,1.39045557856398e-10,-3.90101552131059e-10)
(1.0573996835737e-11,1.83878455737389e-10,-3.15914425661215e-10)
(9.09719748697317e-12,2.09156467943216e-10,-2.19129243956508e-10)
(7.84265641721442e-12,2.20478591989415e-10,-1.1164610414496e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(2.41832608647647e-12,3.07349775999525e-12,-5.32015555764379e-10)
(5.76537481964085e-12,5.50653682525065e-12,-5.27255739601502e-10)
(8.20532435513727e-12,9.20244447118181e-12,-5.18026987012628e-10)
(9.77175090290333e-12,1.52084530749588e-11,-5.04063792125672e-10)
(1.12207267030928e-11,2.56805420051022e-11,-4.83353779490763e-10)
(1.28684618509741e-11,4.32755212446384e-11,-4.51461257428561e-10)
(1.25554914246473e-11,6.9994844652269e-11,-4.01650436140317e-10)
(1.21685458262388e-11,9.23152310393131e-11,-3.25623875699304e-10)
(1.08736733607396e-11,1.05810398191042e-10,-2.27619120877966e-10)
(9.47739510848169e-12,1.12365483642018e-10,-1.16874700928075e-10)
(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,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,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)
(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,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,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)
(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,0,0)
(0,0,0)
(-1.55514951477121e-13,3.99442074656296e-11,-4.85515634696629e-11)
(-2.13548114616877e-13,8.44503477517055e-11,-4.72950680411828e-11)
(1.06559001427633e-13,1.35189250298719e-10,-4.40494110985603e-11)
(-5.45704562936854e-14,1.92568014601082e-10,-3.8294055241859e-11)
(-6.19829195896442e-13,2.5430674283381e-10,-3.0057709503562e-11)
(-9.86770754785545e-13,3.19097679688551e-10,-2.05562793864368e-11)
(-1.36237004587097e-12,3.84287588250564e-10,-1.16718698646177e-11)
(-1.96449807504782e-12,4.43232947805044e-10,-5.40183770596834e-12)
(-2.88429114723995e-12,4.89522649562649e-10,-2.23767212152941e-12)
(-2.80864040553475e-12,5.12860049494337e-10,-6.04541538843095e-13)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-1.66284680498472e-13,3.85321970856595e-11,-9.60646095726406e-11)
(-2.75045090702867e-13,8.09911426944727e-11,-9.32012814470164e-11)
(-3.08562149053434e-14,1.29540453443421e-10,-8.69993207001982e-11)
(-1.98753615192496e-13,1.84277098406509e-10,-7.64911248035634e-11)
(-6.57296322345167e-13,2.44185483520782e-10,-6.16286789617153e-11)
(-1.18933152860829e-12,3.0922649941197e-10,-4.42223085230606e-11)
(-1.59146511019579e-12,3.76655186046028e-10,-2.72862758738423e-11)
(-3.20541891069873e-12,4.38104284145567e-10,-1.47968211733868e-11)
(-4.87205079809743e-12,4.85005227832721e-10,-7.45080318455349e-12)
(-5.3193969807675e-12,5.09446867549961e-10,-3.11411768415938e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.52427403573269e-13,3.55025842795477e-11,-1.49344092528547e-10)
(-6.201691061609e-13,7.45141368569444e-11,-1.44996277724433e-10)
(-1.03411616428289e-12,1.19001401331896e-10,-1.36163117751632e-10)
(-6.7592774563648e-13,1.69215898949463e-10,-1.21504751721312e-10)
(-5.22947958537051e-13,2.26121816759793e-10,-1.00719096222816e-10)
(-2.59951531930199e-13,2.91101135234127e-10,-7.5251945184557e-11)
(6.64422062648828e-13,3.62574266235375e-10,-4.9698776047268e-11)
(-2.10028306657184e-12,4.27552847246041e-10,-3.15872226496161e-11)
(-4.3407113404591e-12,4.75796491534233e-10,-1.92376294696532e-11)
(-5.36579516095259e-12,5.01013352885031e-10,-9.2634979129018e-12)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-5.18318015331747e-13,3.13071968789985e-11,-2.0614064209449e-10)
(-1.57778312264254e-12,6.50608077779861e-11,-2.01345439942167e-10)
(-1.56407447129785e-12,1.03308919137294e-10,-1.91529235856954e-10)
(-1.14993216638747e-12,1.47754315705327e-10,-1.74601999872524e-10)
(-1.03342957381817e-12,2.00131717762991e-10,-1.5046282716675e-10)
(2.29019274755304e-13,2.65288014564934e-10,-1.19991390547692e-10)
(4.42303791701868e-12,3.45127134900351e-10,-8.71282177192383e-11)
(3.88362730145799e-13,4.13102970999514e-10,-6.14178414671519e-11)
(-2.88023863448513e-12,4.61481648637021e-10,-4.06230883687416e-11)
(-4.29788947561193e-12,4.86384059811174e-10,-2.06022473215689e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-4.02114897424886e-13,2.59936767113583e-11,-2.65911063399953e-10)
(-1.47310138608875e-12,5.36668205701402e-11,-2.6050454780088e-10)
(-1.11986098060911e-12,8.48176086815493e-11,-2.50071889707671e-10)
(-1.59761470633006e-12,1.22465210833174e-10,-2.32520443971689e-10)
(-2.86071248193997e-12,1.68626851570099e-10,-2.08494062531588e-10)
(-2.79489149217788e-12,2.32653861011247e-10,-1.79850540519697e-10)
(3.84000045142763e-12,3.23839796565272e-10,-1.48477783247035e-10)
(2.57356973616632e-12,3.92696580631268e-10,-1.11401786717844e-10)
(-8.75017657730425e-13,4.38580568955363e-10,-7.45876736774448e-11)
(-2.72962823855849e-12,4.61483923013986e-10,-3.77966852492704e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(-1.32622003161138e-13,2.01850462148523e-11,-3.25822767151759e-10)
(-1.14030665132441e-12,4.17610610908439e-11,-3.2037720015211e-10)
(-9.79220000301023e-13,6.61463019649388e-11,-3.09968342076559e-10)
(-1.7739478548433e-12,9.68412146867662e-11,-2.93792057322679e-10)
(-4.0825143029917e-12,1.37122617076262e-10,-2.72075716611131e-10)
(-4.86535944032341e-12,1.98486212246433e-10,-2.46286964873472e-10)
(3.8743119975238e-12,2.90603800487511e-10,-2.14417012831338e-10)
(3.74509456674559e-12,3.5845603732701e-10,-1.6723118672472e-10)
(8.37682824101001e-13,4.00914562869468e-10,-1.13905286615803e-10)
(-5.09990753467912e-13,4.20957609526157e-10,-5.79399729163799e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(6.59778495193309e-13,1.46068572120333e-11,-3.8469490997501e-10)
(2.53044782217598e-13,3.02118963639723e-11,-3.79469094485847e-10)
(4.16591070599893e-14,4.89907972107619e-11,-3.69569351637542e-10)
(-7.22234266669333e-13,7.33509261203673e-11,-3.54989560001361e-10)
(-3.38750102628416e-12,1.07251351035627e-10,-3.35742711428506e-10)
(-5.06004596968071e-12,1.61750900763976e-10,-3.1293948759956e-10)
(1.96765300525312e-12,2.47292286378413e-10,-2.81390126565316e-10)
(3.82131036048361e-12,3.08875231784818e-10,-2.22443085097659e-10)
(2.33767075594587e-12,3.45786931994157e-10,-1.51759267839377e-10)
(1.35920793639258e-12,3.62507645856308e-10,-7.68349283632031e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.19401679621123e-12,1.0040820218052e-11,-4.38111199432672e-10)
(1.58071778858548e-12,2.05651982979069e-11,-4.33841801999072e-10)
(1.66103778013036e-12,3.44526646816302e-11,-4.24830822505234e-10)
(2.04125936378976e-12,5.338184328087e-11,-4.10841307560413e-10)
(1.20794533432383e-12,8.10606261803918e-11,-3.91080696386093e-10)
(1.53167263789014e-12,1.25141493760027e-10,-3.65422888619046e-10)
(3.42764597216376e-12,1.90312897916005e-10,-3.26394296464721e-10)
(4.39472578121072e-12,2.42012724887041e-10,-2.62050284262483e-10)
(3.93137738876398e-12,2.73200263273925e-10,-1.80846699592013e-10)
(3.32539614735081e-12,2.87031925429496e-10,-9.16514660183446e-11)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(1.05649271982088e-12,6.96543958066223e-12,-4.80893720718493e-10)
(2.09952003715366e-12,1.3134936592658e-11,-4.76885455811389e-10)
(2.90884599984921e-12,2.21241875169393e-11,-4.68396796215257e-10)
(3.67813921586174e-12,3.56624914703435e-11,-4.543119630701e-10)
(3.84902264876045e-12,5.66107637476573e-11,-4.33215361092037e-10)
(4.86250051122399e-12,8.76445742435998e-11,-4.02565657329807e-10)
(5.1304486866833e-12,1.29396531685916e-10,-3.55427486037611e-10)
(5.35203982909996e-12,1.65203865997797e-10,-2.86123284442276e-10)
(4.96012742759767e-12,1.87936407089018e-10,-1.98816110483546e-10)
(4.30966061965348e-12,1.98705855558503e-10,-1.01342013194793e-10)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(0,0,0)
(7.32007683594609e-13,4.01366739339045e-12,-5.06440598040026e-10)
(2.04315905601665e-12,6.74579703367133e-12,-5.01694922963041e-10)
(3.44457393936476e-12,1.09482003716389e-11,-4.92905966873353e-10)
(4.27019134295233e-12,1.824402870814e-11,-4.78513192562349e-10)
(5.00874664599591e-12,2.98100826341793e-11,-4.55998972511256e-10)
(6.33316180736186e-12,4.53689034626275e-11,-4.21180143231082e-10)
(6.52377563590737e-12,6.52227787772661e-11,-3.69478077961092e-10)
(6.47902204421616e-12,8.32487318681679e-11,-2.97731523547919e-10)
(5.93965160189049e-12,9.54224372278575e-11,-2.08003769635535e-10)
(4.96817782242157e-12,1.01673502983365e-10,-1.06641680805787e-10)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(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,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,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)
(0,0,0)
(0,0,0)
)
;
boundaryField
{
fuel
{
type fixedValue;
value uniform (0.1 0 0);
}
air
{
type fixedValue;
value uniform (-0.1 0 0);
}
outlet
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //
|
|
68c62f208a60f1a354933a75b5db66b9d40ea19c
|
291401bb1fa7f07e906f5d3551585101afbd848a
|
/Sequence.h
|
ea1cec9db4032cab12c44479c3062e4249907993
|
[] |
no_license
|
ljmotta/2019_2022_GenESyS
|
65c1dad3ab077bcfa1f4f2ac92203362cf4b5841
|
2d3331ec1998c9ac0cd88b2a826472fcff48e795
|
refs/heads/master
| 2023-04-12T14:41:39.638474
| 2021-04-24T12:34:32
| 2021-04-24T12:34:32
| 350,146,492
| 1
| 0
| null | 2021-04-09T17:39:11
| 2021-03-21T23:28:32
|
C++
|
UTF-8
|
C++
| false
| false
| 4,020
|
h
|
Sequence.h
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Sequence.h
* Author: rlcancian
*
* Created on 03 de Junho de 2019, 15:12
*/
#ifndef SEQUENCE_H
#define SEQUENCE_H
#include "ModelElement.h"
#include "ElementManager.h"
#include "PluginInformation.h"
#include "Station.h"
class SequenceStep : PersistentObject_base {
public:
class Assignment {
public:
Assignment(std::string destination, std::string expression) {
this->_destination = destination;
this->_expression = expression;
// an assignment is always in the form:
// (destinationType) destination = expression
};
void setDestination(std::string _destination) {
this->_destination = _destination;
}
std::string getDestination() const {
return _destination;
}
void setExpression(std::string _expression) {
this->_expression = _expression;
}
std::string getExpression() const {
return _expression;
}
private:
std::string _destination = "";
std::string _expression = "";
};
public:
SequenceStep(Station* station, std::list<Assignment*>* assignments = nullptr);
public: // virtual
virtual bool _loadInstance(std::map<std::string, std::string>* fields, unsigned int parentIndex);
virtual std::map<std::string, std::string>* _saveInstance(unsigned int parentIndex);
virtual bool _loadInstance(std::map<std::string, std::string>* fields);
virtual std::map<std::string, std::string>* _saveInstance();
public:
std::list<SequenceStep::Assignment*>* getAssignments() const;
void setStation(Station* _station);
Station* getStation() const;
private:
const struct DEFAULT_VALUES {
const unsigned int assignmentsSize = 0;
} DEFAULT;
Station* _station;
std::list<Assignment*>* _assignments;
};
/*!
* Sequence module
DESCRIPTION
The Sequence module is used to define a sequence for entity flow through the model.
A sequence consists of an ordered list of stations that an entity will visit. For each
station in the visitation sequence, attributes and variables may be assigned values.
Each station in the visitation sequence is referred to as a step (or jobstep) in the
sequence.
Three special-purpose attributes are provided for all entities. The Sequence attribute
(Entity.Sequence) defines the sequence that an entity is to follow; a value of 0
indicates that the entity is not following any sequence. In order for an entity to follow
a sequence, its Sequence attribute must be assigned a value (for example, in the
Assign module).
The Jobstep attribute (Entity.Jobstep) stores the entity’s current step number in the
sequence. This value is updated automatically each time an entity is transferred. You
typically do not need to assign explicitly a value to Jobstep in the model.
The PlannedStation attribute (Entity.PlannedStation) stores the number of the station
associated with the next jobstep in the sequence. This attribute is not user-assignable.
It is automatically updated whenever Entity.Sequence or Entity.JobStep changes, or
whenever the entity enters a station.
Jobstep names must be globally unique.
TYPICAL USES
Define a routing path for part processing
Define a sequence of steps patients must take upon arrival at an emergency room
*/
class Sequence : public ModelElement {
public:
public:
Sequence(Model* model, std::string name = "");
virtual ~Sequence() = default;
public:
virtual std::string show();
public: // static
static PluginInformation* GetPluginInformation();
static ModelElement* LoadInstance(Model* model, std::map<std::string, std::string>* fields);
List<SequenceStep*>* getSteps() const;
public:
protected:
virtual bool _loadInstance(std::map<std::string, std::string>* fields);
virtual std::map<std::string, std::string>* _saveInstance();
virtual bool _check(std::string* errorMessage);
private:
List<SequenceStep*>* _steps = new List<SequenceStep*>();
};
#endif /* SEQUENCE_H */
|
ae22eceb9a5d1d91d2ae596d304d229dbe4a8ed4
|
1abf842fb4aa78cb7494f1921cf4ee636d4ffd85
|
/process.h
|
2b9d203069e83a9c991a9c7c335c54b63eaa118c
|
[] |
no_license
|
cabral450/OSP2
|
d6cdda095ea27a62996c76c6dc5abcdf6406cae3
|
6d0907436cac06c9aa51ec6027b388f0fac5a405
|
refs/heads/master
| 2021-01-20T10:29:20.060251
| 2016-12-17T23:32:35
| 2016-12-17T23:32:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 419
|
h
|
process.h
|
#ifndef _PROCESS
#define _PROCESS
#include <stdio.h>
#include <stdlib.h>
#include <vector>
class burst
{
public:
int arrivalTime;
int duration;
public:
burst(int arrival, int dur){ arrivalTime = arrival; duration = dur; }
};
class process
{
public:
int memSize;
char processName;
process();
process(char name, int size){ processName = name; memSize = size;}
std::vector<burst> bursts;
};
#endif
|
23e79af62e607d0adc5afc58a53820aa97ad9e10
|
129b771015af7daf37c03c3b5a3740758a3aabe6
|
/tools/pcd_merge.cpp
|
5c99bc8da00925d20ecf4d2cd37e4e7e4bf56cea
|
[] |
no_license
|
18670025215/pcl_tools
|
54747146f678e7aedb90662904b34d9253f8712d
|
06057597b89a721e825b3f5059641b13acf64d1f
|
refs/heads/master
| 2020-04-02T17:01:53.418877
| 2018-10-24T07:59:37
| 2018-10-24T07:59:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,135
|
cpp
|
pcd_merge.cpp
|
#include <iostream>
#include <pcl/common/file_io.h>
#include <pcl/console/parse.h>
#include <pcl/console/print.h>
#include <pcl/console/time.h>
#include <pcl/features/normal_3d.h>
#include <pcl/filters/passthrough.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/registration/transforms.h>
#include <pcl/search/kdtree.h>
#include <pcl/search/search.h>
#include <pcl/segmentation/region_growing.h>
#include <pcl/visualization/cloud_viewer.h>
#include <vector>
using namespace pcl;
using namespace pcl::io;
using namespace pcl::console;
void printHelp(int, char** argv)
{
print_error("Syntax is: %s dir_in out.pcd dir_out\n", argv[0]);
}
int main(int argc, char** argv)
{
print_info("合并文件夹下所有pcd文件, use: %s -h\n", argv[0]);
if (argc != 3)
{
printHelp(argc, argv);
return (-1);
}
std::string dir = argv[1];
std::vector<std::string> file_names;
pcl::getAllPcdFilesInDirectory(dir, file_names);
std::vector<std::vector<std::string>> sub_files_index;
if (file_names.size() < 1)
{
print_error("no pcd files");
return -1;
}
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_in(new pcl::PointCloud<pcl::PointXYZ>());
pcl::PointCloud<pcl::PointXYZ> cloud_filtered, cloud_out;
// cloud_in.reserve(10000000);
cloud_out.reserve(150000000);
for (auto f : file_names)
{
f = dir + "/" + f;
pcl::io::loadPCDFile(f, *cloud_in);
Eigen::Affine3f trans = Eigen::Affine3f::Identity();
trans.prerotate(cloud_in->sensor_orientation_);
trans(0, 3) = cloud_in->sensor_origin_[0];
trans(1, 3) = cloud_in->sensor_origin_[1];
trans(2, 3) = cloud_in->sensor_origin_[2];
pcl::transformPointCloud(*cloud_in, *cloud_in, trans);
std::cout << "load " << f << " " << cloud_in->size() << " points" << std::endl;
pcl::VoxelGrid<pcl::PointXYZ> sor;
sor.setInputCloud(cloud_in);
sor.setLeafSize(0.05f, 0.05f, 0.05f);
sor.filter(cloud_filtered);
cloud_out += cloud_filtered;
}
pcl::io::savePCDFileBinary(argv[2], cloud_out);
std::cout << "save pcd file " << argv[2] << std::endl;
}
|
20b7ffedad2ecb854c2f97e9e6c6aac45644e1db
|
351f9c2a2595767fc76d195cd68adba3fc9cdbf2
|
/Airport7.h
|
ea74cca154c7624f4b7a098f264e6a9ba89ad25d
|
[] |
no_license
|
vmara2/CS211
|
645d17676f81ced3e867723cb4f3a78d713ab218
|
66cf4875065b3307affe266f37a8262a1550a8bb
|
refs/heads/master
| 2020-04-27T09:00:36.593694
| 2019-03-06T18:24:31
| 2019-03-06T18:24:31
| 174,195,905
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,462
|
h
|
Airport7.h
|
#include <cstdio>
#include <cstring>
#include <cstdlib>
class MyNode
{
private:
int val;
MyNode *next;
public:
MyNode(int v);
MyNode(int v, MyNode *n);
void setVal(int v);
int getVal();
void setNext(MyNode *n);
MyNode *getNext();
};
class MyList
{
private:
MyNode *head;
public:
MyList();
void show();
void insert(int v); // Inserts at the back of list
void remove(int v);
void clear();
int getListLength();
int getNthValue(int n);
// Queue/Stack operations
void addToFrontOfList(int v);
int getValueAtFrontOfList();
void removeValueFromFrontOfList();
bool isListEmpty();
};
class Airport
{
private:
MyList *adjecency;
bool visited;
int previous;
public:
Airport();
void setVisitedFalse();
void setVisitedTrue();
bool visitedStatus();
void setPrevious(int v);
int getPrevious();
MyList *getList();
};
class FileNode
{
private:
char *filename;
FileNode *next;
public:
FileNode(char *f);
FileNode(char *f, FileNode *n);
void setName(char *f);
char *getName();
void setNext(FileNode *n);
FileNode *getNext();
};
class FileList
{
private:
FileNode *head;
public:
FileList();
void insert(char *n);
void remove(char *n);
bool nameSearch(char *n);
};
|
d79cb4b64426a85206a73cf465d91c57cf75e4d1
|
bae2697224a462f5083ca4aedded5cb06c977868
|
/runQpsGrid_funxyzpp/runQpsGrid_funxyzpp.cpp
|
c5215166acd4e2f6161c805ddd94d0a0c6ab7824
|
[] |
no_license
|
0000duck/ICRMKinematics
|
50d7d9ef5be72ff4d72311f5430f386af561a81f
|
bf2714e765df348f1ca4efec59a2884d73e9ebde
|
refs/heads/master
| 2020-04-09T21:25:56.830596
| 2016-12-15T15:27:55
| 2016-12-15T15:27:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,973
|
cpp
|
runQpsGrid_funxyzpp.cpp
|
#include <iostream>
#include <fstream>
#include "kinematicsDLL.h"
int main(int argc, char **argv) {
printf("Starting runQpsGrid_funxyzpp\n");
for (int i = 0; i < argc; i++) {
printf("%d = %s\n", i, argv[i]);
}
// read qps file
char *fname = argv[1];
printf("\n\nOpening %s\n", fname);
FILE *pf = fopen(fname, "r");
long nrows = 0, ncols = 5, irow = 0;
double xyzG[3] = { 0,0,0 }, ppG[2] = { 0,0 };
//fscanf(pf, "%d\n", &nrows);
//printf("There are %d rows\n", nrows);
fscanf(pf, "%d,%lf,%lf,%lf,%lf,%lf\n", &nrows, &xyzG[0], &xyzG[1], &xyzG[2], &ppG[0], &ppG[1]); //%lf for long float = double
printf("There are %d rows with xyzG[%f,%f,%f] ppG[%f,%f]\n", nrows, xyzG[0],xyzG[1],xyzG[2],ppG[0],ppG[1]);
double **qps = new double*[ncols];
for (int i = 0; i < ncols; i++) {
qps[i] = new double[nrows];
}
float flt0, flt1, flt2, flt3, flt4;
for (irow = 0; irow < nrows; irow++) {
fscanf(pf, "%f,%f,%f,%f,%f\n", &flt0, &flt1, &flt2, &flt3, &flt4);
qps[0][irow] = (double)flt0;
qps[1][irow] = (double)flt1;
qps[2][irow] = (double)flt2;
qps[3][irow] = (double)flt3;
qps[4][irow] = (double)flt4;
//printf("%d: [%f %f %f %f %f]\n", irow, qps[0][irow], qps[1][irow], qps[2][irow], qps[3][irow], qps[4][irow]);
}
fclose(pf);
//irow = 33;
//printf("%d: [%f %f %f %f %f]\n", irow, qps[0][irow], qps[1][irow], qps[2][irow], qps[3][irow], qps[4][irow]);
//setup
double kn11A[11];
double nlArray[6]; //nonlinear optimization params
double jArray[10]; //joint limits
kn11A[0] = 806; kn11A[1] = -66.0; kn11A[2] = -28.0; kn11A[3] = 0; kn11A[4] = -.24; //TxyzRyz01
kn11A[5] = 8.2; //Tx23
kn11A[6] = 0; kn11A[7] = 0; kn11A[8] = 98; //Ryz34CathL
kn11A[9] = 0; kn11A[10] = 0; //Ryz45
nlArray[0] = 1e6; // maxIts
nlArray[1] = 60; // max time sec
nlArray[3] = 1e-9; // min fun val
nlArray[4] = 1e-11; // tol fun
nlArray[5] = 1e-9; //tol x
//nlArray[2] = 00; // GN_DIRECT
nlArray[2] = 8; // MLSL w/ NM
//nlArray[2] = 14; //LN_NelderMead
jArray[0] = -3; // joint minima
jArray[1] = -.8;
jArray[2] = -1;
jArray[3] = 1e-3;
jArray[4] = 0;
jArray[5] = 3; // maxima
jArray[6] = .8;
jArray[7] = 1;
jArray[8] = 5;
jArray[9] = 500;
//setup file for results
char resname[100];
sprintf(resname, "%s_res.csv", fname); printf("Writing to %s\n", resname);
pf = fopen(resname, "w+");
//run grid
int ret = 0;
double qpsi[5], xyzi[3], ppi[2], fval;
for (irow = 0; irow < nrows; irow++) {
for (int i = 0; i < 5; i++) {
qpsi[i] = qps[i][irow];
}
xyzi[0] = xyzG[0]; xyzi[1] = xyzG[1]; xyzi[2] = xyzG[2]; ppi[0] = ppG[0]; ppi[1] = ppG[1]; //set goal
ret = getFunVal_xyzpp11A(qpsi, kn11A, nlArray, jArray, xyzi, ppi, &fval);
// i,q0,q1,q2,q3,q4, x, y, z, p, p, f
fprintf(pf, "%d,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f\n", irow, qpsi[0],qpsi[1],qpsi[2],qpsi[3],qpsi[4], xyzi[0],xyzi[1],xyzi[2], ppi[0],ppi[1], fval);
}
fclose(pf);
delete[]qps;
printf("Done, press Enter\n");
std::getchar();
return 0;
}
|
4964de2f4b2744f0caa0a393a361d330353b94b7
|
616f5710199eb247a0f68bec9e9602e412e7e8bd
|
/src/platformer/entity/VultureEnemy.cpp
|
4e93438e875e094bf318b9b6d524e59cf558c52b
|
[] |
no_license
|
maximilianfuller/sphere
|
524fadfd330c661c5621a2fb7c422a2b41191117
|
65ef2e02f6f0aa177ca4938093e6063a84a77a39
|
refs/heads/master
| 2021-05-06T03:53:25.669067
| 2016-10-11T00:47:15
| 2016-10-11T00:47:15
| 114,930,166
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,223
|
cpp
|
VultureEnemy.cpp
|
#include "VultureEnemy.h"
#include "engine/world/World.h"
#include "engine/entity/Entity.h"
VultureEnemy::VultureEnemy(World *world, float power, glm::vec3 color,
glm::vec3 pos,
float speed, glm::vec3 vel, glm::vec3 acc,
glm::vec3 goal, float friction) :
Enemy(world, power, color, pos, speed, vel, acc, goal, friction)
{
}
VultureEnemy::~VultureEnemy()
{
}
void VultureEnemy::updateGoalVelocity()
{
/* Find enemy in or out of range that is weak */
if(m_delta > 0)
{
GameEntity *minEnemy = NULL;
float minTransfer = -1;
foreach(Entity *entity, m_world->getEntities())
{
GameEntity *target = dynamic_cast<GameEntity *>(entity);
float minDist = target->getLightRadius() + getLightRadius() * VULTURE_VISION;
if(glm::length2(target->getPosition() - m_pos) < minDist * minDist)
{
float transfer;
if(minTransfer < 0 || (transfer = target->getTransferRate(this)) < minTransfer
&& transfer < getTransferRate(target))
{
minTransfer = transfer;
minEnemy = target;
}
}
}
if(minEnemy)
{
glm::vec3 diff = minEnemy->getPosition() - m_pos;
if(glm::length2(diff) > 0)
{
m_goal = glm::normalize(diff);
}
}
}
/* Run away from strongest enemy */
else if(m_delta < 0)
{
GameEntity *maxEnemy = NULL;
float maxTransfer = 0;
foreach(GameEntity *target, m_targets)
{
float transfer;
if((transfer = target->getTransferRate(this)) > maxTransfer)
{
maxTransfer = transfer;
maxEnemy = target;
}
}
if(maxEnemy)
{
glm::vec3 diff = m_pos - maxEnemy->getPosition();
if(glm::length2(diff) > 0)
{
m_goal = glm::normalize(diff);
}
}
}
/* Random direction */
else
{
idle();
}
}
|
1489e949b20cd2fd60842466fa40d2fef6bd87e5
|
04c962bd3345e3ce4e57da8b8e99806c67abc07e
|
/RuleClass/Produce.h
|
e48d9fb75da524c91c0e621224fa02161509ee4f
|
[] |
no_license
|
nxdong/RuleClass
|
4040a58abfb91f1004cc559e578da7596a792914
|
129480ab5d12fe1b5911e05d28add4ca9ecd4eb6
|
refs/heads/master
| 2021-05-28T12:09:07.560961
| 2015-01-14T02:48:27
| 2015-01-14T02:48:27
| null | 0
| 0
| null | null | null | null |
GB18030
|
C++
| false
| false
| 531
|
h
|
Produce.h
|
#pragma once
#include "Rules.h"
#include <cassert>
// error define
enum produceErr
{
PRODUCE_SUCCESS,
PRODUCE_ERR
};
class CProduce
{
public:
CProduce(wstring const &src,CRules const &rule);
~CProduce();
private:
wstring const m_src; // 源串
int m_degree; // 迭代次数
CRules const m_rules; // 产生式规则
wstring m_resultstr; // 结果串
private:
int ProduceStr();
public:
// 设置遍历深度,并且产生结果串
int SetDegree(int degree);
wstring getResult()const;
};
|
c2c46d2f3e49f9e61f295bc9510b7030204e5931
|
ae04470c3c266513002c2c5c9ac9b034614930cb
|
/30XX/zoj.3027.src.1.cpp
|
266ab478237d83122df275be39a2d269333adbb1
|
[] |
no_license
|
fish-ball/acm.zju.edu.cn
|
281315b9aab0517801ca780972a327642867eb7d
|
984d48539607ed082749204a81d4aecac5bdac53
|
refs/heads/master
| 2021-03-12T19:15:13.640962
| 2018-11-16T10:34:34
| 2018-11-16T10:34:34
| 14,883,882
| 1
| 1
| null | null | null | null |
GB18030
|
C++
| false
| false
| 8,376
|
cpp
|
zoj.3027.src.1.cpp
|
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
class Point; // 点、矢量类(x 坐标和 y 坐标)
class Arrow; // 有向线段类(起点和终点)
class Line; // 直线类
class Circle; // 圆类
class Polygon; // 多边形
const double INF = 1e30;
const double EPS = 1e-8;
const double PI = acos( -1.0 );
inline bool eq( double x, double y ) { return x-y < EPS && y-x < EPS; }
inline bool ne( double x, double y ) { return x-y > EPS || y-x > EPS; }
inline bool gt( double x, double y ) { return x-y > EPS; }
inline bool ge( double x, double y ) { return y-x < EPS; }
inline bool lt( double x, double y ) { return y-x > EPS; }
inline bool le( double x, double y ) { return x-y < EPS; }
inline bool zr( double x ) { return x < EPS && x > -EPS; }
inline bool ps( double x ) { return x > EPS; }
inline bool ng( double x ) { return x < -EPS; }
inline bool nn( double x ) { return x > -EPS; }
inline bool np( double x ) { return x < EPS; }
inline bool nz( double x ) { return x > EPS || x < -EPS; }
// 通用函数
// 弧度转角度、角度转弧度、幅角主值 [-PI,PI]
inline double rad2deg( double x ) { return x / PI * 180.0; }
inline double deg2rad( double x ) { return x * PI / 180.0; }
inline double wrap( double x ) { x = fmod( x, 2.0 * PI );
if(x>PI) return x-2.0*PI; if(x<-PI) return x+2.0*PI; return x; }
inline double wrap_deg( double x ) { x = fmod( x, 360.0 );
if(x>180.0) return x-360.0; if(x<-180.0) return x+360.0; return x; }
// 点类实现
struct Point {
double x, y;
Point( double x = 0, double y = 0 ) : x( x ), y( y ) {}
inline double angle();
inline double length() { return hypot( x, y ); }
inline bool origin() { return zr( x ) && zr( y ); }
inline bool nan() { return x!=x || y!=y; }
inline bool inf() { return fabs(x)==INF || fabs(y)==INF; }
};
istream& operator >> ( istream& is, Point& p ) { return is >> p.x >> p.y; }
ostream& operator << ( ostream& os, Point p ) { return os << "(" << p.x << ", " << p.y << ")"; }
// 等价、不等、加、减、叉乘、内积、两点距离、三点面积、幅角、夹角
inline bool operator==( Point a, Point b ) { return eq(a.x, b.x) && eq(a.y, b.y); }
inline bool operator!=( Point a, Point b ) { return ne(a.x, b.x) || ne(a.y, b.y); }
inline bool operator<( Point a, Point b ) { return lt(a.x,b.x) || eq(a.x,b.x) && lt(a.y,b.y); }
inline Point operator+( Point a, Point b ) { return Point( a.x+b.x, a.y+b.y ); }
inline Point operator-( Point a, Point b ) { return Point( a.x-b.x, a.y-b.y ); }
inline double operator*( Point a, Point b ) { return a.x*b.y - a.y*b.x; }
inline double operator^( Point a, Point b ) { return a.x*b.x + a.y*b.y; }
const Point operator*( Point a, double k ) { return Point( a.x*k, a.y*k ); }
const Point operator*( double k, Point a ) { return Point( a.x*k, a.y*k ); }
const Point operator+( Point a, double k ) { return Point( a.x+k, a.y+k ); }
const Point operator+( double k, Point a ) { return Point( a.x+k, a.y+k ); }
const Point operator-( Point a, double k ) { return Point( a.x-k, a.y-k ); }
const Point operator-( double k, Point a ) { return Point( k-a.x, k-a.y ); }
const Point operator-( Point a ) { return Point( -a.x, -a.y ); }
const Point operator/( Point a, double k ) { return Point( a.x/k, a.y/k ); }
inline double dist( Point a, Point b ) { return hypot(a.x-b.x, a.y-b.y ); }
inline double area( Point a, Point b, Point p3 ) { return fabs((a-b)*(a-p3))/2.0; }
inline double Point::angle()
{ if( zr(x)&&ps(y) ) return PI / 2.0;
if( zr(x)&&ng(y) ) return -PI / 2.0;
if( ps(x)&&zr(y) ) return 0.0;
if( ps(x) ) return atan( y / x );
if( ng(x) ) return wrap( PI + atan( y / x ) );
}
inline double angle( Point a, Point b ) { return Point( a^b, a*b ).angle(); }
inline bool parallel( Point a, Point b )
{ return a.origin() || b.origin() || eq( a.angle(), b.angle() ); }
// 三角形公式:
// 有向线段类实现 a 指向 b
struct Arrow {
Point a, b;
Arrow() {}
Arrow( Point a, Point b ) : a( a ), b( b ) {}
inline double angle() { return ( b - a ).angle(); }
inline double length() { return ( b - a ).length(); }
inline bool on_arrow( Point p ) { return zr((a-p)*(p-b))&&nn((a-p)^(p-b)); }
};
// 线段是否相交(存在重合点),重合(所有点重合),平行,重叠(有不止一点重合)
inline bool cross( Arrow v, Arrow w ) {
if( v.on_arrow( w.a ) || v.on_arrow( w.b ) ||
w.on_arrow( v.a ) || w.on_arrow( v.b ) ) return true;
return ( ps((v.a-w.a)*(w.b-w.a)) ^ ps((v.b-w.a)*(w.b-w.a)) )
&& ( ps((w.a-v.a)*(v.b-v.a)) ^ ps((w.b-v.a)*(v.b-v.a)) );
}
inline bool superp( Arrow v, Arrow w )
{ return v.a==w.a && v.b==w.b || v.b==w.a && v.a==w.b; }
inline bool parallel( Arrow v, Arrow w )
{ return parallel(v.a-v.b, w.a-w.b) || parallel(v.a-v.b, w.b-w.a); }
inline bool overlap( Arrow v, Arrow w ) {
if( !parallel(v, w) || zr(v.length()) || zr(w.length()) ) return false;
if( superp( v, w ) ) return true;
if( v.b < v.a ) swap( v.a, v.b );
if( w.b < w.a ) swap( w.a, w.b );
if( w.a < v.a ) swap( v, w );
return v.b!=w.a && parallel( v.a-v.b, w.a-v.b );
}
// 直线类,给的是一般式的三个系数
struct Line {
double A, B, C;
// 一般式
Line( double A = 0, double B = 0, double C = 0 ) :
A( A ), B( B ), C( C ) {}
// 两点式
Line( Point a, Point b ) : A( b.y-a.y ), B( a.x-b.x ),
C( a.x*(a.y-b.y) + a.y*(b.x-a.x) ) {}
// 点斜式
Line( double k, Point p ) : A( k ), B( -1 ),
C( p.y - k * p.x ) {}
Line( Point p, double k ) : A( k ), B( -1 ),
C( p.y - k * p.x ) {}
// 线段生成直线
explicit Line( Arrow v ) { *this = Line( v.a, v.b ); }
};
// 直线重合、相交、平行、直线交点、线段交点、三直线围面积
inline bool superp( Line p, Line q )
{ return eq( p.A*q.B, p.B*q.A ) && eq( p.A*q.C, p.C*q.A ); }
inline bool cross( Line p, Line q )
{ return ne( p.A*q.B, p.B*q.A ); }
inline bool parallel( Line p, Line q )
{ return eq( p.A*q.B, p.B*q.A ) && ne( p.A*q.C, p.C*q.A ); }
// 垂足,反射点,点线距,线线距
double dist( Point p, Line l ) { return fabs(l.A*p.x+l.B*p.y+l.C)/hypot(l.A,l.B); }
double dist( Line l, Point p ) { return fabs(l.A*p.x+l.B*p.y+l.C)/hypot(l.A,l.B); }
double dist( Arrow a, Point p ) {
if( le( fabs( angle(a.a-p, a.a-a.b) ), PI/2.0 ) &&
le( fabs( angle(a.b-p, a.b-a.a) ), PI/2.0 ) )
return dist( p, Line( a ) );
return min( dist( p, a.a ), dist( p, a.b ) );
}
double dist( Point p, Arrow a ) { return dist( a, p ); }
double dist( Line l, Line m ) {
if( !parallel( l, m ) ) return 0.0;
if( zr( l.A ) ) return fabs(m.C/m.B*l.B-l.C)/hypot(l.A,l.B);
else return fabs(m.C/m.A*l.A-l.C)/hypot(l.A,l.B);
}
////////////////////////////////////////////////////
// 2008 CopyRight(c) by elf //
////////////////////////////////////////////////////
struct Rect {
Point a, b;
double h;
bool inside( Point p ) {
return le( a.x, p.x ) && le( p.x, b.x ) &&
le( a.y, p.y ) && le( p.y, b.y );
}
};
bool cross( Arrow k, Rect r ) {
if( r.inside( k.a ) || r.inside( k.b ) ) return true;
Point P[4] = { r.a, Point( r.b.x, r.a.y ), r.b, Point( r.a.x, r.b.y ) };
for( int i = 0; i < 4; ++i )
if( cross( Arrow( P[i], P[(i+1)%4] ), k ) ) return true;
return false;
}
double dist( Arrow k, Rect r ) {
if( cross( k, r ) ) return 0.0;
double d = INF;
Point P[4] = { r.a, Point( r.b.x, r.a.y ), r.b, Point( r.a.x, r.b.y ) };
for( int i = 0; i < 4; ++i ) {
d <?= dist( P[i], k );
d <?= dist( k.a, Arrow( P[i], P[(i+1)%4] ) );
d <?= dist( k.b, Arrow( P[i], P[(i+1)%4] ) );
}
if( ge( r.h, d ) ) return d;
return (d*d+r.h*r.h)/2.0/r.h;
}
int main() {
int N;
Point a, b;
Rect r;
while( scanf( "%d", &N ) && N ) {
scanf( "%lf%lf%lf%lf", &a.x, &a.y, &b.x, &b.y );
double ans = INF;
while( N-- ) {
scanf( "%lf%lf%lf%lf%lf", &r.a.x, &r.a.y, &r.b.x, &r.b.y, &r.h );
ans <?= dist( Arrow( a, b ), r );
}
printf( "%.4lf\n", ans );
}
}
|
5afafdef21663f8d7728a77a21214b0a9a15b57c
|
6f327b612994298821fd3e4d8fd2285bba71fd1c
|
/src/Main.cpp
|
128efaa532dc89ce68919d29f07f96850723d63a
|
[] |
no_license
|
marcielleal/sudoku_solver
|
fb7eb68eebff884d391ea7b7176049ee05fc482c
|
40ffb921b2237cae8f642735f8e29d6dae9cc59c
|
refs/heads/master
| 2020-07-07T15:12:04.636281
| 2019-08-20T14:11:03
| 2019-08-20T14:11:03
| 203,385,362
| 0
| 0
| null | 2019-08-20T13:46:37
| 2019-08-20T13:46:36
| null |
UTF-8
|
C++
| false
| false
| 776
|
cpp
|
Main.cpp
|
#include <iostream>
#include <chrono>
#include "Cell.h"
#include "Sudoku.h"
#include "Manager.h"
int main(){
//auto begin = std::chrono::high_resolution_clock::now();
/*
Sudoku sudoku("900000400500219000023080070004700298001000003090300004052007060070004980030162500");
sudoku.show_sudoku();
sudoku.solve();
//std::cout << sudoku.get_answer() << std::endl;
//sudoku.print_answer();
*/
Manager manager;
manager.display();
/*
manager.init_lists();
manager.time_test_list();
manager.export_time_csv();
*/
//manager.say_answers();
/*
auto end = std::chrono::high_resolution_clock::now();
auto dur = end - begin;
auto ms = std::chrono::duration_cast<std::chrono::milliseconds>(dur).count();
std::cout << ms << std::endl;
*/
}
|
e8059667aa280270b337b96198d409e5b9ea3e8c
|
136426d1ea1bb32ff01bddebad5a048ef80dcea7
|
/Source Code/DLL.cpp
|
a5a6215d8c99aee721aa027d8f6ab6ff61f79b15
|
[] |
no_license
|
purvakulkarni15/Polygon-Triangulation
|
e54cb5cf8b8677607b6ca277cd3a0c9fc68de36f
|
efffa285fe0899516d0dc332705dbec19416b4f1
|
refs/heads/master
| 2020-06-11T20:30:42.979787
| 2019-07-05T13:30:50
| 2019-07-05T13:30:50
| 194,076,457
| 5
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,167
|
cpp
|
DLL.cpp
|
#include "DLL.h"
Node* CreateNode(glm::vec2 data)
{
Node* newNode = (Node*)malloc(sizeof(Node));
newNode->data = data;
newNode->next = newNode;
newNode->prev = newNode;
return newNode;
}
DLL::~DLL()
{
}
DLL::DLL(glm::vec2 vertices[], int size, int formType)
{
root = CreateNode(vertices[0]);
Node* trav = root;
for (int i = 1; i < size; i++)
{
trav->next = CreateNode(vertices[i]);
trav->next->prev = trav;
trav = trav->next;
//Insert(vertices[i]);
}
if (formType == CYCLIC)
{
trav->next = root;
root->prev = trav;
}
this->size = size;
}
void DLL::Insert(glm::vec2 vertex)
{
if (root == NULL)
{
size = 1;
root = CreateNode(vertex);
return;
}
Node* last = root->prev;
Node* newNode = CreateNode(vertex);
newNode->next = root;
root->prev = newNode;
newNode->prev = last;
last->next = newNode;
size++;
}
DLL::DLL()
{
root = NULL;
size = 0;
}
void DLL::Delete(Node* ptr)
{
if (ptr != NULL)
{
ptr->prev->next = ptr->next;
ptr->next->prev = ptr->prev;
if (ptr == root)
root = ptr->next;
free(ptr);
size--;
}
}
|
d659057b98f00bad129eb859251754ea7e576a85
|
7141cb311c337e0692120a6bd29ccc9c31bb6d3a
|
/Algorithms/Greedy/LuckBalance/LuckBalance.cc
|
bbb2820f647a27b7b98b988b000afdcb8ccfd377
|
[
"MIT"
] |
permissive
|
simba101/hackerrank
|
0770c268121f15e1aa30eb4c061aa51107d4ce99
|
09e5a3b62ee4aca5fe0fcc02e674a3f495419ae6
|
refs/heads/master
| 2021-01-17T16:07:58.350889
| 2017-04-04T09:26:43
| 2017-04-04T09:26:43
| 70,776,466
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,270
|
cc
|
LuckBalance.cc
|
/*
Solution to the "LuckBalance" challenge by HackerRank:
https://www.hackerrank.com/challenges/luck-balance
by simba (szczerbiakadam@gmail.com).
*/
#include <iostream>
#include <vector>
#include <algorithm>
int main(int argc, char **argv)
{
int N, K;
std::cin >> N >> K;
std::vector<int> contests;
std::vector<int> importantContests;
int nextLuck, nextImportance;
for(int n = 0; n < N; ++n)
{
std::cin >> nextLuck >> nextImportance;
if(0 == nextImportance)
{
contests.push_back(nextLuck);
}
else
{
importantContests.push_back(nextLuck);
}
}
// Since at most K important contests may be failed,
// Let Alice fail those most luck-bringing:
std::sort(importantContests.begin(), importantContests.end(),
std::greater<int>());
// The luck is counted up finally:
int luck = 0;
for(auto it = contests.begin(); it != contests.end(); ++it)
{
luck += *it;
}
for(int i = 0; i < importantContests.size(); ++i)
{
if(i < K)
{
// Alice should fail K most-lucky contests:
luck += importantContests[i];
}
else
{
// Tough luck, Alice, you have to pass this!
luck -= importantContests[i];
}
};
std::cout << luck << std::endl;
return 0;
}
|
3ed1dd30600e26d1057cfcd9b471138a7816d74e
|
4ec65f15fe577fdff355bb4a1a38c203e4aae4dc
|
/ED/Monitoria06 - Recursão/q1.cpp
|
74bfcf0b74827c1d65196f60f56de86113a0adaf
|
[] |
no_license
|
HenrickyL/monitoria-2020.2
|
f08ffbaf7e7909bb91bc5926c3cb40149504859e
|
75f7cbc39402baa9aabc67006424631678a272c0
|
refs/heads/main
| 2023-03-04T19:10:11.701583
| 2021-02-05T21:37:32
| 2021-02-05T21:37:32
| 315,457,169
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 560
|
cpp
|
q1.cpp
|
#include<iostream>
using namespace std;
void inverte(int*v, int n, int i=0){
//caso base
if(i<n){
int aux = v[n-1];
v[n-1] = v[i];
v[i]=aux;
inverte(v,n-1,i+1);
}
//chamada da recursão
}
void printVet(int *v, int n){
for(int i=0;i<n-1;i++)
cout<<v[i]<<", ";
cout<<v[n-1];
cout<<"\n";
}
//[1,2,3,4]
//[4,3,2,1]
int main(){
int n;
cin>>n;
int v[n];
for(int i=0;i<n;i++)
cin>>v[i];
printVet(v,n);
inverte(v,n);
printVet(v,n);
return 0;
}
|
48724625decc0088a65090c9dc5352be2d4ab392
|
3aea5ebfd7f0854e0ddcf7574003728b91395540
|
/Classes/NetWork/SocketBase.h
|
b82eef60156437d6dfb018b5168750d07ea75d6f
|
[] |
no_license
|
XSimba123/TJSSE-ZNB
|
0e9ecdb6ae77f351f7402b4e0fdea73e86b87842
|
d84ceb6bebf30e06a75bbbfd7a762bd701b5c063
|
refs/heads/master
| 2020-03-19T16:42:30.500704
| 2018-06-24T16:35:53
| 2018-06-24T16:35:53
| 136,726,366
| 0
| 0
| null | null | null | null |
GB18030
|
C++
| false
| false
| 1,811
|
h
|
SocketBase.h
|
#ifndef __SOCKET_BASE_H__
#define __SOCKET_BASE_H__
#include "cocos2d.h"
#include <list>
#include <thread>
USING_NS_CC;
// 对于windows平台
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
#include <WinSock2.h>
#pragma comment(lib, "WS2_32.lib")
#define HSocket SOCKET
// 对于android平台
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#include <arpa/inet.h> // for inet_**
#include <netdb.h> // for gethost**
#include <netinet/in.h> // for sockaddr_in
#include <sys/types.h> // for socket
#include <sys/socket.h> // for socket
#include <unistd.h>
#include <stdio.h> // for printf
#include <stdlib.h> // for exit
#include <string.h> // for bzero
#define HSocket int
#endif
class SocketBase : public Ref
{
public:
SocketBase()
{
_bInitSuccess = false;
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
WORD wVersionRequested;
wVersionRequested = MAKEWORD(2, 0);
WSADATA wsaData;
int nRet = WSAStartup(wVersionRequested, &wsaData);
if (nRet != 0)
{
fprintf(stderr, "Initilize Error!\n");
return;
}
_bInitSuccess = true;
#endif
}
~SocketBase()
{
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
if (_bInitSuccess)
{
WSACleanup();
}
#endif
}
protected:
void closeConnect(HSocket socket)
{
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
close(socket);
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
closesocket(socket);
#endif
}
bool error(HSocket socket)
{
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
return socket == SOCKET_ERROR;
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
return socket < 0;
#endif
}
protected:
std::mutex _mutex;
private:
bool _bInitSuccess;
};
#endif
|
e2dade6bf2cb5a68ffac75a99e3621d2fee8a8d1
|
8e563cc721da036718e66bd11c7b48cdf184a9e1
|
/LeetCode/verysimple/20180629_01_pasacals_triangle.cpp
|
0eabbcb9976bcf13e26777e06b5b46797d347f41
|
[] |
no_license
|
c437yuyang/DayliExcercise_Old
|
98812cc734c2e20d90f9f5bb8d2cf91ef2ab25a4
|
f23d5424b64a4a3ed331f8a87e73223e2ef3fc9a
|
refs/heads/master
| 2021-05-23T01:48:01.655314
| 2021-03-01T15:23:31
| 2021-03-01T15:23:31
| 253,179,383
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 987
|
cpp
|
20180629_01_pasacals_triangle.cpp
|
/*
Given an index k, return the k th row of the Pascal's triangle.
For example, given k = 3,
Return[1,3,3,1].
Note:
Could you optimize your algorithm to use only O(k) extra space?
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
*/
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <climits>
#include <cassert>
#include <YXPUtility>
using namespace std;
using namespace yxp_utility;
class Solution
{
public:
vector<int> getRow(int rowIndex)
{
if (rowIndex == 0)
return {1};
if (rowIndex == 1)
return {1, 1};
std::vector<int> v(rowIndex + 1, 1);
auto vTemp = v;
for (int i = 2; i <= rowIndex; ++i) //从第三行开始需要循环
{
for (int j = 1; j < i; ++j) //从第二个数到倒数第二个数需要求解
v[j] = vTemp[j - 1] + vTemp[j];
vTemp = v;
}
return v;
}
};
int main()
{
Solution s;
ArrayHelper::printArr(s.getRow(4));
return 0;
}
|
2edbca2c8967e293081d0c4a31b92f71af4c510c
|
90cd27232bf33520edf59adc01f2ecc2d44bed5c
|
/ape_v1/ape_lib/src/NeurUnconsci.cpp
|
de0b434ceb6dca793641cded6cd1d3dd13ca20c0
|
[] |
no_license
|
wangxl1029/my_ape
|
b32f9f1b2b36aefc71434e36cdb5b9daa6c96732
|
ed46462ed82956e2ee43a4fbbd825f5d885a1d0b
|
refs/heads/master
| 2020-03-22T17:05:13.405650
| 2018-08-18T14:25:29
| 2018-08-18T14:25:29
| 140,371,651
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,002
|
cpp
|
NeurUnconsci.cpp
|
//
// NeurUnconsci.cpp
// ape_lib
//
// Created by alan king on 2018/8/4.
// Copyright © 2018 alan king. All rights reserved.
//
#include <atomic>
#include <iostream>
#include <mutex>
#include "ai_prop.hpp"
#include "EmotionTarget.hpp"
#include "BusClient.hpp"
#include "NeurUnconsci.hpp"
#include "NeuronalLayerPool.hpp"
namespace nsAI {namespace nsNeuronal{
}} // enclosed nsAI::nsNeuronal
using namespace nsAI::nsNeuronal;
void CReflect::operator()()
{
std::function<void(std::unique_ptr<CEmotion>)> fnSendEmotion = std::bind(&CEmotionTarget::Send, m_pMind, std::placeholders::_1);
CLayerPool layerPool(fnSendEmotion);
while (m_pCortex->isAlive())
{
auto e = m_pUnconsci->getEmotion();
if (e)
{
if (e->m_tag < CEmotion::EMOTION_E_MAX)
{
auto tag = static_cast<CEmotion_E>(e->m_tag);
switch (tag)
{
case nsAI::nsNeuronal::CEmotion_E::input_absence:
break;
case nsAI::nsNeuronal::CEmotion_E::input_test:
break;
case nsAI::nsNeuronal::CEmotion_E::input_txt:
break;
case nsAI::nsNeuronal::CEmotion_E::instinct_crying:
break;
case nsAI::nsNeuronal::CEmotion_E::instinct_sleep:
break;
case nsAI::nsNeuronal::CEmotion_E::instinct_idle:
break;
case nsAI::nsNeuronal::CEmotion_E::max:
break;
default:
break;
}
}
//e = triggerReflexUnconsciously(std::move(e));
//m_pMind->Send(std::move(e));
#if 1
std::cout << "sensor: " << e->echo() << std::endl;
layerPool.Send(std::move(e));
#else
if (static_cast<size_t>(nsAI::nsNeuronal::CEmotion_E::input_txt) == e->m_tag) {
std::cout << "sensor: " << CEmotion::echo(e->m_tag) << " hint : " << e->m_hint << std::endl;
layerPool.Send(std::make_unique<CEmotion>(e->m_hint));
}else{
std::cout << "sensor: " << CEmotion::echo(e->m_tag) << std::endl;
layerPool.Send(std::move(e));
}
#endif
}
}
layerPool.Kill();
}
|
79f2175485f2fead7f16f4ff38020676c64ff8e5
|
a65e1933f065a24927b8906869d12e148420b000
|
/ÒOP/Lab 1/1/main.cpp
|
0d962938bc8b70a20d9856f2a2b32a7a5df0f799
|
[] |
no_license
|
26prajval98/4th-Sem-Lab
|
ffa471ce90f8e0d2500a1415e30bf4c7e7d8d847
|
690d3febc8a7ab57a83acda65b91516e88e4eafa
|
refs/heads/master
| 2020-04-08T04:26:24.176009
| 2018-11-25T10:04:32
| 2018-11-25T10:04:32
| 159,016,430
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 692
|
cpp
|
main.cpp
|
#include <iostream>
#define PI 3.14
using namespace std;
int geo(int a, int b, int c){
cout<<"Cuboid selected"<<endl;
return a*b*c;
};
int geo(int a, int b){
cout<<"Cylinder selected"<<endl;
return PI*a*a*b;
};
int geo(int a){
cout<<"Cube selected"<<endl;
return a*a*a;
};
int main(){
int a, b, c;
int option;
cout<<"1:Cuboid, 2:Cylinder, 3:Cube\n";
cin>>option;
if(option == 1){
cin>>a>>b>>c;
cout<<geo(a,b,c);
}
else if(option == 2){
cin>>a>>b;
cout<<geo(a,b);
}
else if(option == 3){
cin>>a;
cout<<geo(a);
}
else{
cout<<"Invalid input\n";
}
return 0;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.