Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fluidity
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mavt-cse
fluidity
Commits
bf7ab94c
Commit
bf7ab94c
authored
Jun 01, 2017
by
Sergey Litvinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update del.m
parent
750b00f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
poc/del.m
poc/del.m
+5
-3
poc/ker/cubic.mac
poc/ker/cubic.mac
+5
-0
No files found.
poc/del.m
View file @
bf7ab94c
...
...
@@ -11,8 +11,10 @@ y = rand(n, 1);
function w = wk(r)
global rc
A = 1;
r /= rc; r *= 2;
if r
<
1;
w =
1
-
3/2
*r
^2
r = abs(r); r /= rc; r *= 2;
if r
<
1;
w =
(r^2*(3*r-6)+4)/4;
elseif
r
<
2;
w =
-(r-2)^3/4;
else
w =
0;
endif
endfunction
function
r =
wrap(r,
r0
)
...
...
@@ -36,6 +38,6 @@ for i = 1:n; for j = 1:n
if
i =
=
j
;
continue
;
endif
r =
dist(i,
j
);
if
r
>
rc; continue; endif
w = wk(i)
d(i) += wk(r);
endfor; endfor
poc/ker/cubic.mac
View file @
bf7ab94c
...
...
@@ -31,3 +31,8 @@ f00: horner(f00);
f10: factor(f10);
draw2d(explicit(f00, x, 0, 1), explicit(f10, x, 1, 2)) $
i2(e, lo, hi):=integrate(%pi*'x*e, 'x, lo, hi);
I: i2(f00, 0, 1) + i2(f10, 1, 2);
A: 1/I;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment