Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
libraries
Commits
51ca019d
Commit
51ca019d
authored
Aug 30, 2021
by
Neil Gershenfeld
Browse files
ack, problem is roundoff error
parent
6c1e4b97
Changes
3
Show whitespace changes
Inline
Side-by-side
python/frep-C.py
View file @
51ca019d
...
...
@@ -74,7 +74,7 @@ f"""
#include <png.h>
using namespace std;
int fn(float X,float Y,float Z) {{
cout << Z << ' ' << (
{
fn
}
) << endl;
cout << Z << ' ' << (
Z-(-0.06)
) << endl;
return (
{
fn
}
);
}}
int main(int argc, char** argv) {{
...
...
python/pcb.py
View file @
51ca019d
...
...
@@ -7958,10 +7958,6 @@ mask = .004 # solder mask size
pcb
=
PCB
(
x
,
y
,
width
,
height
,
mask
)
pcb
=
wire
(
pcb
,
w
,
point
(
x
,
y
,
zt
),
point
(
x
+
width
,
y
,
zt
))
pcb
=
wire
(
pcb
,
w
,
point
(
x
,
y
,
zb
),
point
(
x
,
y
+
height
,
zb
))
...
...
python/test
0 → 100644
View file @
51ca019d
{"function": "(16777215*(((((((3.02-X)-(1))*(0.0)+(Y-(1))*(1.0)) >= 0) & ((((3.02-X)-(1))*(0.0)+(Y-(1))*(1.0)) <= 0.8700000000000001) & ((((3.02-X)-(1))*(-1.0)+(Y-(1))*(0.0)) >= (-0.015/2)) & ((((3.02-X)-(1))*(-1.0)+(Y-(1))*(0.0)) <= (0.015/2)) & (Z == (-0.06))))))", "layers": [-0.06], "xmin": 0.95, "xmax": 2.07, "ymin": 0.95, "ymax": 1.9200000000000002, "mm_per_unit": 25.4, "type": "RGB"}
Write
Preview
Supports
Markdown
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