Questions tagged [pure-functional]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
1answer
376 views

Pure functions instead of For loop

How to get following loop output using pure functions such as NestList? For[i = 0; v = 0, i < 4 && v < 4, i++; v++, Print[x^i + b^v]] and the ...
3
votes
1answer
30 views

Applying pure function to rotate the label in a BoxWhiskerChart

Data is available from here https://www.ocr.org.uk/Images/400305-large-data-set-lds_1-h630-2018-h640-2018-2019-pre-release-data-mei.xlsx ...
0
votes
1answer
62 views

Solve Equation trinomial Nine degree!

I am trying to solve equation: x^9+p*x^4−q=0, {p, q} ∈C using functional analysis. Ηow do I solve this equation and with help Mathematica program for case p=π, q=e)?
1
vote
0answers
46 views

Mapping over array/matrix the efficient(compact) way

Update In short, I have myCAans[[1 ;; 5]] like this: {{0, 0, 0, True, 0, 0, 0, 0, True, 0, "T0", 39}, {0, 0, 0, True, 0, 0, 0, 1, True, 1, "B", 101500}, {...
2
votes
0answers
48 views

Folow-up on combining pure functions [duplicate]

This is a follow-up to this question. Consider: f = #^2& g = #^3& Compose[f, g] (#1^3 &)^2 Am I the only one to think this is a bug?
2
votes
2answers
354 views

Defining a sequence slot programmatically

This question is related to: Composition of functions using slots `Slot` (#) interfering with evaluation Consider a toy example: ...
3
votes
2answers
449 views

Writing Fold in terms of Map or MapThread?

Consider Fold[f,z,{a,b,c}] ==> f[f[f[z,a],b,c]] I'm looking for a way to write this (in general) using Map or ...