项目作者: Release-Candidate

项目描述 :
A F# smartphone app using Fabulous to chart the Mayan nine waves of Calleman.
高级语言: F#
项目地址: git://github.com/Release-Candidate/NineWaves.git
创建时间: 2021-04-27T20:12:33Z
项目社区:https://github.com/Release-Candidate/NineWaves

开源协议:MIT License

下载


[!WARNING]
This repository has been moved to CodeBerg: NineWaves

NineWaves " class="reference-link">NineWaves Icon NineWaves

This cross platform - Linux, Mac OS X and Windows - F# .Net library and smartphone app to chart the nine Maya waves of Carl Johan Calleman. See Links. It uses Fabulous as F# MVU (Elm-like) frontend to Xamarin.Forms.

See YouTube video of the smartphone app for a video.

Screenshot 1 of the smartphone app
Screenshot 2 of the smartphone app

Information about the smartphone app is at Usage of the Smartphone App

To interactively try out the F# NuGet package NineWaves, go to the Jupyter Notebook at Binder

Full documentation can be found at Read the Docs

MIT license badge
F# 5.0 badge
OS badge
Nuget Package badge
Documentation Status
Binder
more badges …

Table of Content

Blog of Carl Johan Calleman

Experiencing the 9th Wave Influence in your Life

Download

List of changes: CHANGELOG.md

Link to the latest release

Installation and Usage

Android

Install the package for your smartphone (.apk for Android) onto your phone - search the web
on how you can do that, this depends on your phone

iOS

I can’t generate an iPhone package myself, so you have to build the project IOS for yourself and
provision the app to your phone. Microsoft has a how-to here

NuGet Package

Download an install the NineWaves Nuget package using your IDE (Visual Studio or JetBrains Rider) or one of the command-line possibilities: NineWaves Package at NuGet

In an interactive F# FSI session, you can use the command #r "nuget: NineWaves" to download and use the nuget package NineWaves.

Usage of the Smartphone App

See YouTube video of the smartphone app for a video.

NineWaves NuGet Package

Download an install the NineWaves Nuget package using your IDE (Visual Studio or JetBrains Rider) or one of the command-line possibilities: NineWaves Package at NuGet

In an interactive F# FSI session, you can use the command #r "nuget: NineWaves" to download and use the nuget package NineWaves.

To use NineWaves in an interactive session:

  1. #r "nuget: NineWaves"
  1. Installed package NineWaves version 0.9.6

Everything is contained in the namespace RC.Maya, so let’s open that

  1. open RC.Maya

To check if everything’s working, we call NineWaves.getWaveday9 with the DateTime of today (the 2nd of May, 2021), to get the information of the 9th wave for today.

  1. NineWaves.getWaveday9 System.DateTime.Today
  1. DayNumber OfDays WaveNumber IsNight
  2. 18 18 103 True

From the returned WaveDay type we can see, that today is the 18th day (DayNumber) of 18 days (OfDays) of the 103rd 9th wave (WaveNumber). Actually it is a ‘Night’ (IsNight), the wave is ‘below zero’.

We can do the same with all the other 8 Waves:

  1. NineWaves.getWaveday8 System.DateTime.Today
  1. DayNumber OfDays WaveNumber IsNight
  2. 234 360 12 False
  1. NineWaves.getWaveday7 System.DateTime.Today
  1. DayNumber OfDays WaveNumber IsNight
  2. 3474 7200 7 True
  1. NineWaves.getWaveday6 System.DateTime.Today
  1. DayNumber OfDays WaveNumber IsNight
  2. 3474 144000 7 True
  3. ```F#
  4. NineWaves.getWaveday5 System.DateTime.Today
  1. DayNumber OfDays WaveNumber IsNight
  2. 3474 2880000 7 True
  1. NineWaves.getWaveday4 System.DateTime.Today
  1. DayNumber OfDays WaveNumber IsNight
  2. 3474 57600000 7 True
  1. NineWaves.getWaveday3 System.DateTime.Today
  1. DayNumber OfDays WaveNumber IsNight
  2. 3474 1152000000 7 True
  1. NineWaves.getWaveday2 System.DateTime.Today
  1. DayNumber OfDays WaveNumber IsNight
  2. 3474 23040000000 7 True
  1. NineWaves.getWaveday1 System.DateTime.Today
  1. DayNumber OfDays WaveNumber IsNight
  2. 3474 460800000000 7 True

Of course we can use any date, like the 24th of October, 2014:

  1. NineWaves.getWaveday7 (System.DateTime (2014, 10, 24))
  1. DayNumber OfDays WaveNumber IsNight
  2. 1092 7200 7 True

NineWaves also contains the 9 sine wave funtions for the nine waves, to generate graphs of. All 9 functions are scaled, so that 0, the wavelength and half wavelength of each wave yields 0, and each day is a integer. The maximum and minimum is reached at -wavelength / 4 and wavelength / 4.

So: for each of the wavelengths we get 0:

  1. NineWaves.wavefunc9 NineWaves.wavelength9
  1. 0
  1. NineWaves.wavefunc8 NineWaves.wavelength8
  1. 0
  1. NineWaves.wavefunc7 NineWaves.wavelength7
  1. 0

And so on …

Same for the half wavelength:

  1. NineWaves.wavefunc6 (NineWaves.wavelength6 * 0.5)
  1. -0

and of course multiplied by any integer factor:

  1. NineWaves.wavefunc5 (NineWaves.wavelength5 * -2.)
  1. 0
  1. NineWaves.wavefunc4 (NineWaves.wavelength4 * -1.5)
  1. 0

The maximum of 1 or -1 is reached at wavelength / 4:

  1. NineWaves.wavefunc3 (NineWaves.wavelength3 * 0.25)
  1. -1
  1. NineWaves.wavefunc2 (NineWaves.wavelength2 * -0.25)
  1. 1
  1. NineWaves.wavefunc1 (NineWaves.wavelength1 * -3.25)
  1. 1
  1. NineWaves.wavefunc1 (NineWaves.wavelength1 * -3.75)
  1. -1

Contributing

Any help is welcome!

If you encounter a problem using NineWaves, a task it not as easy as you’d like it to be or you’d like something added to it: open an issue at GitHub, see section Report Issues.

See page Contributing at Read the Docs for a detailed description.

License

All content except some images of NineWaves is licensed under the MIT license, see file LICENSE.

Privacy Policy

NineWaves does not collect or share any personal information, it does not contain any ads, trackers or in-app-payments. See: Privacy Policy

Badges

Code coverage

codecov

GitHub Actions/Workflows

Tests Mac OS X latest
Tests Ubuntu 20.04
Tests Windows 2019