• Home   /  
  • Archive by category "1"

Cs193p Winter 2013 Assignment 0

The Graphing Calculator project is a continuation of the previous 2 assignments from the Stanford University CS193P course Developing iOS 8 Apps with Swift, available for free on iTunes. This is the third and final assignment in the Calculator series.

Full source code available here at Github repository

For the other 2 projects, please see:
CalculatorBrain: Assignment 2, Stanford University Winter 2015 (iOS)
Calculator: Assignment 1, Stanford University Winter 2015 (iOS)

This project provides graphing features in addition to the regular calculator functions. Graphs can be plotted by entering expressions where M is the independent variable. Please see examples below.

To plot M, enter:

M, Graph

To plot sin(M), enter:

M, Sin, Graph

To plot M x cos(M), enter:

M, M, cos, x, Graph

Some interesting notes

  • The CalculatorBrain is reused to calculate the values of M for graphing
  • Plot values are set in the GraphingViewController as the data source of GraphingView
  • To fix the sluggish performance when zoomed out and panned, only the number of plots required for the screen width are calculated
  • Graph scale and origin is stored in NSUserDefaults
  • Upon device rotation, the graph is centered and adjusted slightly with the width and height change ratio

Video demo

Like this:

LikeLoading...

Related

- Мы же говорим не о реверсии какой-либо сложной функции, а о грубой силе. PGP, Lucifer, DSA - не важно. Алгоритм создает шифр, который кажется абсолютно стойким, а ТРАНСТЕКСТ перебирает все варианты, пока не находит ключ. Стратмор ответил ей тоном учителя, терпеливого и умеющего держать себя в руках: - Да, Сьюзан, ТРАНСТЕКСТ всегда найдет шифр, каким бы длинным он ни .

One thought on “Cs193p Winter 2013 Assignment 0

Leave a comment

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *