Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Is there api's or tools that I can use do something in Xcode like
SOLVE(2x = x +7);
and I get x = 7?
Also more complication stuffs like
SOLVE(x^2= +6x -8);
and get x = 2 or x = 4
So basically you give an equation with one variable, and it returns the value of that variable.
I have really complicated quadratic equation that needs to be solved.
I am finding intersection of 3 spheres using iBeacons, and I have a complicated equation that needs to be solved. It is too long, complicated to do it myself and create the formula. I need this functionality to make my app work well. But I don't think it exists from my research. So I am asking for your help.
UPDATE: it is possible to do this in Python, but iOS does not include the Python framework. Using python to use sympy in iOS is not feasible. (http://docs.sympy.org/dev/modules/solvers/solvers.html)
UPDATE: There is no easy answer. I had to solve equation by myself. Creating formulas for solving equations is easy with programming cuz you can always create new variables to replace many constants together and go step by step.
I could not find any math library that could do this in iOS Objective C.
But I realized that coming up with the formula with the answer is easy with coding. Whenever there are many constants you can you create a new variable that includes all constants, and go on and on.
I solved the intersection of 3 spheres given those 3 equations using this method.
You could try this C++ library. For those things C++ is much better. And in Objective-C you can write C-Code wherever you want.
You could also create an Objective-C wrapper class to make it more neat in your other code
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
As an old C/C++, C#, Java, JS, PHP programer, I just couldn't get used to Objective-C. The reasons are obvious. I want to continue developing iOS applications and continue using Xcode storyboards. But I seriously need an alternative to Objective-C, is there any powerful tool or framework alternatives that could help me get away from Objective-C?
By powerful alternative, I mean useful enough to use most of the device methods/functions easily and has a lot of online resources, tutorials, examples on it.
I would very, very strongly recommend that you get a good Objective-C book, or work through the Stanford iOS development course on iTunes U. Without Objective-C, you will get a lot less help with other languages, you won't be able to understand code samples, you won't understand the iOS documentation.
Try http://xamarin.com/ios - this allows you to write in C#. Personally I've used all those languages as well (other than C#) but actually prefer Objective-C.
You might want to consider RubyMotion - http://www.rubymotion.com
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am currently working on a project where I have to extract the facial expression of a user (only one user at a time from a webcam) like sad or happy.
There are a lot of programs/APIs to do face detection but I did not find any one to do automatic expression recognition.
The best possibility I found so far:
I used OpenCV for face detection earlier, which was working great, so If anyone has some tips on how to do it with OpenCV, that would be great!
Some user on a OpenCV board suggested looking for AAM (active apereance models) and ASM (active shape models), but all I found were papers.
-So i'm Using Active Shape Models with Stasm, which will give me access to 77 different points within the face, so I would still have to manually map them to expressions.
Any programming language is welcome.
After 2.4 release, opencv came with a face recognition API. You may define sad and happy faces as two different faces and use the API to classify them. If you are looking for any tutorials you can check out opencv's tutorial page, too.
Maybe this article can help you.
It is explanation of concepts used to achieve result shown here:
Also, you might want to have a look here.
All of above mentioned is a work of people who more or less achieved what you watn.
I want to do same as you - facial expression recognition with OpenCV, so I hope sooner or later we can exchange our ideas.
Half the problem is solved for you using OpenCV. If you built OpenCV with examples, you can run an example named c-example-smiledetect which can detect a smiling face with different levels.
The code should be in you OpenCV folder under samples/c. i recall you can adjust the sensitivity in the code so that might help. You can also find the code here.
On another note, an implementation of AAM using OpenCV can be found in this book (chapter 7). This doesn't include the searching and fitting part though, just shows how to create an AAM from ASM and a texture.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to learn objective C and adapt to xcode. I also want a reference with tutorials and examples to help me improve and become faster at ios app development. I am wasting too much time even for simple syntax errors. As there are several sources, I am quiet confused.
I have good C/C++ and C# background. I have significant UI design experience. I can also adapt well to open source libraries as I worked with opencv, opencvsharp, gtkmm, and qt for a long time. However, couldn't adapt to obj. C easily.
Where to start?
Best way to learn is (since you have massive programming experience),
Play with XCode a while. Create a view based, tabbed, master-view application. See how xcode create the background code etc.
Learn Xcode - how Interface builder and storyboard works. How to link UI components with generated class files.
2.1. Learn more about common UIComponents - UIView, Tabbar, TableView, SplitView etc.
Syntax of Objective c, message passing, property etc.
This tutorial is kinda popular and good,
http://www.raywenderlich.com/tutorials
Books:
To start with UI concept, Beginning iPhone Development is best to me.
Further you learn more about objective c in Programming in objective c
Apple tutorials on different topics,
https://developer.apple.com/videos/wwdc/2010/
https://developer.apple.com/videos/wwdc/2011/
https://developer.apple.com/videos/wwdc/2012/
https://developer.apple.com/videos/wwdc/2013/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm curious if anyone knows of any downloadable Objective C sample code for the gang of four design patterns out there? I am looking for working sample XCode projects and don't mind paying!
Incidentally, if you're looking for other languages, you could start here for Java or here for various languages
It's no Gang of Four but Apress has Pro Objective-C Design Patterns for iOS by Carlo Chung which has many of these patterns in it. Other than that, I'm not sure of one place that has so many of these patterns represented in Objective C.
The following link has covered some of the Design Patterns
Facade (One single interface above a complex hierarchy)
MVC(Most popular,nothing to say)
Decorator(View dependent models)
Composite(Complex hierarchy of views as well as Objects)
Adapter (Protocol Specific)
Observer(adding observer while property value changes)
6.1. KVO (Key Value Observing Pattern,associated with Observer)
6.2. Notification Style
Memento (Archiving the View's state and restoring on app reload)
Command (Most commonly known as Target-Action design pattern)
generally used to solve some issues found while developing Applications....
http://www.raywenderlich.com/46988/ios-design-patterns
there's not a book for specific code with design patters applied, but a couple of them have really useful examples Clean Code and Clean Coder
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Could you recommend an open source library written in F# which provides generic types for FA construction and basic algorithms (NFA to DFA transformation, FA minimization ...)?
My first thought would be to use the state machine monad, which has be blogged/written/discussed/produced several times, a couple of references are below.
http://fsharpcode.blogspot.com/2008/12/f-state-monad-type-state-state-state-of.html
http://codebetter.com/blogs/matthew.podwysocki/archive/2009/12/30/much-ado-about-monads-state-edition.aspx
although this doesn't give you the translations you want...
Might be a place to start.
Probably not what you are looking for but a quick and dirty way to get some FA things working would be to write an equivalent context free grammar for your FA then using fsyacc?
Jolt.NET
It does not fulfil all your requirements: It's in C#, and it does not seem to support translation to DFA or minimization. At least it's usable from F# and could be used as a starting point. I've never used it myself, so I can't vouch for its suitability or quality.
See also NFA/DFA implementation in C#