forked from wg030/jlcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestfile.jl
More file actions
41 lines (34 loc) · 1.33 KB
/
Copy pathtestfile.jl
File metadata and controls
41 lines (34 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#= A comment that consits of several lines.
Hence it has to be a little longer, of course.
Otherwise it would be silly as it could fit in one line. =#
# This line will be my reference line, which will exactly contain 80 characters.
# This line is a comment containing operators like &, - and %
# A comment with the German word "Übergrößengeschäft" (store for oversizes)
# This line contains some special unicode characters: α, γ, w², Δₓ
# A comment with some numbers: 424, 1.23, 0.2E-5, -9.9e+9
# defining a useless testfunction
function Style_3rd_Test(x, y)
myver = v"2.00"
mystr = "A string with \"Übergrößengeschäft\", α, π and the + operator."
mychar = 'W'
mychar⁽²⁾ = '€'
mychar⁽³⁾ = 'ϰ'
z1vec = rand(Int8, 3)
z₂vec = Array{Int8}(3)
z₂vec[1:2] = [x % y, y \ x]
t = x % 2 == 0 ? x : x + 1
t = ~(t & x | y)
α = 0.3
βᵅ = 3.2e+5^α
myβvar = 0.12E-2 * βᵅ
z₂vec[3] = y^2 + 3.4x*y - (α + myβvar) * t/2
z₂vec = (z₂vec + z1vec).^2
if !(norm(z1vec) < norm(z₂vec) + e + pi + γ + φ)
mystr = String( mystr, " signed ", mychar)
println( mystr)
return true;
elseif norm(z₂vec - z1vec) > 2.69
println( String( "Error in ", myver, "!"))
return false;
end
end