Problem 47340. Find Logic 19
Guess the logic!
logic(0,1) = 1
logic(1,1) = 4
logic(1,2) = 9
logic(2,2) = 16
logic(2,3) = 25
logic(4,1) = 25
logic(5,1) = 36
Make a function logic(a,b) which will return value according to problem.
Solution Stats
Problem Comments
-
2 Comments
Rafael S.T. Vieira
on 5 Nov 2020
I also recommend that you wait that someone else solves your problem before posting your solution. Of course, you can solve a problem that you've created, and it is nice to share your view on it (since, in this case, there is probably more than one function that maps to these same values). However, posting this many problems and solving all of them reinforces the theory of spam.
Rafael S.T. Vieira
on 6 Nov 2020
So sorry, I didn't realize that you were creating a problem group. I still recommend that you wait that someone else solves your problem before posting your solution.
Moreover, problem 16 needs to be have more test cases or else it becomes trivial.
Solution Comments
Show commentsGroup

Materials Science I
- 16 Problems
- 25 Finishers
- Stress-Strain Properties - 1
- Stress-Strain Properties - 2
- Stress-Strain Properties - 3
- Stress-Strain Properties - 4
- Stress-Strain Properties - 5
- Stress-Strain Properties - 6
- Stress-Strain Properties - 7
- Stress-Strain Properties - 8
- Rule of mixtures (composites) - lower bound
- Rule of mixtures (composites) - upper bound
- Rule of mixtures (composites) - lower and upper bounds
- Rule of mixtures (composites) - either bound
- Rule of mixtures (composites) - lower and upper bounds (volumes)
- Rule of mixtures (composites) - weighted bound
- Rule of mixtures (composites) - other bound
- Rule of mixtures (composites) - reverse engineering
Problem Recent Solvers558
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!